-
Powering a Raspberry Pi with an ATX supply. Current limiting resistor values?
Posted by
jayfehr
on 05 Feb, 2015 21:31
-
Hello, I'm making a small desk sized arcade cabinet with a Raspberry Pi and a recycled 19" monitor. I have a bunch of old ATX power supplies kicking around and would like to repurpose one to run the entire unit. At this point I have yet to look to deep into the display, so I'm not sure what they max volt/amperage is (probably 12V, ? amps) so I'm not asking about that, yet. I would like to learn enough from the Pi to figure that out myself.
I do know that the Pi is 5V, 2 amp max (the on board fuse is 2 amps) so I would like to add a current limiting resistor to prevent any current surges from frying the board (well blowing the surface mount fuse). I'm not sure how exactly to figure out the proper resistor value (I know ohms law applies but I'm not sure of any gotcha's to watch out for). I will also be adding an in-line 2 amp fuse just for added protection.
If anybody could help me out it would be greatly appreciated.
Thanks.
-
-
You can't use a resistor with a device that has a dynamic current requirement, the supplied voltage would bounce all over the place. I would lean towards just cleaning up the voltage before passing it on to the Pi; fuse, TVS diodes, etc.
You could also try an integrated solution, such as an LTC4362.
-
#2 Reply
Posted by
LA7SJA
on 05 Feb, 2015 21:51
-
You should have everything you need from the ATX power. But use a
500 800-1000mA fuse one the +5V VCC line to protect the Pi.
Check this
link for pinout and startup circuit.
JFG
-
#3 Reply
Posted by
Zero999
on 05 Feb, 2015 21:56
-
If the Pi is rated to 5V and the PSU outputs 5V then it won't be a problem, whatever the maximum current rating of the power supply is.
2A is the maximum current the Pi will draw which is limited by the devices internal resistance.
The only thing you need to protect against is short circuit which is what fuses and circuit breakers do. The fact that the ATX PSU can supply much more than 2A is not a problem when everything is working as it should but if a short circuit occurs, a large current will flow, causing bad things to happen and a fuse is needed to stop this.
-
#4 Reply
Posted by
jayfehr
on 05 Feb, 2015 21:58
-
Thanks for the quick replies guys.
@LA7SJA, I believe that the Pi requires 700mA to run, and according to Adafruit they are saying that you should run the Pi 2 (which I plan to get when they become more readily available) with at least a 1A power supply. With that in mind wouldn't a 500mA fuse blow regularly? I was assuming that the same value in-line as on the board would protect the board fuse from blowing. However, I'm far from an expert and that's why I'm here asking.
Also thanks for the link. I've been using a few different pages for ATX info. I'm not sure why I didn't consider wikipedia earlier.
-
-
The only thing you need to protect against is short circuit which is what fuses and circuit breakers do.
I was under the impression he wanted to protect the Pi from a malfunctioning PSU, which are known to occasionally send out high power surges when they die, destroying anything connected to them. I have pictures of a HDD that lit on fire after one such event...
I was assuming that the same value in-line as on the board would protect the board fuse from blowing. However, I'm far from an expert and that's why I'm here asking.
If they're the same size fuse, then it's simply a race condition. One of them will blow, but you don't know which. The upstream fuse should be rated less than the downstream fuse if you want to guarantee the upstream fuse is the first to fail (it also needs to be the same or a faster type).
-
#6 Reply
Posted by
jayfehr
on 05 Feb, 2015 22:08
-
Yes, I am a little concerned about about surges. However, the Pi is only $35. There is a complexity/cost tradeoff I'm considering as well. I will also make sure I get a fast fuse, probably 1.5A, but I'll take a look and see what's available.
I believe that I will go with the just the fuse for now, and continue looking into your other suggestions when I go to power the monitor. Really, as long as I don't burn the house down I'll be happy. I don't have money much invested into this entire project.
Once again, thanks for helping.
-
#7 Reply
Posted by
edavid
on 05 Feb, 2015 22:15
-
I do know that the Pi is 5V, 2 amp max (the on board fuse is 2 amps) so I would like to add a current limiting resistor to prevent any current surges from frying the board (well blowing the surface mount fuse). I'm not sure how exactly to figure out the proper resistor value (I know ohms law applies but I'm not sure of any gotcha's to watch out for). I will also be adding an in-line 2 amp fuse just for added protection.
"Current surge" doesn't really mean anything. What would make the current surge? The most plausible reason would be overvoltage, but a fuse isn't going to protect you from that. You would need a power zener or traditional "crowbar" overvoltage protector, but the ATX supply already has an overvoltage protector built in, so why duplicate it? Also, it's not cost effective to put a lot of effort into protecting a $35 Pi from an unlikely failure scenario.
-
#8 Reply
Posted by
ovnr
on 06 Feb, 2015 02:14
-
Don't bother.
A) A fair number of Pis are run from an USB port (yada yada, don't do it, whatever). They're thus directly connected to the PC's +5V rail thru a simple polyfuse.
B) Remember that fuses are not instant, magical devices. If you're trying to protect the Pi, a fuse alone will do squat, as it's too slow to respond. You will need a voltage clamp after the fuse.
C) The Pi is, as you said, $35.
Lastly, consider the fact that if you have no other loads for the PSU, it will likely - if it's as crusty and old as I imagine it is - eat 10-20W by itself; the quiescent power loss is so high you could run several Pis on it. Just get a cellphone charger rated for a couple amps (... but not a shitty deathtrap from china).
-
#9 Reply
Posted by
darkness
on 06 Feb, 2015 10:55
-
-
#10 Reply
Posted by
jayfehr
on 06 Feb, 2015 15:28
-
@ovnr, I do plan to run the display off the same power supply. I'll be disconnecting the mains power and wiring the 12v (most likely, we'll see once the plastic is removed) directly to the dc in on the display.
Obviously, I need to probe the display before I connect anything to it. I'll probably be back here with some more questions once I get to that point.
-
#11 Reply
Posted by
ivan747
on 06 Feb, 2015 17:15
-
The raspberry pi has it's own fuse (a PTC fuse) built in, just so you know.
Extra protection would be your choice.
-
#12 Reply
Posted by
ovnr
on 07 Feb, 2015 11:18
-
The raspberry pi has it's own fuse (a PTC fuse) built in, just so you know.
Extra protection would be your choice.
Ever looked at the spec sheet for one? It's quite illuminating.
They're not very good fuses.
-
#13 Reply
Posted by
Stonent
on 07 Feb, 2015 21:24
-
Unless you needed the 12V from the power supply as well, you could just use a cell phone charger and save on the power.
If you're worried about voltage spikes, you could feed from the 12V line and use a separate 5V regulator.
-
#14 Reply
Posted by
lapm
on 07 Feb, 2015 21:49
-
I run my Raspberry Pi from mobile phone charger. 1,5 A max current capacity... No problems.. Heck i can even run it from one of those mobile powerbanks for few hours if i absolutely need to...
-
#15 Reply
Posted by
LukeW
on 08 Feb, 2015 16:19
-
If you're prepared to run hundreds of dollars worth of a PC's hardware (and potentially an enormous value worth of data) from a standard ATX power supply, and you accept that the probability of a power supply failure that somehow destroys the rest of the system is sufficiently small for an ordinary consumer-grade ATX standard PSU, then obviously you should be fine to take that risk with a $40 raspberry pi.
Assuming that the monitor runs off 12V, you should be able to just run the monitor off the 12V rail and the RP off the 5V rail.
Extra overcurrent protection devices are probably optional, if you want to add them.
Even a cheap ATX PSU will have ample power capacity to run a raspberry pi and a monitor.
-
#16 Reply
Posted by
Kjelt
on 08 Feb, 2015 16:59
-
Older atx power supplies needed a minimum load to operate properly, i am not sure if your 3,5W will bevsufficient. Why not buy a decent industrial PS like a Puls or TDK-Lambda they are not that expensive.
-
#17 Reply
Posted by
jayfehr
on 08 Feb, 2015 17:01
-
Thank you everybody for the responses. But I do want to clarify one point. I will be using a single power supply to power the entire unit. The Pi is where I am starting. However the display and fluorescent light will also be wired directly to the PC power supply. This means one switch will power the entire unit.
The other option is a power strip and an extension cord. Although a much simpler solution it's not as much fun, nor do I learn anything. I also don't think it'll look as clean in the end.
-
#18 Reply
Posted by
jayfehr
on 08 Feb, 2015 17:04
-
@Kjelt, other than the Pi and buttons everything I am using is being recycled. It's a fun way to get rid of some of the spare parts I've had kicking around.