Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

power loss in 7805 used as current regulator

312 views
Skip to first unread message

jtaylor

unread,
Mar 20, 2004, 9:33:20 AM3/20/04
to
I'm a sort-of newbie.

If I have a 9-volt battery running an LED through a 7805 using a 100ohm
resistor to limit the current to 20ma, how much power is lost in the
regulator?

This needed for estimate of battery life...


Tam/WB2TT

unread,
Mar 20, 2004, 9:57:14 AM3/20/04
to

"jtaylor" <jta...@hfx.deletethis.andara.com> wrote in message
news:gxY6c.7799$kc2.1...@nnrp1.uunet.ca...
All of the 20 ma (actually more like 30) flows through the 7805, plus about
another 5 ma. Using your 20 ma, total power drain on the battery would be 9
x (20 + 5) = 225 mw. I hope this is for something that gets turned on
infrequently, for a few minutes at a time.

Tam


Rom

unread,
Mar 20, 2004, 10:05:53 AM3/20/04
to

Hi! I'm a sort of french folk ;)
(sorry for my bad english writing)

The power lost in the regulator (heat) is the difference between the
power supplied by the battery and the power fed to the load.
The current flowing through the load is (as far as I know) the same as
the input's.
So the power lost should be 80mW.


Hope it helps
--
Romain

Richard Rasker

unread,
Mar 20, 2004, 10:08:42 AM3/20/04
to

Just the current consumption is enough - battery capacity is expressed in
Ah (ampere-hours) or mAh (milli-ampere-hours), so the power loss in the
7805 is not relevant.

If a new 9V-battery has a capacity of 200mAh (which I think is
reasonable), drawing 20 mA from it will give you 10 hours of battery life.

However, an 7805 will also draw 5mA on its own, so that gives you
approximately 8 hours of battery life.

Mind you, this capacity can vary quite a bit (not just between brands and
types, but also between identical batteries), and it's not a "hard" value:
it decreases with the amount of current drawn. So a 200mAh battery will
definitely not give you 1 hour at 200mA, but more likely something like
15 - 30 minutes.

The other problem is that this capacity is usually not mentioned in any
way (which is kind of funny when you think about it - with anything else
you buy, the manufacturer or supplier *must* specify exactly how much you
get).

About the 7805 and LED combination: are we talking about a white LED here,
since you implicitly indicate a 3V voltage drop [(5V - 3V)/100R = 0.02A]
If you just use the 7805 to supply the LED circuit with 5V, you can of
course do away with it altogether, and simply hook up the LED directly to
the 9V battery, with a 330 ohms series resistor - this will also save you
the 5 mA for the 7805 right away. Furthermore, you could consider using a
low-current LED, which has maximum brightness at a much lower current,
although these are still exceedingly expensive in white and blue.


Richard Rasker

--
Linetec Translation and Technology Services

http://www.linetec.nl/

Spehro Pefhany

unread,
Mar 20, 2004, 10:12:43 AM3/20/04
to
On Sat, 20 Mar 2004 10:33:20 -0400, the renowned "jtaylor"
<jta...@hfx.deletethis.andara.com> wrote:

>I'm a sort-of newbie.
>
>If I have a 9-volt battery running an LED through a 7805 using a 100ohm
>resistor to limit the current to 20ma, how much power is lost in the
>regulator?

An alkaline battery might be specified to have "end of life" at
0.8V/cell or 4.8V. The 7805 will drop out at maybe 1.5V typically, so
the LED will begin to get dimmer at around 6.5V battery voltage, well
above the "end of life" voltage. It will still be dimly lit at 4.8V,
however.

Also the 7805 draws about 5mA just for its own needs, so the actual
current will be LED+5mA (typical).

>This needed for estimate of battery life...

All the information you need is here (or other battery manufacturer
data)

http://rocky.digikey.com/WebLib/Panasonic/Web%20data/Panasonic_Alkaline_Hdbk_03-04_v1.pdf

and here:
http://www.fairchildsemi.com/ds/LM/LM7805.pdf


You can see from the graph on page 10 (constant current*) of the
battery data that you can expect a battery life of around 18 hours
from a Panasonic Industrial alkaline cell under those conditions and
at 20°C.

* the 7805 will draw constant current of about 25mA at the input pin
until it begins to drop out.

Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
sp...@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

Rom

unread,
Mar 20, 2004, 10:13:27 AM3/20/04
to
On Sat, 20 Mar 2004 16:05:53 +0100
Rom <romain...@ssji.net> wrote:

> So the power lost should be _180mW_. (sorry, I forgot a digit)
But there is some leakage current, so you should consider adding about
10% to 20%...

--
Romain

John Woodgate

unread,
Mar 20, 2004, 11:25:51 AM3/20/04
to
I read in sci.electronics.design that jtaylor <jta...@hfx.deletethis.an
dara.com> wrote (in <gxY6c.7799$kc2.1...@nnrp1.uunet.ca>) about 'power
loss in 7805 used as current regulator', on Sat, 20 Mar 2004:
Well, it isn't needed for that purpose, but still....

You have 5 V/100 ohms = 100 mA, not 20 - no you don't, because the LED
has a voltage drop, which I could guess if I knew the colour. I'll
assume it's a red one dropping 1.6 V. So your voltage across the 100 ohm
is actually 5 - 1.6 = 3.4 V, giving 34 mA. Hot diode! Too much! Maybe
it's a blue LED at 2.6 V. That gives 24 mA.

Anyway, let's say 24 mA. You have 9 - 5 = 4 V across the 7805 and 24 mA,
so the power is 4 x 24 mW = 96 mW - not much. So I assume you are using
a 78L05, not a 7805, which will steal another 5 mA from your supply.

To determine the battery life, you divide the milliamp-hour capacity by
the current in milliamps. 24 mA is really too much for a 110 mAh PP3
battery, but if that's what you have, you divide 110 by 24 to get 4.6
hours.

Amp-hour ratings are based usually on the current being low enough for
the battery to last 20 hours, though; that's why 24 mA is really too
much. Still with a good battery you would get around 4 hours.


--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk

Spehro Pefhany

unread,
Mar 20, 2004, 12:06:09 PM3/20/04
to
On Sat, 20 Mar 2004 16:25:51 +0000, the renowned John Woodgate
<j...@jmwa.demon.contraspam.yuk> wrote:


>Amp-hour ratings are based usually on the current being low enough for
>the battery to last 20 hours, though; that's why 24 mA is really too
>much. Still with a good battery you would get around 4 hours.

What kind of crummy batteries are they foisting off on you blowkes in
Old Blighty anyhow? A nice Japanese 570mAh battery gives you 18 hours
and costs a paltry 79p at Digikey, a dozen at a time. They have almost
84,000 in stock, as I sputter.

<http://rocky.digikey.com/WebLib/Panasonic/Web%20Photos/6AM-6PIX^1S.jpg>

Walter Harley

unread,
Mar 20, 2004, 12:35:45 PM3/20/04
to
"jtaylor" <jta...@hfx.deletethis.andara.com> wrote in message
news:gxY6c.7799$kc2.1...@nnrp1.uunet.ca...

I'm assuming your circuit looks like this:

____
| | ___
9V ----|7805|----|___|---o---->|----.
|____| | |
| 100R | LED |
'---------------' GND

In this case, the LED gets 5V/100R = 20mA, plus the quiescent current of the
regulator, for a total of 25mA. If you wanted only 20mA, just increase the
R to 133 ohms.

But a better solution would be to use a chip that had a lower quiescent
current (so that more of the output current is under your control) and that
wasted less power in the resistor (so that you have lower end-of-life input
voltage). One such chip would be the LM317L. (Note the "L" in the part
number - this is the low-power version of an LM317.) Its quiescent current
is less than 100uA; and the voltage between adj and out pins is 1.2V rather
than 5V, so to get 20mA out, you would use a 24 ohm resistor.

Dropout voltage of the LM317L is around 1.5V at these currents. At 4.8V
(extreme end of life on battery), that still leaves you (4.8V - 1.5V - 1.2V
=) 2.1V for the LED. So you'll be good to the last drop of battery life.

Doing it that way does mean that more of your excess power is being burnt in
the regulator rather than in the resistor: at 9V, assuming the LED takes
around 2V, then the resistor gets 1.2V at 20mA and the regulator gets the
remaining 5.8V at 20mA. So the regulator is dissipating about a tenth of a
watt. Will it get too hot? The datasheet at
http://www.national.com/ds/LM/LM317L.pdf says thermal resistance of the
little TO92 package is 180 C/W, so we expect temperature to rise by about 20
degrees C at worst. That'll be warm, but still well within the 125C thermal
limit of the device.

maxfoo

unread,
Mar 20, 2004, 12:52:12 PM3/20/04
to
On Sat, 20 Mar 2004 10:33:20 -0400, "jtaylor"
<jta...@hfx.deletethis.andara.com> wrote:

check this out...for 70 cents in parts...

http://www.romanblack.com/smps.htm


Remove "HeadFromButt", before replying by email.

jtaylor

unread,
Mar 20, 2004, 1:51:02 PM3/20/04
to

Walter Harley <wal...@cafewalterNOSPAM.com> wrote in message
news:c3hvdh$un0$0...@216.39.172.65...


Thank you.

Some other responders seem to have missed the "current-regulator" in the
post subject.

Yes it is for white LED. 20mA is recommended for maximum brightness and no
life reduction. The battery I'm using is a NimH, says 160mAh. From what I
know the voltage curve is quite flat on these, so a low-dropout regulator is
less of a concern. The 7805 I'm using actually says "78L05, " I'll start
looking to see if this is a low-power part.


Ian Bell

unread,
Mar 20, 2004, 3:15:19 PM3/20/04
to
jtaylor wrote:

The volts drop across the regulator multiplied by the current thru' it so in
your case 4volts x 20mA = 800mW.

Ian

John Woodgate

unread,
Mar 20, 2004, 3:29:23 PM3/20/04
to
I read in sci.electronics.design that Ian Bell <i...@yahoo.com> wrote (in
<c3i8or$27onk1$1...@ID-225948.news.uni-berlin.de>) about 'power loss in

7805 used as current regulator', on Sat, 20 Mar 2004:

>The volts drop across the regulator multiplied by the current thru' it

>so in your case 4volts x 20mA = 800mW.

Only for sufficiently large values of 4 and 20. (;-)

Ian Bell

unread,
Mar 20, 2004, 4:07:25 PM3/20/04
to
John Woodgate wrote:

> I read in sci.electronics.design that Ian Bell <i...@yahoo.com> wrote (in
> <c3i8or$27onk1$1...@ID-225948.news.uni-berlin.de>) about 'power loss in
> 7805 used as current regulator', on Sat, 20 Mar 2004:
>
>>The volts drop across the regulator multiplied by the current thru' it
>>so in your case 4volts x 20mA = 800mW.
>
> Only for sufficiently large values of 4 and 20. (;-)

Absolutely. If 4 gets too small then the regulator may no longer. ;-)

Ian

Active8

unread,
Mar 20, 2004, 4:53:26 PM3/20/04
to
On Sat, 20 Mar 2004 15:12:43 GMT, Spehro Pefhany wrote:

<snip>

Good link. A friend once told me he got the most use out of
Panasonic batts in his pager.

Too bad Digi-Key doesn't have a complete reference on the NiCds,
just individual data sheets.

<snip>
--
Best Regards,
Mike

Fred Bloggs

unread,
Mar 20, 2004, 6:41:35 PM3/20/04
to

