I feel absolutely dumb or maybe I'm under a huge misapprehension. Or maybe both. So PSUControl is for controlling an ATX PSU that is commonly used in a PC, right? Or is this plugin only for these relay boards I see whenever I try to google my "problem"?
If it is not only for those relays, how do I connect my ATX PSU with my RPi? My RPi is powered by the ATX's 5VSB just fine. But how do I proceed so that my RPi can switch the ATX on and off? I assumed that I would have to connect the PS_ON pin to one of the the RPi's GPIO pins. I also read in the open issues for PSUControl about the 3V3 and PW_OK pins. Do I have to use those?
I feel so stupid as I'm searching and researching for days but I simply cannot find resources about that topic. All I see is people using the relays or connecting PS_ON to GND.
I really hope that you can help me. Thank you so much!
Edit: I got it working with the ATX's PS_ON pin on one GPIO and a 3V3 pin on another GPIO. However, I wonder if i need some kind of resistor/diode/voltage devider so that I don't fry my Pi. Can somebody elaborate please? Thank you!
PS_ON is active LOW so use a simple NPN transistor to short PS_ON to a ground on the ATX. Put a 1-10k resistor on the base pin. Hacked this diagram up.
For sensing you can use the 3.3V rail or 12V with a voltage divider. With either be sure to put a 1-10k resistor on the GPIO side.