How to Build a Bench-Top Power Supply

231,164

593

277

Introduction: How to Build a Bench-Top Power Supply

A key component of any electronics project is the electricity. You could use endless amounts of batteries, or use a simple, compact power supply to power all of your electronic projects. This is a great beginners electronics project for those just getting into electronics, or a fun project for those who haven't wanted to drop the cash for a commercial model. This circuit is capable of supplying a variable voltage output from 1.5 volts to 12 volts.

Step 1: The Parts

All of the following components can be found at your local RadioShack. You can also scavenge most all of these parts fairly easily from old electronics.

1 LM317T Adjustable Voltage Regulator - 276-1778
This is the adjustable voltage regulator. It takes input from two resistors (R1 and R2) and then ratchets the voltage down accordingly. I recommend you take a look at the datasheet if you want to learn more about this part.

1 0-5K Linear Potentiometer - 271-1714
This is R2, and will allow us to control the voltage output.

1 560 Ohm Resistor - 271-1116
This is R1.

2 1N4001 Diodes - 276-1101
There are two diodes to protect against short circuits. D1 will protect the regulator from the capacitors discharging if the input power is short circuited. D2 will protect the regulator from the capacitors discharging if the output power is short circuited.

1 .1 uf Capacitor - 272-135
This capacitor (C1) acts as a smoothing capacitor. It should be only a ceramic disk capacitor.

1 10 uf Capacitor - 272-1013'
This capacitor (C2) improves the transient response of the regulator. It should be electrolytic.

1 PCB mount SPST switch - 275-645
Allows you to turn the power on and off without unplugging the wall-wart.

1 PCB mount terminal strip - 276-1388
This is mounted directly to the PC board and is an easy way to connect your power supply to many different circuits and components.

1 12v Wall-Wart
Provides the power to the circuit. RadioShack has a nice selection, but I recommend salvaging your own as I did. Anything will work as long as the output current is no more than an amp. I choose one that has an 800mA output, but anything over 500mA should cover most basic electronics projects.

1 Small Perfboard - 276-148
This particular board is the perfect size for this circuit, and my layout is based on it. This is a perfboard, but if you wanted to make your own PCB, feel free to use the attached EagleCAD schematic to generate your own layout.

1 Heat Sink - 276-1368
A good precaution. The regulator has built in protection to prevent it from burning itself up, but it does that by limiting current. If you didn't have a heat sink, you might find that you have less current output than you expected. Any piece of metal will work as long as you can attach it metal-to-metal on the tab. Even a large alligator clip will provide decent heat dissipation.

Step 2: The Tools

These are the standard tools for assembling almost all electronics projects. Not all of these are absolutely necessary, but they make the job a lot easier.

Soldering Iron
Not a soldering gun. Soldering guns make semiconductors cry tears of melted plastic.

Solder
Hot glue doesn't count. I've seen it. No joke.

Multimeter

Wire strippers

Pliers

Side-cutters

Solder-sucker
Not required if you don't think you're going to make mistakes.

Small flat-headed screwdriver
To tighten the screws on the terminal strip.

Helping hands
These are those funky things that hold stuff while you're soldering. These are useful for way more than electronics.

Solid core wire
You need this to create the traces. It must be solid core!

Step 3: Breadboard

Breadboarding isn't mandatory if your confident things are going to work out, but it's probably a good idea to do it anyway. If a problem arises now, you can fix it before it's set in lead. Make sure to test the output voltage to insure nothing is out of line.

Step 4: Dry Fit the Components

Your going to want to lay everything out on the perfboard before you solder it. Your welcome to use my layout. One is normal and one is reversed so you can see where the components are when you are looking at the soldered side. The black dots show where the pins go through the board. The black lines are copper traces. The red lines are solder bridges. I got the templates from runoffgroove.com.

At this point, your also going to want to bend the copper traces. Use the wire strippers to strip all of the insulation off of a length of wire, and bend them to the correct length. Bend all copper traces except for the ones that lead to the terminal strip. These are more easily added after all the other components have been soldered.

Step 5: Solder Stuff

Now your ready to solder the components on. Start with the copper traces. Then, the resistor, switch, potentiometer, capacitors, diodes, and finally the regulator (in that order.) It's easier to solder the regulator with the heat sink already installed. Plus, it will protect the component from the heat of the soldering iron. Don't solder the wall wart or the terminal strip yet. Remember that polarity needs to be noted for components like the electrolytic capacitor (C2) and the voltage regulator. Don't solder them in backwards!

Step 6: Solder More Stuff

Now, solder the terminal strip into place. Then, solder in the traces to the strip. Note that the positive trace is routed over the negative trace next to it, so you will need to leave a little insulation on the positive trace to avoiding creating a short circuit. Then, solder the wall wart wires on, noting polarity. Clip all the long leads close to the solder joint with the side cutters. Finally, make all the solder bridges to connect the components to the traces. Take care with sensitive components like the diodes and the regulator. These are sensitive to heat.

Step 7: Quality Control

Go over each and every trace and make sure that you have good tight joints, and that no accidental solder bridges are present. Using a multimeter on the resistance setting is an easy way to see if joints are touching.

Step 8: Moment of Truth

Plug the wall-wart in and flip the switch. If smoke pours out of the voltage regulator, you got something wrong. If nothing happens, things are probably in your favor. Hook up your multimeter and test the voltage. Make sure the potentiometer can adjust the voltage. If everything checks out, congratulations! You're ready to start a long life of powering circuits.

Step 9: Possible Improvements and Modifications

This circuit is highly adaptable. You can adjust the values of R1 and R2 to suit whatever components you have on hand. I actually designed my personal circuit to use a 0 - 4K pot that I had on hand. If you want to change the resistors, use the following formula:

VOUT = 1.25 * ( 1 + ( R2/R1 ) )

The value of R1 should be between 10 ohms and 1000 ohms. Anything higher and the voltage regulator won't behave. If you decide to make any changes to the circuit, you should refer to the datasheet for the finer details. This site is another good reference for using the LM317T.

Ideas from the comments
-You could enclose the entire circuit in a plastic project box. That would prevent the back side of the board from shorting out if it came in contact with a metal tool.
-You could buy a multimeter that is to be used only for tuning the output. Cut off the probes and solder the wires directly to the outputs for a permanent solution. If the multimeter had interchangeable probes, you could buy an extra set for use with other projects.
The Instructables Book Contest

Participated in the
The Instructables Book Contest

1 Person Made This Project!

Recommendations

  • Make It Bridge

    Make It Bridge
  • Game Design: Student Design Challenge

    Game Design: Student Design Challenge
  • Big and Small Contest

    Big and Small Contest

277 Comments

0
MalcolmA3
MalcolmA3

6 years ago

Awesome project! I have got mine mostly working but when i turn it on all that happens is in the case of testing it with an led it blinks at me. is there a good explaination for this?

0
Sunnyhiht
Sunnyhiht

6 years ago

i have to make a variable power supply ranging from -12v to +12v dc output from 240v ac wall input... i am using LM317 and LM337 ... please help me out with the transformer ratiing to be used and which rectifiers diode to be used and values of capacitors and resisters...

0
AMIN72
AMIN72

6 years ago

Hello
What is that electric current 4-20 mA circuit?
Help me please

0
eshklrtbs
eshklrtbs

6 years ago

i made it but it is giving only 3.66v at maximum plz help me to understand what is wrong

0
Sethgaming46
Sethgaming46

7 years ago

Since you're using a regulated ac-dc supply as the power source of your circuit, I'm pretty sure you wouldn't need to have the power-smoothing capacitors in your circuit. Correct me if I'm wrong but I believe that is correct since your circuits supply is already regulated to hold a steady voltage under loads.

0
Mr Mrs RJD
Mr Mrs RJD

8 years ago on Introduction

Need a/c output. How to make 12v ac 1800ma supply???? Just fried the one for my Xmas tree stand. It runs a small 12 a/c motor and a m16 lamp. Any suggestions, any ideas, Please.

Image of data sticker.

Thank you

12v ac output.jpg
0
Testas.T
Testas.T

Reply 7 years ago on Introduction

for regulated power supply you just need DC power supply. If you just want that AC power supply for something else then just buy transformer 12v 1.8A or 2A put it in box and you are ready to go because you don't need any external parts to get AC.

0
Mr AbAk
Mr AbAk

7 years ago

Nice Ible....

0
dudes
dudes

8 years ago

I made one, but with a lm317lz instead of a lm317t. it works great but can only handle up to 100mA, good for LEDs less than one watt. great instructable.

0
neutralityy
neutralityy

8 years ago on Step 2

"Solder-sucker

Not required if you don't think you're going to make mistakes."

*Gets 20 solder suckers*

0
JasjotSingh
JasjotSingh

9 years ago on Step 2

Do soldering guns really make semiconductors cry tears of melted plastic. Greyhathacker45?

0
blerpherp
blerpherp

10 years ago on Introduction

Can I use a 10K potenciometer instead of a 5K?? And, will a 1N4005 diode work as well?? Please help.

0
Cekpi7
Cekpi7

Reply 9 years ago on Introduction

any silicone diode should work and yes you can use 10k pot and resistor is 1k

0
Flinchy42
Flinchy42

10 years ago on Introduction

Just built this and wired it up, and it works perfectly! thank you so much for this instructable, it was EXACTLY what I needed for my project! =D

0
ishmal1103
ishmal1103

10 years ago on Introduction

I just built this and whenever I turn it on, I only get about 14v, the potentiometer doesn't seem to do anything. Any ideas on where I went wrong?

0
M0HIZ
M0HIZ

11 years ago on Step 1

Great 'ible, but why does the Wall Wart have to be less than 1 Amp when the LM317 can supply up to 1.5A?

Thanks for your help.

0
31mimo
31mimo

Reply 10 years ago on Step 1

The stronger the better. I reused an old printer transformer 30 V - 1800 mA and added the LM317.
. The output range is 1,5V to 29V - 1500mA