This will regulate the current to 20mA down to a fully discharged
battery- and the overhead current is less than 1mA versus 3-8mA for the
7805:

Please view in a fixed-width font such as
Courier.


+--------+------+-------+
| | | |
| | / |
| | 3.3K |
| | / ---
| | \ \ / ~~~
| | | ---
| / e |
| 330K \| |
| / 2n3906|-----+
| \ /| |
| 9V | c |
----- | | |
- | | c
| | | |/
| +------+-----| 2n3904
| | |\
| | e
| c |
| \| |
| 2n3904|-----+
| /| |
| e /
| | 33
| | /
| | \
| | |
| | |
+---------------+-------+

Fred Bloggs

unread,
Mar 20, 2004, 7:07:44 PM3/20/04
to

Walter Harley wrote:

>
>
> I'm assuming your circuit looks like this:
>
> ____
> | | ___
> 9V ----|7805|----|___|---o---->|----.
> |____| | |
> | 100R | LED |
> '---------------' GND
>
> In this case, the LED gets 5V/100R = 20mA, plus the quiescent current of the
> regulator, for a total of 25mA. If you wanted only 20mA, just increase the
> R to 133 ohms.

1) 5V/100 ohm= 50mA

2) Regulator input= 1V( I/O drop for 7805)+ 5V ( 7805 Out/GND pin) +
3.3V (Vf LED)=9.3V. It's never in regulation, especially for NmH at 7.2V

3) does accidentally deliver 20mA though-

Walter Harley

unread,
Mar 20, 2004, 7:49:36 PM3/20/04
to
"jtaylor" <jta...@hfx.deletethis.andara.com> wrote in message
news:Ri07c.7949$kc2.1...@nnrp1.uunet.ca...

> Yes it is for white LED. 20mA is recommended for maximum brightness and no
> life reduction. The battery I'm using is a NimH, says 160mAh. From what
I
> know the voltage curve is quite flat on these, so a low-dropout regulator
is
> less of a concern. The 7805 I'm using actually says "78L05, " I'll start
> looking to see if this is a low-power part.

It's still 5mA quiescent current. (Datasheet at
http://www.national.com/ds/LM/LM78L05.pdf.) That's okay, it just means you
don't have as much regulation of the output current; the quiescent current
will vary according to the Vin/Vout differential, and it's outside your
control.

Two other things to think about here:

1. If you're working with NiMH, at relatively constant voltage, and with a
known number of LEDs (one), why are you using a regulator at all? Why not
just use a series resistor, of (9V - 3V)/20mA = 300 ohms? If neither the
voltage nor the load are changing you don't need a regulator.

2. If you really want to get the most out of the battery, what you need is a
switch-mode regulator rather than a linear regulator. No matter how you cut
it, the linear regulator (or series resistor, if you go that route) is only
going to be about 33% efficient when dropping ~9v to ~3v. The switch-mode
regulator can do 80 to 90% efficiency, assuming you find one that is
appropriate to the amount of current you're drawing. Another poster
mentioned the Roman Black regulator circuit; and there have been a number of
recent threads here on the topic of buck regulators for driving white LED's.


John Woodgate

unread,
Mar 21, 2004, 4:02:14 AM3/21/04
to
I read in sci.electronics.design that Walter Harley
<wal...@cafewalterNOSPAM.com> wrote (in <c3ior0$skg$0...@216.39.172.65>)
about 'power loss in 7805 used as current regulator', on Sun, 21 Mar
2004:

>If you really want to get the most out of the battery, what you need
>is a switch-mode regulator rather than a linear regulator.

If the OP doesn't know how to run an LED from a linear regulator, how do
you think he is going to cope with a far more complex switcher?

jtaylor

unread,
Mar 21, 2004, 8:51:07 AM3/21/04
to

John Woodgate <j...@jmwa.demon.contraspam.yuk> wrote in message
news:En3kPqCW...@jmwa.demon.co.uk...

