With the molex connector the PC will have to be powered on for the Pi to work. Networking could be provided by connecting a wired Ethernet dongle to one of the PC motherboard internal USB headers and running a short network cable to the Pi network port inside the box.Shadow_Saunter wrote: ↑Sun Nov 11, 2018 8:47 pmI am going to mount a pi inside of my computer case to drive LED's and collect sensor data. I am planning to solder a micro-USB connector to a 4 pin molex to power my pi from my ATX power supply. Obviously my ATX p/s is supplying power to my windows pc and peripherals. I think this will work, but I was hoping for some feedback from people with more electronics experience than me.
1. Should I add anything that I haven't considered to that setup?
2. Would I be better off trying to power this pi through the 5VDC pin?
If all you want to do with the sensor data is to display some sort of status via LEDs or small numeric display then a micro-controller solution might be more appropriate than Raspberry Pi as they typically aren't susceptible to improper shutdown. The Arduino ecosystem is a nice novice entry point for micro-controller projects.
A Molex to USB power cable sounds correct. You may want to check voltages before proceeding. It is possible the Pi shorted out by touching a metallic part of the case. Maybe it would be best to properly mount the Pi on some standoffs before proceeding.gospina wrote: ↑Thu Jan 24, 2019 8:48 pmDid this work for you? I bought a molex to 2 USB connection and used miniUSB cable to connect to raspberry Pi 3B+.
I did this to power a Raspberry and an LCD screen. 1 hour later, Raspberry pi was fried, no longer worked .
I'm trying to come up with alternatives but this really set me back a bit. How did you do it?
Just tap one of the 3.3v lines on the motherboard connection. Those are only live when the PSU is on and can be feed diretly to a gpio but a current limiting series resistor is probably sensible.gospina wrote: ↑Mon Feb 11, 2019 4:57 pmThank you for the response. I think I did end up touching something pins 1 & 2 on GPIO will fry it in a nanosecond, so I'm guessing that could be it. I'm going to go forward with tying into the 5V SB power for the Pi for my project. Now, did you look at tying into the "POWER_OK" +5V cable to check whether or not the power is "ON" for the main computer? I was thinking of doing that somehow, connecting it to a Logic Converter 5v to 3.3v and connecting it to one of the GPIO pins. Do you think that will work? do I need a ground as well?
Indeed. But: "[...] tying into the 5V SB power for the Pi for my project. Now, did you look at tying into the "POWER_OK" +5V cable to check whether or not the power is "ON" for the main computer?" (emphasis mine). The stated aim isn't to check it power is good, simply whether it's on or not.
Wood is also good because it doesn't give off toxic fumes unlike plastic and polyester when they catch fire.Earlton2 wrote: ↑Thu Feb 14, 2019 1:10 ami would mount the pi on a piece of wood that slides into an empty harddrive slot. the nuts on db25 and de9 connectors make a good standoff with 4-40 bolts. re power i tend to run 5v and ground into the gpio connector using a 10-pin header at pos-1 . for simple projects this gets me i2c and tx/rx which i've used for rtc and tmp107 temperature probes. your piece of wood might be big enough to build some additional circuitry on. i tend to build in the single pushbutton circuit which supports halt and restart.
As always, be aware that powering through the GPIO header bypasses the power protection circuitry. There is no room for error. (This is irrelevant for all variants of Pi0 which have no such circuit.)