Issue a pause command from sensors
Posted: Fri Feb 24, 2017 5:40 am
So I've been wondering if I can issue a pause or even a full stop command to the hardware from an external source. I'm not seeing any I/O on the board but I'm also not sure if I can inject a pause command through Gcode on the LCD interface. It would require a small microcontroller external to the machine to generate the gcode and restarting might be tricky but before I dig deeper I wanted to see if others have an idea of if its even possible.
I have considered building an alarm system for the machine. I want to monitor the filament. I can add a small switch to the filament feeder at the back and have it trigger when there isn't any filament available. Still gives me a few mins if its just an auditory and light alarm so I don't lose the print. The other sensor will be on the filament holder. If I get a tangle then the spool lifts and I can trigger an alarm when its no longer touching the top of the holder. Both of these alarms are more powerful if I can record the position of the Gcode and issue a retraction script that will pull the filament back and pause the printer. I can then fix the problem and resume from that gcode position. I'm a Gcode noob so some of this might be crazy talk or require a complete inline external gcode processor. (basically I'd be rolling my own LCD module) Which I might be ok with because that would allow me to send the gcode through the SPI port and maybe make it so that I can push new code to the card through another USB port to the SD card. No need to remove it for file transfers. It would probably require some interesting code to prevent overwriting a file being accessed and sent to the machine but seems doable. Now finding the time to program it all and being willing to test it on a machine I need for my business will be interesting but its something to think about while laying in bed hoping my print doesn't fail
I have considered building an alarm system for the machine. I want to monitor the filament. I can add a small switch to the filament feeder at the back and have it trigger when there isn't any filament available. Still gives me a few mins if its just an auditory and light alarm so I don't lose the print. The other sensor will be on the filament holder. If I get a tangle then the spool lifts and I can trigger an alarm when its no longer touching the top of the holder. Both of these alarms are more powerful if I can record the position of the Gcode and issue a retraction script that will pull the filament back and pause the printer. I can then fix the problem and resume from that gcode position. I'm a Gcode noob so some of this might be crazy talk or require a complete inline external gcode processor. (basically I'd be rolling my own LCD module) Which I might be ok with because that would allow me to send the gcode through the SPI port and maybe make it so that I can push new code to the card through another USB port to the SD card. No need to remove it for file transfers. It would probably require some interesting code to prevent overwriting a file being accessed and sent to the machine but seems doable. Now finding the time to program it all and being willing to test it on a machine I need for my business will be interesting but its something to think about while laying in bed hoping my print doesn't fail
