After receiving so many hits on this particular page I decided to update this page to provide the most accurate content possible. This tutorial is using the LM7805 Voltage regulator to take a 12 volt source down to 5 volts. This has many applicable uses, one of which being the Arduino micro-controller.
The Arduino operates at 1.8 volts to 5 volts and since most of the projects I work on require the ATMega328 chip it was important to properly regulate voltage. For my particular instance I am hooking the Arduino up to a 12 volt car battery to power a Knight Rider chase effect that I have come up with to implement on a friend of mines old firebird. One problem in particular with a car battery is that its not a constant voltage and sometimes can operate at up to 15 volts. Fortunately using the LM7805 and a couple of capacitors we can regulate a steady voltage to our project.
Now I am using this for an Arduino, however, this can be applied for many applications and I tend to see this particular regulator used a lot in automobiles.
Well lets get started
If you are unfamiliar with the LM7805 this is what it looks like...pretty simple huh
Your 12 volt power source will have its positive lead plugged into the INPUT pin on the LM7805, but lets not get into that right now I have a step by step on hooking up a voltage regulator.
Here is the datasheet for the LM7805
-
lm7805.pdf
Here is what I will be using in this project. Now I should have used a 100uF capacitor as well as a 0.1uF capacitor but when I was building this tutorial they were still in the mail so I had to improvise.
Now that you have a parts list lets start putting putting it all together.
First we want to hookup the LM7805 to our breadboard. I had some spare parts laying around and found a heat sink that fit perfectly so I put it on mine. If properly hooked up it doesn't emit a whole lot of heat but I had one laying around so I placed in on their.
Now add the positive wire from your 12volt source to the INPUT pin on the LM7805 like so
Now lets put in the 1000uf 16volt capacitor, paying close attention to polarity. Mine has a minus symbol on the negative side, so plug the positive(unlabeled) side into the same row as the INPUT pin and place the negative lead of the capacitor into the row of the COMMON pin of the LM7805 like so

*The side facing camera is positive in mine*
Alright now take a wire and place one side in the same row as the OUTPUT pin and the other end goes into the long positive row.

*It may look like it is plugged into the negative row but it is actually in the positive row, see later pictures for more clarity*
Here is how the second capacitor should be hooked up. This is setting up a filter capacitor and get wired according to the schematic at the top of this page.
Wiring an led to work with 5 volts.
Wiring the common pin for the LM7805. Attach the Common pin to the long negative rail.
Now that you have everything wired up, lets try it out...ensure that your capacitors are of proper values for your project. Of course make sure that you have your negative lead from your 12 volt source plugged into the long negative rail.
Lets add two additional cables to test our voltage.
Make sure that you have your digital multimeter for correct voltage. I am using 12volts so 20 is the closest value while still being above.
Try it again and as long as your connections are good it should look similiar =)
I have tried to make this a step-by-step tutorial and I hope that it is easy to follow and descriptive enough to explain what needs to happen...If you have any questions feel free to post them and hopefully I will be able to help, if not I am sure other users will be able to!!
Comments
LM7805 Voltage Regulator Tutorial
Hello,
I am a bit lost do you need the heat sink if you are using a PP 3 9 volt battery to get 5 volts.
Regards Mike.
Heatsink
I haven't needed to use a heatsink when everything is wired properly...I know that a few times I wired it improperly and it generated a lot of heat, actually burned my finger it was so hot. It was because I had wired it incorrectly tho, so I would check the wiring and make sure it is right and nothing is accidentally touching.
heatsink
The heat sink isn't really necessary, even for my application it was overkill but I figured I would throw it on there as a 'just in case' type of deal since I had one lying around. I know the first time I put one of these together it got extremely hot but it was because I had wired it wrong...once I got the kinks worked out it turned out fine and didn't emit much heat at all.
A buddy of mine also recommended if your using this in an automobile that you could just bolt this to the body of your car, and it would work as a heat sink and as a ground since the back of the LM7805 is a ground as well.
Thank you for the information.
Thank you for the information this is very helpful to me.
Regards Mike.
no problem
Glad I was able to help you out!
Similar Circuit
I am building a circuit that is very similar to this. I have a 12V power supply and am powering a ribbon of LED's that operate at 12V, but I also want to power six 7-segment LED displays that operate at 5V. Do you think I'd need the heatsink if I hooked up this regulator in the same fashion as you've shown? Thanks in advance!