I am a big fan of garage sales, flea markets, and thrift stores. They are great places to find used parts and materials for your next project. But one problem that I often run into is not being able to test battery powered electronics to see if they work. Because there are so many different combinations of batteries that are used in portable electronics, it isn't really practical to carry around batteries for testing. One device may need 6 AA's and another may require 4 D's. So I came up with this simple pocket-sized variable power supply. It can plug into either a 9V battery or a 12V battery pack. You can then adjust the output voltage to match the device that you want to test and attach the output wires to the end terminals on the device's battery connectors. This lets you power the device long enough to see if it works.

Step 1: Materials

LM317 Adjustable Voltage Regulator
0.1 µF Capacitor
1 µF Capacitor
220 ohm Resistor
7 x 270 ohm Resistor (preferably 1/8 watt)
8-Position DIP Switch
Perf Board
9V Battery Connector
2 x Alligator Clip Wires

Note: All these parts are available at Radio Shack. I highly recommend using 1/8 watt resistor because they take up less space on the board which makes it easier to fit everything into a smaller space. Unfortunately I only had five 1/8 watt resistor so, I had to use two 1/4 watt resistors.
Works well, great Instructable! :)
If I cant find a 1 µF Capacitor what would be the next best thing?
Well, strictly speaking the capacitors aren't really necessary because the power source is a battery (DC). It is only necessary for really sensitive circuits that need a very steady power supply. But if you want to use a capacitor, then any value that is bigger than 1 micofarad will work just as well.
Thanks. What value would you recommend?
<p>It really doesn't matter. Use whatever you have on hand, or just leave it off.</p>
<p>Hi, thanks for this project. Now i have all range of voltages from (1.23 - 9)v .above that its tiny and fits in my pocket well. love to hear such a projects from you. Here's an image that i had made.</p>
hi i am a student and i need power supply for my tons of projects, <br>sir i want to ask u can i use a 12 v power supply, then what specifications do i need so that this project run smoothly, <br>do i have to increase number of 270 ohm resistor or increase my capacitance,i hope you would guide me.... <br><br>
You can use any voltage supply up to the voltage regulators max rated limit. So yes you can use a 12 volt battery or a 12 volt supply without changing anything. However you need to keep in mind that the maximum output will be slightly lower than the supply voltage as the regulator chip drops the voltage a little.
<p>I appreciate you creating this instructable! I will benefit from having made one of these. I also know quite a few people who would also benefit from having a pocket power supply so I plan on making some more to give as gifts. Thanks, I will be checking out more of your work.</p>
Im only able to source stripboard, does this make the build more complicated or would it be the same please?
It might be a little more difficult to get all the connections right. You may need to use a knife to cut some of the etched lines to make it easier.
<p>Hi there, I came across this project and thought that it would be perfect for a complete noob. After purchasing some parts and discussing it in my local electronic parts supplier, I came upon a problem where I couldn't Identify what types of capacitors you used, please could you list the types too for total novices?</p>
<p>The type doesn't matter. As long as you have the right values, it doesn't make a difference.</p>
<p>Could you do this with a 4 switch DIP because this is what I have???</p>
Yes. You will just have fewer voltages to select from.
<p>hi i am confrese i put in the LM317 Adjustable Voltage Regulator and the 8-Position DIP Switch and the 7 x 270 ohm Resistor now do solder the wire and the red wire and do and do i solder all to pin of the swich togladed and the Resistor bottens</p>
<p>If nothing else, just try to match the pictures.</p>
<p>floowed the pic and got 8v and 1.25v but nuffing betwins what i doing rong</p>
<p>Sorry. But I am not really sure what is going wrong.</p>
<p>ok thing it the 8 resistors as im unsure on thank go to swich but ends unsure wher go the wing goings if can do on the pic and wher go be nice of you</p>
<p>Pretty cool, simple design. I like the fixed DIP switches for set voltages. I came across this after posting my adjustable regulator, and thought I would show my appreciation for your design.</p>
is there a more detailed picture of where everything was soldered together on the back?
<p>I have added a new picture of the soldering to step 3</p>
Im currently working on a breadboard version would you like a pic when finished?
Did you ever happen to complete the breadboard setup?
Sure. If you want to post it in the comments, it might be helpful to other people.
this project is from MAKE
Yes. I work for Make. My name is Jason Poel Smith. I create projects for them and post them to several sites for a wider exposure.
Do you have a picture of breadboard setup?
Sorry. This was one of the rare occasions when I skips prototyping and went straight to the finished circuit board.
awsome!!! since the lm317 can handle up to 40V is suggested to use 12V A 23 mini battery? What changes have to do on above circuit <br> <br> <br>thanx
You can use a 12V battery without making any changes to the circuit. You would just want to use a different battery connector.
Brilliant! <br>I only have one Q? <br>How do you know how much current is being supplied across the circuit?
The voltage regulator keeps the output voltage constant regardless of how much current is being drawn (up to its operating limits). If you really wanted to know the current, you would probably have to use a current meter at the output.
This is a great idea!
Even though the idea of this was to test electronics at say a yard sale, this design is excellent for breadboard projects if you don't have a heavy duty power supply or just don't want to pull it out. This is a nice little project I plan on doing soon. thanks.
thanks <br>
Please send me the schematic diagram... Thank you.
The circuit diagram is on step 2
Good part of this is with a heat sink you can attach to a 12v source too. The lower the voltage it is set to the warmer the chip. I use this circuit without the resistors but I do use the potentiometer preset voltages for low power apps like AM/FM radio or a Digital Blood Pressure Monitor. These run my 6v powered speakers and provide voltages for experiments. Good choice for low powered devices. Mine are attached to a 200Ah battery.
simple, but in some cases wastefull due to the linear-regulator. <br>a more efficient (But more complex!) solution would be a DC/DC-Converter with variable feedback-divider. <br>http://www.linear.com/product/LT1376 would be such a solution (Buck-Converter) with quite low parts-count. Simply adjust the voltage-divider from Vout to generate 2.42V to the FB-Pin and you have your variable Output up to 1.5 Amps with an efficiency of mostly over 80% and also often above 90%. <br> <br>But as the efficiency isnt this an issue most of the time, your solution should fit the bill of many DIYers. :)
Actually dc to dc converters in this voltage range would be much less efficient due to the required operating overhead. The only time they are a valid source of power is if you are dealing with devices that require a tightly controlled and specific input. the LM series of voltage regulators are much more efficient. Your 80-90 % figures are not correct, as this output is at an unloaded state and drops tremendously as the operating load increases. The LM series regulator holds a constant 75-80% efficiency regardless of the load. I've had to redesign many supplies where DC-DC converters were grabbed off the shelf for critical use projects and replace the converters with LM series regulators, backed by FET pass transistors to save power for remote system use.
Excellent Instructable. I really like the idea that each dipswitch represents a single 1.53v battery, and also that you explain the voltage loss and facts such as (two 1/4watt resistors == one 1/2watt resistor) Question... I know "standard" voltage regulators follow the "lm70X" naming schema. Yes, I know a little off but it is something like that.... how do I identify variable voltage regulators thus allowing me to scrap them from old electronics, regardless of the fact that they are dirt cheap at Radioshack
Diy Hacks is correct. Solid state regulators are actually ICs so you only get family names IF anything is marked at all, that is an LM on the chip. Then the manufacturers proprietary markings. there are downloadable cross references from various sources, but they go out of date so fast it is unbelievable. your best bet is to go to the parts you are pulling and look for replacement parts through NTE and similar sources to identify them . It's a lot of work. but some times, worth it, mostly for the practice in desoldering more than anything,
I don't know of any universal naming convention. You will probably have to look them up individually.
Elegant and useful. A very nice Instructable. <br> <br>The only change I would suggest is choosing the divider resistors to set <br>more standard output voltages, such as 3.3 and 5.0v. The key is that these <br>resistors do not all have to be the same value.
the values in the circuit are fine, remember, batteries drop in output rapidly. AND standard resistors still 5% +/- tolerance. so in the end you would be literally measuring resistors to find the &quot;perfect&quot; values.
I have a question. I bet that the x is a / in the equation. What are the output voltages? Something is wrong with the equation.
The output are approximately 1.25, 2.80, 4.33, 5.86, 7.39, 8.92, 10.45, 11.98 with a max output of 1.5 below the supply voltage. I believe that the equation is correct. What are you uncertain about?

About This Instructable




Bio: My name is Jason Poel Smith I am a Community Manager here at Instructables. In my free time, I am an Inventor, Maker, Hacker, Tinker ... More »
More by DIY Hacks and How Tos:Bubble Bath That Never Runs Out Of BubblesMagic Wand FlashlightControlling Halloween Effects with DIY Infrared Remote Controls
Add instructable to: