loading

In this tutroial I'll show you how to build - an ultra-convenient, portable bench-top power supply you can take anywhere. It's powered by 8 AA batteries so you never need to worry about travel adapters and it's ultra-light for flying!

The shopping list

This is a long list, but the components themselves are wonderfully cheap, especially if you can buy from a hardware or electrical supplies shop. Put together, it'll cost about £20 in total.

  • You will need:
  • 3-way switch (x1)
  • Resistors
    • 220Ω (x1)
  • LED (x1)
  • Capacitors
    • 10µF electrolytic (x5)
    • 0.1µF ceramic (x3)
  • Voltage regulators
    • LM7809, 9V (x2)
    • LM7805, 5V (x1)
    • LD1117-3.3, 3.3V (x1)
  • Perf board / PCB (preferably tracked, approximately 70x45mm) (x1)
  • Wires (x1 pack)Heat shrink tubing (optional but recommended) (x1)
  • Battery compartment (8xAA, preferably with 9V connector) (x1)
  • 9V connector lead (if you have the above battery compartment) (x1)
  • Shotkey diode (x3)
  • Project box (buy this last after you have your finished board, battery compartment ) (x1)
  • You'll also need connectors to get the power out to your project.

Usage notes (for Arduino):

Please note that the +5V supply should not be connected to an Arduino's 5V Vcc simultaneously with any other power source. This includes power from USB. Therefore, please use the 9V rail through Vin or the DC connector, or disconnect the supply before connecting to USB.

Step 1: Understanding the Circuitry

My implementation is a composite of three linear regulator circuits, giving three readily available voltages. The basic (one voltage) circuit shown below, is the standard circuit used everywhere. Here is a really good video explanation of the basic circuit and the theory behind it, produced by Afrotechmods.

The supply subsystem picture above shows you the basic linear regulator circuit. The circuit gives you a nice even voltage that is great for low-load applications, such as your Arduino projects. Linear regulators are commonly rated up to 1A.

This build is made up of four subsystems. The first is the DC power supply from the battery pack, with the first filtering capacitor (leftmost C1 in the basic circuit) and a power switch (power subsystem diagram). The filtering capacitor does the job for all the regulator subsystems, so we only need it once.

Next is our 9V regulator circuit (9V subsystem diagram). This produces our 9V output rail, which the 9V connectors or leads will connect to.

The 5V subsystem input connects to the same place as that of the 9V subsystem (5V subsystem diagram). These operate in parallel so that load on the 9V rail cannot compromise the 5V supply. The output is a good place to put your power LED. You can see the 5V regulator is preceded by a 9V regulator. The greater the voltage drop, the greater the heat output from the regulators. As such, going from 12V to 5V will cause some heat buildup. We can share the load and thus heat output by using an intermediary voltage step with the 9V regulator, only loaded by the 5V regulator. The capacitor between them helps to prevent any ripple superposition between the two regulators (just for good measure). The 5V and 3.3V rails should only really be supplying light-current circuits; nothing too strenuous. So finally, the 3.3V supply can be stepped off the 5V rail, giving us the fourth subsystem (3V3 subsystem diagram).

Each output rail has two capacitors to filter high and low frequency noise (ripples) from their respective regulators. A shotkey diode can also be put in reverse, parallel with the output capacitors on each rail. This ensures circuits producing back-building voltages don't blow anything up. Put it all together and you end up with the total schematic shown above.

Step 2: Soldering

When you do your soldering, space the individual regulators apart to aid heat dissipation. A few centimeters is fine. You'll want to keep your filtering capacitors as close to their regulators as possible, preferably in front if you want to attach a heat-sink to the back (flat) side. Your regulator's 'GND' pin should be in the middle, so also ensure the negative (striped) pin on the 10µF capacitors orients to the middle of the regulator. If you have side-by-side tracks on your perf board, you can place the 'GND' and 'OUTPUT' pins on the tracks. All this can be seen above.

When soldering the battery compartment, I recommend a way of making it detachable from your main board. If you have the 9V connector on the battery holder and the connector that is fine. If not, I recommend putting connectors between the battery box and the board. That way, you can detach the whole battery holder without desoldering it. If you decide to use PCB headers to output your voltage rails, solder them onto a separate board so that you can mount them flat to the inside of your project box. Now you know how much room you need for your board, heat-sinks and batteries, it's a good time to get your project box. Don't forget you need room to mount your switch, LED and ports, as well as allow heat buildup, so ensure you have some excess room.

Step 3: Mounting the Components

I'll leave the external layout and aesthetics to you. Just remember to use heat-shrink tubing whenever you solder cables to terminals (like on the power switch) to avoid shorts. It's also a good idea to allow your PCB to be removable. Sticky cable clips can be used to make a slot for my board to sit into.

