Voltage regulator LM7805

I've just started working with the LM7805, and I have a few questions.

I have an LM7805 with two 10uF capacitors connected to a 9volt battery, and a 220ohm resistor and LED.

  1. I get a voltage output of 4.987 shouldn't it be 5volts? Or is it that all multimeters are not 100% accurate?

  2. Sometimes the voltage fluctuates. Do you think that's me touching wires by mistake or I have too small capacitors?

  3. Even though IC state that they need 5 volts is the some leeway in that. For example 4.9 or 5.1 volts is okay?

Thank you!

Cameron.

cameronasmith:
is it that all multimeters are not 100% accurate?

Yes.

Also, no voltage regulator is 100% accurate.

cameronasmith:
2. Sometimes the voltage fluctuates. Do you think that's me touching wires by mistake or I have too small capacitors?

How much?

cameronasmith:
2. Sometimes the voltage 3. Even though IC state that they need 5 volts is the some leeway in that. For example 4.9 or 5.1 volts is okay?

Yes. You should aim for 5.0V but most ICs will work with up to 10% difference (see datasheet for the IC for exact numbers).

Thank you for your response. It will fluctuates like this:

4.980 to 4.976, and really only if I touch the wires.

If i don't touch anything then it will be something like:

4.980 to 4.981 (and not very often)

Although I am not sure about the quality of your meter, there is usually a small ripple on the VCC line. less than 5mv difference is pretty good actually. You meter samples a couple of times per second. The ripple is on top of the basic Vcc voltage. One sample might be at the top of a ripple, the other at the bottom. looks good to me.
I usually use 1 - 5uF caps on the regulators output to improve regulation. Also I add a 100nF ceramic cap at both the input and output of the regulator so supress any noise.

Thanks, Guys,

I guess when I read about electronics I always thought everything was perfect. But, when you start applying what you have learned you start to see that nothing is perfect. It just runs within margins of tolerance.

Cheers,

Cam

Nothing is perfect. Build a house or shed, 1/16 inch is close enough. Build a cabinet, 1/128 inch is fantastic.

When designing a circuit, it is best if your circuit can work correctly with 5% resistors, 20% capacitors, and anywhere from 10% or worse variation in Vcc. It can get quite expensive to require better components. Some parts will require better precision, or at least calibration.

polymorph:
When designing a circuit, it is best if your circuit can work correctly with 5% resistors, 20% capacitors, and anywhere from 10% or worse variation in Vcc. It can get quite expensive to require better components. Some parts will require better precision, or at least calibration.

That is usually when the price goes up :grin:

Thanks, Guys!

So, I should be fine using that to power my ATMEL chip?

cameronasmith:
So, I should be fine using that to power my ATMEL chip?

Yes.

PS: Try measuring your USB voltages, etc.

That's well within spec cited in datasheets.
I don't know what meter you are using, but I would guess it can't be trusted when it comes to millivolts.

Most 3.5 digit meters are range 1.999, 19.99 and 199.9 volts. (the "1" is what is called the half digit) So if you are measuring 5 volts you are probably using the 20 volt range.
Calibration tolerance is usually (almost always) referenced to full scale so the 0.5% error is actually referenced to 20 volts which equates to +- 0.1 volts
Hence your 5 volts could actually display as anywhere between 4.900 and 5.100 volts
Then there is the +- 1 digit tolerance of the ADC that drives the display so we now get anywhere from 4.899 to 5.101
The 1 digit flicker you see is probably the 1 digit tolerance of the ADC
So with the best will in the world, measurement is at best a "near enough" science.

If your meter is reading anywhere in the range 4.899 to 5.101 you can be reasonably confident that the 7805 output is to spec.

I don't have the meter in front of me, but i'm pretty sure it's this one: RadioShack.com Official Site - America's Technology Store

What happens if I measure my USB voltages. Do you think they will fluctuate too?

Oh, yeah. Widely. 4.5V is not uncommon.

cameronasmith:
What happens if I measure my USB voltages. Do you think they will fluctuate too?

The idea is for you to actually measure them and find out!

So, if you were using the USB as a power source would you have to regulate it? I'm not doing that, but it's interesting to know.

Only if you were using it for 3.3V.
It does not need regulation for 5V +/-5% use (4.75V t0 5.25V).

This is why if you are trying to use the analogRead() command to measure anything with any sort of accuracy, it is better to use the internal reference or an external reference, rather than the default which uses Vcc.