2
\$\begingroup\$

I'm working on a hobby project that involves a Raspberry Pi (with a powered USB hub for reliable wireless), an Arduino (driving a hobby servo, controlling some LEDs, etc.), and an audio amplifier (not rolling my own - using a torn down set of powered computer speakers). So basically, I have five things that normally would each have a separate power supply.

I'm mostly a programmer with a little electronics knowledge, mostly digital with just enough knowledge to interface with sensors and things. I'd love for this project to have one wall plug, not be powered by four or five wall warts. I also don't want to have to implement a dedicated power supply. I know the Raspberry Pi is a little picky on its power consumption (I'm using a 1A supply for it currently).

I thought about using an old laptop power supply with 18v and (I think) 2A. Could I just do that and use a few power regulators to provide the necessary voltages to the other pieces? If I do, what should I be aware of and watch out for? I also considered an old PC power supply, but it's much too large for the enclosure that I have in mind.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ A linear regulator and an RPi consuming about 500mA would mean (18-5V)*500mA = 7W for the single regulator. It will get very warm, need a big heat sink. Use a DC/DC converter instead. RPi can easily use 500mA, probably more, meaning the power dissipation can even be worse! \$\endgroup\$
    – jippie
    Commented Sep 23, 2013 at 21:19

3 Answers 3

7
\$\begingroup\$

You could indeed! But first things first:

  • determine each device's power consumption and sum them all up
  • make sure your laptop PSU can supply at least this much

Things to watch out for:

  • Even though they may run on the same voltage, the Rpi and Arduino might not get along. Noise and ripple from one device will be superimposed on its supply lines, so to save you the hours of debugging I would STRONGLY suggest separate supplies for anything with a clock.
  • Inrush currents may be several times greater than average currents (big current spikes are common when charging up lots of parallel capacitors on each board at initial power-on) so if you don't have the inrush current spec available from the device's datasheet, just double (or triple) the average/rated current to be conservative.
  • If you use linear regulators, you won't have any extra clock frequencies to worry about, but you will have lots of heat. Try to find a regulator such as the 7805 which has its tab connected to ground. That will make it much easier to sink heat to a metal enclosure, if you end up putting the completed project in one.
  • Aim for "star" grounding such that all your individual device grounds come to a common point which is as close as possible to the lowest-impedance ground reference. This might be the negative return on the laptop supply.
  • Your audio amp very likely used bipolar supply voltages. If you don't have a true negative supply available this could be a problem. It might be simpler to find an audio chipamp such as an LM386 that runs off a single supply than to generate a negative supply locally.
\$\endgroup\$
5
  • 3
    \$\begingroup\$ Hah, wow, we both did a "things to watch out for:" list. \$\endgroup\$
    – dext0rb
    Commented Sep 23, 2013 at 19:17
  • \$\begingroup\$ So, when you say "separate supplies for everything with a clock" does that mean off separate regulators instead of sharing a single rail or actually separate power supplies? \$\endgroup\$
    – cmpalmer
    Commented Sep 23, 2013 at 19:24
  • \$\begingroup\$ Also, the audio amp/speakers I've salvaged use a standard wall wart supply, so I assume I won't need a bipolar supply. I have built small LM386 amps before, so if there's an issue, I can fall back to that. \$\endgroup\$
    – cmpalmer
    Commented Sep 23, 2013 at 19:25
  • 1
    \$\begingroup\$ Separate linear regulators should be sufficient for the application. Also, you'll probably end up having enough ground isolation just because you're using separate boards (the pi and arduino at least). What is the highest voltage component you have (in terms of most operating voltage required)? \$\endgroup\$
    – scld
    Commented Sep 23, 2013 at 19:38
  • 1
    \$\begingroup\$ @cmpalmer Yes, I meant separate regulators. Regarding the audio amp, you should be good if it operates off a DC wall wart, but if it's an AC wall wart double check that it doesn't make a bipolar supply inside the box. I have one at work that's that way. \$\endgroup\$ Commented Sep 24, 2013 at 0:27
5
\$\begingroup\$

The easiest thing: Use linear voltage regulators for each of your required voltage rails.

Things to watch out for:

  • Take note of your current requirements on each voltage rail - you don't want to draw more than the regulator can supply.
  • Also, watch out for the efficiency of the regulator - remember that nothing is 100% efficient and you will lose some power in the regulator, so your main power supply should be able to source your required current + take account of regulator inefficiencies. Check the datasheet.
  • Linear regulators produce heat, and depending on the current draw, will most likely need a heatsink to prevent damage. You can search around here to learn how to size the heatsink, or you can just slap a huge one on there and hope for the best.
\$\endgroup\$
1
\$\begingroup\$

I am a big fan of using old desktop power supplies: you can usually find one for free if you are at a company big enough to have even a small IT team or if there's a school nearby, they generally give you many options for voltages, and they can supply a good amount of power.

There is an instructable about this very thing. The supply is a bit noisy, but regulators can clean up signals depending on how clean you need your power. If you're running LED lights and a digital system, you can probably get away with the noisy supply. The noise should be high frequency enough that you can't hear it in the speakers.

And they usually have over-current protection, so they'll self-protect and shut off if you mess up your project and short something.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks. The only reason I didn't want to go that route was the form factor of the final project, but I have been meaning to get around to doing one of those for a cheap benchtop supply. \$\endgroup\$
    – cmpalmer
    Commented Sep 26, 2013 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.