Make the Simplest Adjustable Power Supply in 10-15 Minutes!





Introduction: Make the Simplest Adjustable Power Supply in 10-15 Minutes!

For about $5-$10 you can have your own adjustable power supply to power various electronics!

Step 1: The 3 "main" Parts You Will Need

1 - LM317 (I used LM338, however any adjustable regulator with "LM" in it should work fine)
1 - 5k ohm variable resistor (potentiometer)
1 - 220-240 ohm resistor

Step 2: Identify the Pin Order on Your Regulator

LM adjustable regulators should have 3 total pins, one for voltage in, voltage out (ground in), and adjust. 

From left to right they should be voltage in, adjust, and voltage out (ground in). 

Or you can look at the picture, pin 1: voltage in, pin 2: adjust, pin 3: voltage out (ground in)

Notice that pin 3 is both your voltage output for ground and input for ground. 

Step 3: 220-240 Ohm Resistor

Now we have to solder the resistor to the regulator's pin 1 and 2.

This step should be easy since there is no difference on which side you solder the resistor (any side will work). 

Step 4: Add in the Variable Resistor (potentiometer)

Now we have to add in our 5k ohm variable resistor (allows us to adjust voltage accordingly)

Solder the variable resistor to pin 1 of the regulator

The other end of the variable resistor will be now be our new "voltage in". So we would connect the main power source to that pin on the variable resistor.

Do not get confused with pin 1 and the pin on the variable resistor, if you give power to pin 1 on the regulator you will not be able to adjust your voltage output. 

Step 5: You're Done!

Now you can solder two wires onto the regulator so you can connect it to a power supply (24v max), you will then be able to adjust it from about 1.2v~23v. 

Please keep in mind that this is just the bare basics of making an adjustable power supply. Most diagrams would include capacitors in their design to help smooth out voltage fluctuations, although they are not completely necessary, they will help with more consistent voltage output.

If you feel comfortable with adding capacitors to the design, all you have to do is connect the capacitors in parallel with the voltage in (+) and voltage out (-) of the regulator. Make sure that the capacitor is rated for at least 25v or higher, any lower and it may explode/leak. 

You may want to double check your voltage output to make sure that it is working before trying it on different devices. 
You may also need to attach a heatsink to the voltage regulator if you are going to be running heavy loads, as it does get quite hot under those conditions. 

Lastly, after you have done all the correct connections and verified that it is working properly, you may put it in a case so everything is protected.



    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Spotless Contest

      Spotless Contest

    We have a be nice policy.
    Please be positive and constructive.





    Can I connect 12 VDC 1 Amper power brick to this?

    Can I use a 9v battery to power it

    Voltage regulators are more of an integrated circuit than just a transistor, so the ratings are different. The power rating of transistors themselves vary considerably using the same case. You have to look up each type to be sure. Cheers!

    To truly figure out how much power a regulator can dissipate, you need to do some basic thermal calculations. Different case styles have different thermal resistances. There are generally 3 thermal resistances that need to be considered: silicon junction to the package/case (found on datasheets for transistors & regulators and stuff. 5 C/W for the 7805), then one between the package/case and the heatsink (depends on how good you mount the transistor to the heatsink), and finally the one from the heat sink to the air. (are you using a small baby heatsink, or a CPU cooling heatsink, or a bigass car radiator!?)

    You can simply add all these thermal resistances up to get an idea of what θJA (junction to ambient). As a matter of fact, you can treat thermal resistance just like electrical resistance! Anyways generally speaking the heatsink will have the largest/most significant thermal resistance. Smaller heatsinks are less effective at getting the heat from the transistor into the air because there is less surface area

    To figure out the maximum power you can dissipate, use the formula PD = (TJ − TA)/θJA. PD is power dissipation in watts, TJ is the temperature of the silicon junction, Ta is the temperature of the air, and θJA is thermal resistance.

    When it comes to any device, the power dissipated is nothing more than the voltage dropped across it multiplied to the current through it. So that formula can help you solve for any device. For linear regulators specifically, the power dissipation will be the difference in voltage, times the current. (Vin -Vout)*A. You can work backwards from that to figure out what voltages/currents can be pulled safely from a power supply without causing the regulator to overheat.

    Yes but for most applications you can ballpark it using the datasheet ratings and your voltage & current

    The datasheet can give you the maximum power dissipation, and that is generally assuming you can keep the case of the package at room temperature, and the junctions will be at the maximum temperature (150*C) Of course in the real world it is almost impossible to achieve like 100W of dissipation while keeping the transistor at 25*C w/o an active heat pump.

    Again your bringing transistors into this. Linear Voltage regulators have a finite max. current they can supply. Exceed that and if your lucky it will shut down on overcurrent, unlucky smoke ..

    Many voltage regulators have protection mechinisms in place, sure. That does not mean you should be careless about how you treat them, I have had many regulators die from abuse from heat and short circuits. They are not fool proof.

    By "junction", I am referring to the primary pass transistor inside that is the culprit of all the heat.

    That is my point. Follow manufacturers specs, not what someone without the necessary understanding tells you. I never suggested abusing them !!!!

    So then my original point holds true. To truly figure out how much power a regulator can dissipate, you need to do some basic thermal calculations. Different case styles have different thermal resistances. (goto comment 1)

    TO220 is typically just under 1 *C/W, from the silicon chip inside to the case. If you let the package stand in free air its about 35 *C/W from junction to ambient, depending on air flow.

    Exceed the thermal and you ARE abusing the part. Thermal cutoff typically occurs at 150*C which is too hot. 100*C is the max for reliable operation