kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
203 stars 113 forks source link

Needs a wiring diagram #81

Open targetdrone opened 6 years ago

targetdrone commented 6 years ago

I'm sorry if it's obvious, but I'm a newb to connecting hardware to the pi. My pi is powered by a wall wart, independent of the ATX power supply. The wall wart has no ground pin. Because I have a 12" build plate, I blew out my 29A 12VDC power supply, so I bought a 750W ATX power supply, and a small circuit board to run it. I now have plenty of power. The PSU has a ground pin, of course.

Is it safe to just connect pin 40 from the GPIO directly to the sense pin on the ATX cable? Do I also need to interconnect the ground wires of each, or does that risk some kind of unsafe interconnection problem if the two grounds are not at the same potential? If it's a problem, should I be trying to power the pi from the ATX power supply? I've read that it is designed to be powered via USB only, and not from the 5V rail on the GPIO header.

My hope is that a wiring diagram would answer these questions.

kantlivelong commented 6 years ago

I'm out of town for a few days but will try to draw up some schematics by end of week.

kantlivelong commented 6 years ago

Still a work in progress but this is how I wired mine should be sufficient.

tcj-lev commented 6 years ago

you can also use the 3V3 from the ATX PSU to trigger PI_GPIO_2 which would be straight-forward and need less soldering etc.

kantlivelong commented 6 years ago

@tcj-lev Yep that is entirely doable using the PWR_OK pin.

StudioKamar commented 6 years ago

Can You provide schematic once more because i bought the parts and now schematic not is not schowing

Badn1nja commented 3 years ago

You can wire into the GPIO pins that are found here; https://www.raspberrypi.org/documentation/usage/gpio/ image

In order to select the pins for the PSU Control that can be done as below; Here I'm using GPIO Pin2 image

So the relay if a single unit would need 5v, gnd and signal wired to your chosen gpio pin