> I read in sci.electronics.design that Walter Harley
> <wal...@cafewalterNOSPAM.com> wrote (in <c3ior0$skg$0...@216.39.172.65>)
> about 'power loss in 7805 used as current regulator', on Sun, 21 Mar
> 2004:
> >If you really want to get the most out of the battery, what you need
> >is a switch-mode regulator rather than a linear regulator.
>
> If the OP doesn't know how to run an LED from a linear regulator, how do
> you think he is going to cope with a far more complex switcher?

At this level, with standard componenets, things look to be just cook-book
stuff. Buy the bits, build it, turn it on.

What is surprising to me is the wide range in estimates of power loss.


Fred Bloggs

unread,
Mar 21, 2004, 9:07:01 AM3/21/04
to

It is not power loss but energy loss. The battery supplies
Ebatt=Vbatt*Iled*Tdis joules and the LED dissipates Eled=Vf*Iled*Tdis
joules, so that (Vbatt-Vf)*Iled*Tdis is wasted, or as a percentage, only
Eled/Ebatt=Vf/Vbatt of the expended energy has been used to light the
LED at any one time- this would be 3.3/7.2=46% for the white LED and
NiMH battery you're using.

John Woodgate

unread,
Mar 21, 2004, 11:20:33 AM3/21/04
to
I read in sci.electronics.design that jtaylor <jta...@hfx.deletethis.an
dara.com> wrote (in <E%g7c.8291$kc2.1...@nnrp1.uunet.ca>) about 'power

loss in 7805 used as current regulator', on Sun, 21 Mar 2004:

>What is surprising to me is the wide range in estimates of power loss.

Well, the 20 mA looked to be wrong, unless some assumptions were made.
People made different assumptions. Then the type of LED wasn't
specified, so people assumed different LED voltages. Then the regulator
tail current was added in, or not. About the only thing we can be sure
of is that it's less than 420 mW (100 mA through a short-circuited LED +
5 mA tail current)!

Then again, the OP didn't need to know it!

Fred Bloggs

unread,
Mar 21, 2004, 11:52:44 AM3/21/04
to

John Woodgate wrote:
> I read in sci.electronics.design that jtaylor <jta...@hfx.deletethis.an
> dara.com> wrote (in <E%g7c.8291$kc2.1...@nnrp1.uunet.ca>) about 'power
> loss in 7805 used as current regulator', on Sun, 21 Mar 2004:
>
>
>>What is surprising to me is the wide range in estimates of power loss.
>
>
> Well, the 20 mA looked to be wrong, unless some assumptions were made.
> People made different assumptions. Then the type of LED wasn't
> specified, so people assumed different LED voltages. Then the regulator
> tail current was added in, or not. About the only thing we can be sure
> of is that it's less than 420 mW (100 mA through a short-circuited LED +
> 5 mA tail current)!
>
> Then again, the OP didn't need to know it!

LOL!!!

James Meyer

unread,
Mar 21, 2004, 2:01:33 PM3/21/04
to
On Sun, 21 Mar 2004 14:07:01 GMT, Fred Bloggs <nos...@nospam.com> posted this:


>It is not power loss but energy loss. The battery supplies
>Ebatt=Vbatt*Iled*Tdis joules and the LED dissipates Eled=Vf*Iled*Tdis
>joules, so that (Vbatt-Vf)*Iled*Tdis is wasted, or as a percentage, only
>Eled/Ebatt=Vf/Vbatt of the expended energy has been used to light the
>LED at any one time- this would be 3.3/7.2=46% for the white LED and
>NiMH battery you're using.

Since the regulator used as a current source in series with the LED as I
believe it is, ALL the LED current is delivered from the battery and there are
no other currents drawn from the battery.

It seems to me to be easiest to measure the LED current and use that to
determine the length of time the battery will supply that current by dividing
the battery amp-hours by the LED current without resorting to any other tedious
calculations involving voltage drops or joules of energy.

