Hello,
I have a Duet 2 Wifi that's powering a Printrbot Simple Metal.
I currently use the web control UI 100% to control the printer.
I would like to have a few momentary push-button switches that I can use to make the printer run specific GCODE scripts. Here's the ones I want to set up so far:
- Home All
- Warm Hotend & Bed to standby temps
- Pause
- Resume
- Firmware Reset / Emergency Stop
- Start printing "newest" gcode file on SD card
I know it's possible to use some of the GPIO pins on the Duet for control of lights / LEDs and stuff but what I'm hoping to do is wire all these buttons to a raspberry pi, and have it send commands to control the Duet.
Any suggestions on taking advantage of the PanelDue pins vs sending commands over wifi and impersonating the duet web interface?
https://github.com/patrickkuo/PanelPi
https://duet3d.dozuki.com/Wiki/PanelDue
I found an interesting repo where someone seems to have done what I wanted by spoofing the web interface, but their project focus appears to be running a web UI and actuating controls based on that. I want to run a raspi in a headless / command line mode and read GPIO input, and then send commands to the Duet.
Eventually I would also like to use a multi-segment LED matrix to display the layer #, hotend temp, etc. I'd also like to be able to execute arbitrary post commands to send myself slack / sms updates (print is done, printer paused for material change etc) I basically need two things:
- Get printer info every 60s
- Send string with GCODE / Macro to run
Thanks!