I would like to control my power supply with software. At the end of a print i would like to turn off the power. I know this can be done. where I am confused is if I should do it with my raspberry Pi running octoprint or using the ramps and sending a gcode. If i do it at the ramps obviously once the power supply is off then the ramps gets no power. If I do it at the Pi i don’t know how I can do it with gcode. Can any one give me some advice. Thanks
https://github.com/foosel/OctoPrint/wiki/Controlling-a-relay-board-from-your-RPi
Yeah but I am not sure hoe to get it working well. i would love to hear from others that have it sussed
I’ll just cross-post my answer here to the cross-question you left on Youtube:
@Matt_Omond i might might a quick video about that at some point, thanks for the input.On my printer, i’ve simply connected the green PS_ON wire from the ATX supply to the PS_ON pin on the RAMPS (right next to the reset button), and that very turns on and off the entire supply except for the 5V_SB (standby) rail, which i have the RAMPS and RasPi running off of.For switching an SSR (mechanical relays need an extra driver since they draw too much current), you could simply connect one of the inputs of the SSR to 5V and the other to the PS_ON pin with the same effect.
Thanks Thomas. That helps. By the way I love your videos keep up the great work.
If you’re using an ATX power supply, you might not need a relay. Using one of those might just mean pulsing the green wire somehow.
PS_ON floating = PSU off
PS_ON pulled to ground = PSU on
Oh, I didn’t expand your previous post.
And what of a non ATX power supply. Where the power is constant?
I’m thinking this shall do it, just need to keep the Pi always on:
Thats very cool Luis. I have just gone for the 12 volt side. does what I need at the moment.