Jim

Fred Bloggs

unread,
Mar 21, 2004, 3:27:30 PM3/21/04
to

Maybe you can use required ON time and voltage to gauge the required
battery technology and package based on their energy density ratings.
It's moot point- OP is evidently here to ask pointless questions.

Spehro Pefhany

unread,
Mar 21, 2004, 5:00:27 PM3/21/04
to
On Sun, 21 Mar 2004 20:27:30 GMT, the renowned Fred Bloggs
<nos...@nospam.com> wrote:

>Maybe you can use required ON time and voltage to gauge the required
>battery technology and package based on their energy density ratings.
>It's moot point- OP is evidently here to ask pointless questions.

Hey, symbiosis.

Walter Harley

unread,
Mar 21, 2004, 5:48:04 PM3/21/04
to
"John Woodgate" <j...@jmwa.demon.contraspam.yuk> wrote in message
news:En3kPqCW...@jmwa.demon.co.uk...
> If the OP doesn't know how to run an LED from a linear regulator, how do
> you think he is going to cope with a far more complex switcher?

Well, at least he knew a current regulator from a voltage regulator, which
some of the respondents didn't seem to... but mainly, I was trying to give
him a bit of perspective on what the options were.

The Roman Black circuit is pretty darn simple - even someone as ignorant as
me can get it to work :-) And the one-chip solutions are simple too. At
this low power level, it's easy to get a simple switcher to work and be
reasonably reliable even with off-the-shelf components; the problem is
getting it to be efficient.


John Woodgate

unread,
Mar 21, 2004, 6:11:35 PM3/21/04
to
I read in sci.electronics.design that Walter Harley
<wal...@cafewalterNOSPAM.com> wrote (in <c3l634$5vh$0...@216.39.172.65>)

about 'power loss in 7805 used as current regulator', on Sun, 21 Mar
2004:
>"John Woodgate" <j...@jmwa.demon.contraspam.yuk> wrote in message
>news:En3kPqCW...@jmwa.demon.co.uk...
>> If the OP doesn't know how to run an LED from a linear regulator, how do
>> you think he is going to cope with a far more complex switcher?
>
>Well, at least he knew a current regulator from a voltage regulator, which
>some of the respondents didn't seem to...

That should have been in the message text, as well as, or instead of, in
the subject line.

> but mainly, I was trying to give
>him a bit of perspective on what the options were.
>
>The Roman Black circuit

I thought that was a font. (;-)

Spehro Pefhany

unread,
Mar 21, 2004, 6:18:57 PM3/21/04
to
On 21 Mar 2004 22:48:04 GMT, the renowned "Walter Harley"
<wal...@cafewalterNOSPAM.com> wrote:

>"John Woodgate" <j...@jmwa.demon.contraspam.yuk> wrote in message
>news:En3kPqCW...@jmwa.demon.co.uk...
>> If the OP doesn't know how to run an LED from a linear regulator, how do
>> you think he is going to cope with a far more complex switcher?
>
>Well, at least he knew a current regulator from a voltage regulator, which

>some of the respondents didn't seem to... <snip>

Well, the only thing that made sense with a 7805 and 100R was a
voltage regulator and dropping resistor, which effectively *is* a
current regulator for constant Vf (a reasonable approximation for
fixed If). It works if Vf for the LED is 3V, which is quite typical
for a blue or white LED. Nothing else really works, as Fred's analysis
pointed out so nicely. ;-) And the energy vs. power issue..

>The Roman Black circuit is pretty darn simple - even someone as ignorant as
>me can get it to work :-) And the one-chip solutions are simple too. At
>this low power level, it's easy to get a simple switcher to work and be
>reasonably reliable even with off-the-shelf components; the problem is
>getting it to be efficient.

Sure, and there are an amazing number of expensive purpose-built chips
for LED backlights that would work.

0 new messages