You can also see that the board acts as a divider. That way, if the batteries move they don't damage the upright components. If your layout matches the one above, add a block of sponge to the battery section for cushioning. That way the batteries are elevated above the external cables' ports and pressed to the lid, securing them once closed. Remember, the batteries together are heavy so need to be secure. My final product (above) had 9V and 5V outputs, with space to add the 3.3V regulator and cables later if I decide to.

So, there you have it. A 9V, 5V and 3.3V stable supply that you can take anywhere with no country adapters or spare cables. If you're flying and weight is an issue, you can always pop the batteries out making it super light.

Acknowledgements

  • Lots of thanks to Afrotechmods for really great videos explaining voltage regulator circuits. I really recommend these.
  • Thanks also to this Altoids Tin build for your inspiring design.
<p>Digital voltmeter modules are pretty cheap on eBay and would be a good addition to this. Also, current metering. At least an LED on each output so you know whether it's shorted or not. </p>
<p>Very nice project.</p><p>Where did you find the case? I have real trouble finding nice cases for projects.</p>
<p>I had the same problem and this is the best/closest I could find to the one in the picture.<br></p><p>http://www.amazon.com/SC642-Electronic-Aluminum-Project-Enclousure/dp/B00Q5XIFVC/ref=lh_ni_t?ie=UTF8&amp;psc=1&amp;smid=A42AXE16JJAYV<br><br>Hope it does you some good!</p>
<p>Thank you, that helps.</p>
<p>I agree, that's a great looking project box! </p>
<p>Replying back to both JRV31 &amp; Tomatoskins, Radioshack Used to carry project boxes similar, but I can't find any online anymore. (their regulated supplies for CB/Ham Radios used to have a similar design.) Your best bet, would be finding an Electronics tool/connector/supply store nearby. Closest to me is about 17 miles away, and a lot like RS Used to be. (parts, more than toys/cell phones.) </p>
<p>One thing I would advise caution about, Back-feeding the +5V, or the +9VDD. The trace from the Vin pin back to the barrel connector, I accidentally fried mine with a temporary short across the Vin &amp; GND pins (placed arduino Duemilinova on a drop of solder on the bench. Thankfully, was able to re-bridge the trace.) And there has been plenty of notes on arduino.cc forums, that back-feeding the +5V, especially on the MEGA models, can harm the switching circuit between the USB +5V and the regulator chip output. (haven't found a reason why myself? ) I've been using a modified ATX supply (+/-5V, +/-12V, 3.3V ), and feeding the Mini-Molex (Floppy power) to a 7809 to the barrel connector, and +5V to anything that requires +5 to high-draw (More than 4 servos, which can overload the Arduino's regulator enough to cause random resets) I like the set-up!</p>
<p>Thanks for the heads-up Gelfling. Good advice. Will stick to 9V through the Vin or barrel when using Arduinos. The modded ATX must be very handy. I can see the advantages of doing it that way.</p>
<p>Using Analog regulators is a bit 1970. For instance with a 12 v input and 3.3V output Analog regulators waste 72% of your battery power (38% efficient). The regulator will get hot which is another problem. Why not use a $1 eBay Digital supply for each of your outputs and you can set these for any voltage you want! Search for DC-DC LM2596 on eBay. You'll then have a 92% efficient power supply and your battery will last 3X longer. Beautiful job on the instructable tho!</p>
<p>Mike, thanks for the comments and the feedback. Those buck boards are super cheap and will be really handy for future projects, cheers.</p>
<p>Mike, You'd be surprised, a lot of the ATX supplies have a couple of analog regulators on the output side.. a fixed 7805 for the +5vsb, and 7812, 7912, and IF it has -5V out, there is a 7905.. They still use them. </p>
Hi Gelfling, maybe, but this instructable is powered by a 12v battery and to waste 2/3 of the battery life by using an analog voltage regulator is not very &quot;instructable&quot;.
<p>Using heatsinks will allow 1.25A output.</p>
<p>Nice project. I would have liked it better with a big 12V car battery :)</p><p>Also, you could get the 12V and 5V from a PC PSU (and even 3.3V, -5V and -12V, but with low power).</p>
<p>Depends on the PSU.. Been noticing a lot of the ATX units have been omitting the -5V in the past few years, Since the Pentium4. The older PC supplies were strictly +/-5, +/-12. (and you could still trick them with a 33-Ohm, 5-Watt across +5 to GND)</p>
Thanks. A1parts.com look to have a decent range. Mine was a small shop in Akihabara, Tokyo.

About This Instructable

19,129views

305favorites

License:

More by j_thompson:Speccy-fi your Pi Camouflaged Map Money Wallet Avoid Airport Baggage Checks, And Other Tips For Easy Travel 
Add instructable to: