Thoughts on powering on/off Duet remotely
-
Also hoping that the power off command can be sent after a delay?
I know I could just trigger a relay, but I am trying to think of ways I can power on and off across network..
Has anyone else thought about doing something like this?
I thought I could use an rPI, but The web interface already has support for a webcam so that is potentially fairly redundant..
-
Not sure if the functionality remains in the Wifi, but on the 0.8.5 you can put a separate 5v source (after switching a jumper). This way, only 12v is powered on/off via gcode (i believe?). You could always have 5v supply and thus always access the web interface to switch 12v. Not sure if this would work so easily without using an ATX supply.
-
One solution is to feed mains to the PSU via the NO contacts of a relay. Also connect a mains-rated NO push button in parallel with the relay contacts. Connect the relay coil between the PS_ON output of the Duet and either +5V or +12V. Don't forget the flyback diode across the relay coil.
In config.g put command M80 near the start, to turn the relay on. To start the printer, press the push button and hold it until the relay turns on. Then you can use command M81 to turn the printer of. This can be done in your end gcode. Don't forget to put a G4 delay command before it, to allow the hot end fan to cool the hot end down first.
One disadvantage of this approach is that whenever you do a software reset, the printer will turn off.