Previous in Forum: Circuit Design Assistance   Next in Forum: Experience iOS 8 on “iPhone 6” 4.7 Inch Screen
Close
Close
Close
29 comments
Rate Comments: Nested
Active Contributor

Join Date: May 2014
Posts: 14

Driving LEDs from Battery Pack

05/19/2014 5:21 AM

I have encountered an over-voltage problem when driving a chain of leds from a freshly charged battery pack, in that the initial voltage is too high, allowing the leds to draw too much current. I'm considering voltage regulation but have also seen a circuit for current regulation. What factors should I consider before deciding which to go for? Any 'gut' reactions?

Thanks,

jb

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
3
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Driving leds from battery pack.

05/19/2014 5:39 AM

I'd say go for current control. If one or more of the LEDs in your chain failed with a short and you were driving with a regulated voltage, you would potentially cook all the remaining LEDs. A current regulator would protect against this.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Good Answer (Score 3)
Guru
Engineering Fields - Optical Engineering - Member Engineering Fields - Engineering Physics - Member Engineering Fields - Systems Engineering - Member

Join Date: Apr 2010
Location: Trantor
Posts: 5363
Good Answers: 647
#2

Re: Driving leds from battery pack.

05/19/2014 7:58 AM

If you don't need to dim them, go with JohnDG's advice.

If you do need to dim them, find a pulse-width-modulator circuit that runs off your dc input voltage.

__________________
Whiskey, women -- and astrophysics. Because sometimes a problem can't be solved with just whiskey and women.
Register to Reply Score 1 for Good Answer
Guru

Join Date: Feb 2011
Posts: 7025
Good Answers: 207
#3

Re: Driving leds from battery pack.

05/19/2014 8:24 AM

id consider well placed resistors

Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#8
In reply to #3

Re: Driving leds from battery pack.

05/20/2014 3:57 AM

Resistors, thought about that, but then won't I lose out when the battery has been going awhile, i.e. reduced lighting time on the leds?

Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member Fans of Old Computers - Commodore 64 - New Member Popular Science - Evolution - New Member United States - Member - New Member

Join Date: Oct 2013
Location: Illinois, 7 county region (The 'blue dot' that drags the rest of the 'red state' around during presidential elections.)
Posts: 3683
Good Answers: 89
#21
In reply to #8

Re: Driving leds from battery pack.

05/20/2014 9:34 AM

The 'trick' here is to do a little math.

A) Find out the voltage drop of one LED when it is glowing the way you like, we'll call that V1.

B) Find out the current flow through the same LED when it is glowing the way you like, we'll call that A1.

C) Multiply this my the number of LEDs in the series, this is the total voltage drop of the chain, we'll call that V2.

D) Look at the voltage of your battery source, we'll call that Vs. (Voltage Source).

E) If Vs is less than V2, then you need very little current control, and a 1 Ohm resistor in series should suffice.

F) If Vs is greater than V2, subtract V2 from Vs, we'll call that V3.

G) Divide V3 by A1, the resulting number is the size of the resistor you need in Ohms.

H) Multiply V3 by A1, the resulting number is the total wattage the resistor will be dissipating as heat, make sure the resistor you select is as low a wattage as possible without going below this number.

Also, when choosing the resistor, select a 'carbon film' resister. These are the cheap, common resistors you find almost anywhere. When a carbon film resistor overheats, it 'burns out' like a fuse, thus protecting the LEDs from overvoltage.

I actually did this myself years ago when rewiring an old Christmas manger, replacing the old incandescent Christmas tree lights with LED lights, and had to control the current from the AC line to protect the bulbs.

__________________
( The opinions espressed in this post may not reflect the true opinions of the poster, and may not reflect commonly accepted versions of reality. ) (If you are wondering: yes, I DO hope to live to be as old as my jokes.)
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#22
In reply to #21

Re: Driving leds from battery pack.

05/20/2014 9:44 AM

As the OP stated, the LEDs are in parallel.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member Fans of Old Computers - Commodore 64 - New Member Popular Science - Evolution - New Member United States - Member - New Member

Join Date: Oct 2013
Location: Illinois, 7 county region (The 'blue dot' that drags the rest of the 'red state' around during presidential elections.)
Posts: 3683
Good Answers: 89
#23
In reply to #22

Re: Driving leds from battery pack.

05/20/2014 10:06 AM

Sorry, didn't scroll down to that before I posted.

Parallel LEDs, that's tricky, if one starts to go, it'll hog the current until it dies, then the rest will start getting 'overfed' from the current that should have gone through the blown one, leading to the next failure.

Unless you current-limit each LED individually, it's a real mess.

__________________
( The opinions espressed in this post may not reflect the true opinions of the poster, and may not reflect commonly accepted versions of reality. ) (If you are wondering: yes, I DO hope to live to be as old as my jokes.)
Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#26
In reply to #23

Re: Driving leds from battery pack.

05/27/2014 5:31 AM

Seems to work ok in the field though.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member Fans of Old Computers - Commodore 64 - New Member Popular Science - Evolution - New Member United States - Member - New Member

Join Date: Oct 2013
Location: Illinois, 7 county region (The 'blue dot' that drags the rest of the 'red state' around during presidential elections.)
Posts: 3683
Good Answers: 89
#28
In reply to #26

Re: Driving leds from battery pack.

05/28/2014 11:50 AM

What I've seen as 'in the field' examples are series strips of LEDs set in paralel, with each strip designed to drop barely more voltage than the supply is providing, and with a current limiting resistor an one end of each strip. When one strip does, it doesn't affect the other strips because their resistors limit the current and prevent 'overfeeding.'

If you're talking about things like seven-segment LEDs with one resistor on the common, remember that those are typically fed by TTL or CMOS control circuits, which are limited in the amount of current they can supply per pin, and the control circuit's outputs are isolated from each other, a lack of current sink on e one pin doesn't equate to more current on the other pins. The control circuit's limitations act as the current limiting for the display.

__________________
( The opinions espressed in this post may not reflect the true opinions of the poster, and may not reflect commonly accepted versions of reality. ) (If you are wondering: yes, I DO hope to live to be as old as my jokes.)
Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#29
In reply to #23

Re: Driving leds from battery pack.

07/04/2014 6:13 AM

Good point. Some of the installations are getting old, but leds are checked each spring and replaced as needs be. I shall set the current output to max out at 16x20 = 320mA.

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9911
Good Answers: 1141
#4

Re: Driving leds from battery pack.

05/19/2014 8:51 AM

LEDs are diodes. They don't conduct much until you reach the forward bias voltage (which varies, depending on color), at which point they conduct a lot. You need to control the current with a series resistance.

Register to Reply
2
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73
#5

Re: Driving LEDs from Battery Pack

05/19/2014 12:23 PM

Here is an elegant solution! Use a current limiting diode in series. These have been on the market for about a decade or more, but they are just what you want!

Plug in "current limiting diode" on your favorite search engine to find sellers.

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply Good Answer (Score 2)
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#7
In reply to #5

Re: Driving LEDs from Battery Pack

05/19/2014 9:53 PM

Yep. Here's one that looks to be just what the doctor ordered. (pdf)

Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#9
In reply to #7

Re: Driving LEDs from Battery Pack

05/20/2014 4:03 AM

Thanks.

_____________________________

(Sometimes Confucius, he say too damn much!)

Register to Reply Off Topic (Score 4)
2
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9911
Good Answers: 1141
#6

Re: Driving LEDs from Battery Pack

05/19/2014 9:23 PM

If you're interested in an efficient solution to maximize your battery life, you might consider pulse width modulating. Just as switching power supplies are more efficient than linear power supplies, you can avoid wasting energy caused by introducing a series voltage drop to your LEDs by switching the current on and off rather than limiting it.

Maybe this would be of some help:

http://www.brighthubengineering.com/diy-electronics-devices/119506-single-chip-pulse-width-modulation-controlled-white-led-driver-circuit-explained/

Register to Reply Good Answer (Score 2)
Active Contributor

Join Date: May 2014
Posts: 14
#10

Re: Driving LEDs from Battery Pack

05/20/2014 4:13 AM

Thanks for your help folks!

Going to set up a current limiter first off, as per picture.

Would like to know what the considerations are when chosing these transistors; hi/mid/lo Hfe, current rating etc. and approximate values of sense and Tr1 base-collector resistors. I'll be driving out 300mA at 3V6 max. Also, how am I calculating required volt drop across reference diode?

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#11
In reply to #10

Re: Driving LEDs from Battery Pack

05/20/2014 4:32 AM

I'd just bung in an LM317.

Saves a lot of messing about.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Score 1 for Good Answer
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#12

Re: Driving LEDs from Battery Pack

05/20/2014 5:14 AM

Hi jdrbrown,

The forward voltage for a typical 5 mm white LED (in reality a blue LED coated with a yellow phosphor) is around 3.6 V @ 20 mA, more or less. A string of three of these white LEDs in series brings the total to 10.8 V @ 20 mA.

Now let's say, for instance, that your freshly-charged battery pack produces 12.0 volts. Subtracting the forward voltage of your string from 12.0 volts gives you 1.2 volts. 1.2 volts of 'headroom' to work with before the battery voltage drops below the string voltage and things start to grow dim. If you use some kind series regulator things get even worse.

Thing about regulators is that they need a little headroom themselves. This headroom is called the regulator's 'dropout voltage.' Once the difference between the regulator's input and output voltages falls below this voltage, the regulator 'drops out' of regulation - it can no longer do its job - hence the name.

Dropout voltages vary, some as low as 0.1 V to as much as 1.2 V for old-style, three-terminal regulators, and sometimes more. Whatever the dropout voltage, it takes away from the available headroom; here 12.0 - 10.8 = 1.2 volts. If the dropout is 0.3 V, for example - pretty typical - you have only 1.2 - 0.3 = 0.9 volts to work with before regulators stop regulating and your LEDs fade away.

The bottom line to all this is things stop working even while there is still plenty of juice left in your battery pack. Basically your circuit is skimming the cream off the top, leaving the milk behind with nobody to drink it. All that battery capacity (and weight?) for a mere 0.9 volts of headroom? See anything wrong with this picture?

What you really want is a circuit that supplies your LEDs with the right amount of current until that battery pack is nearly bone bluddy dry. Fortunately a lot of very clever people have tackled this problem before, and with considerable success.

One of the cleverest solutions (IMO) is called a Joule Thief and, best of all, it is simplicity itself. Basically it's a lot like the flyback circuit in old-style TVs, only with much lower output voltage.

The original Joule Thief could run a 3.6 V, 20 mA white LED from a single, 1.5V AA battery until the battery had less than 0.3 volts left on the gauge. Further improvements using JFETs dropped that limit to 0.1 V before the LED started to grow dim. Since its invention (80s, I believe) so many variations on this theme have appeared that it would be impossible to list them all, but this guy has come pretty close. You might want to take a look at his site.

Register to Reply Score 2 for Off Topic
Active Contributor

Join Date: May 2014
Posts: 14
#13
In reply to #12

Re: Driving LEDs from Battery Pack

05/20/2014 6:04 AM

My leds are in parallel. Shoulda mentioned that.

I've looked at current regulator diodes, both down in the 4mA range - can I use one to control a transistor's collector current to facilitate regulation at higher currents, e.g. 300mA through a FET?

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#16
In reply to #13

Re: Driving LEDs from Battery Pack

05/20/2014 6:15 AM

Very difficult to control them with one device/circuit if they're in parallel. You're back to the case where failure of one or more LEDs (to open circuit) would mean driving all the current into the remaining ones (possibly cooking them). Also, unless they're well-matched, you'll probably get uneven fading as the battery volts drop.

If you can justify the cost, you'd be better to have one regulator per LED.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Power-User

Join Date: Dec 2009
Location: Tampa Florida USA
Posts: 180
Good Answers: 3
#19
In reply to #16

Re: Driving LEDs from Battery Pack

05/20/2014 6:59 AM

For parallel, I would consider voltage regulation. Give them all 3 V or whatever. They all get no more than that no matter how many are on the circuit.

Register to Reply
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#20
In reply to #16

Re: Driving LEDs from Battery Pack

05/20/2014 7:10 AM

Hi JohnDG,

In summary, as you've pointed out, for series-connected LEDs driven by a constant-voltage source, a shorted LED is bad news for the rest. Conversely, for parallel-connected LEDs driven by a constant-current source, an open LED is bad news.

For LEDs the most common failure mode by far is an open circuit - that little bond-wire fries OR even more common, there's a bad solder joint. I don't know how many LED traffic signals I've seen where strings of LEDs in the light were jittering from an iffy solder joint somewhere or were dead altogether. Seems to me surface-mount LEDs with a molded optics cover over the circuit board would be far more reliable in that application.

Unless the OP's setup is somehow 'mission-critical' in some sense (emergency lighting or some such), he can probably afford blown LEDs. These days they're so cheap that protecting the rest of the circuit from an LED failure might be worthwhile. Certainly in Joule Thief-type circuits, as they depend on a free-wheeling inductor for the voltage boost. If there's suddenly no load there to keep the current going, that voltage is going to rise until something fries. The protection in this case trivial: put a zener across the LED (string, as applicable) rated few volts higher than the expected net forward voltage. If an LED opens then the zener takes over and shunts the current.

Register to Reply Off Topic (Score 4)
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#17
In reply to #13

Re: Driving LEDs from Battery Pack

05/20/2014 6:17 AM

A voltage-reference would be more suitable as FETs are 'voltage'-type devices - the current through the FET is controlled by the voltage on the gate, transconductance-style. Even if you use the sort sort of regulator you're considering, you're still going be lugging around a lot of unused battery capacity. I might also mention that, no matter how clever they are, linear regulators are basically glorified variable resistors. They dissipate power as function of the difference between their input and output voltage - even when they're acting as current regulators and, as everyone knows, resistors dissipate energy that could be used in better ways, such as lighting LEDs.

I strongly recommend you go take a look at that site. There are lots of ideas about ways to do things that you may not have considered. One thing is that most Joule-Thief circuits are happier with a lower input voltage and there are plenty of circuits on that site which accept 1.5 V and can drive multiple LEDs. Others can source up to a 1000 mA for those Luxeon-type high power LEDs. I don't know what sort of battery pack you've got, but you could certainly connect batteries in parallel as a sort of super-AA battery to power many of these circuits for a long time. Go take a look.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#14
In reply to #12

Re: Driving LEDs from Battery Pack

05/20/2014 6:07 AM

Nice.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#15
In reply to #12

Re: Driving LEDs from Battery Pack

05/20/2014 6:07 AM

Joule Thief sounds good but potentially risky with NiMH rechargeables?

Register to Reply
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#18
In reply to #15

Re: Driving LEDs from Battery Pack

05/20/2014 6:39 AM

Why would the circuit care about the battery chemistry? All it sees is a black box that supplies its power.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#24
In reply to #18

Re: Driving LEDs from Battery Pack

05/20/2014 10:25 AM

Think OP's worried about damage from deep discharge.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Score 1 for Good Answer
Guru

Join Date: Apr 2014
Posts: 1869
Good Answers: 67
#25
In reply to #24

Re: Driving LEDs from Battery Pack

05/20/2014 7:23 PM

Ah. That would definitely be a concern with a Joule-Thief-type circuit. I haven't used NiMH batteries in situations where they would be deep-discharged, and so I've never run into this problem.

[rant]

In my own defense the OP could have voiced this particular concern directly instead of alluding to it by means of battery chemistry. We also found out rather late in the game that his LEDs are in parallel, not series. That makes a pretty big difference in how the problem is tackled. The OP mentioned NiMH but didn't actually say that his battery pack uses NiMH batteries, nor did he state its voltage. For my part it's irksome to get the facts piecemeal and have to divine the rest. Hey, if I'd wanted to pull teeth, I'd have become a dentist!

@OP: Put all the cards on the table, please? All of them?

[/rant]

Register to Reply
Active Contributor

Join Date: May 2014
Posts: 14
#27
In reply to #25

Re: Driving LEDs from Battery Pack

05/27/2014 5:44 AM

My initial post was aimed to be concise. Can I help it if people make assumptions? Perhaps if I had said 'led ladder'?

So, 4x1.2V NiMH battery pack (charged from PV-array) driving 16x 20mA/3.2V leds in parallel via MOSFET on/off control (using PV-array as detector via comparator to indicate night-time).

Considerations are as follows;

I) Preventing over-voltage/over-current in first half-hour or so of turn-on.

II) Preventing battery wastage and potential led damage at lower voltages.

III) Getting more out of the batteries via the above, i.e. longer lighting time / quicker recharge.

I'm also looking at similar considerations at the charging end, i.e. not over-charging battery pack.

Thanks all for your help, time to start emulating and playing!

Register to Reply
Register to Reply 29 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

adreasler (3); europium mkII (6); Fredski (1); jdrbrown (8); JohnDG (6); NotUrOrdinaryJoe (1); Rixter (2); sharpstick (1); Usbport (1)

Previous in Forum: Circuit Design Assistance   Next in Forum: Experience iOS 8 on “iPhone 6” 4.7 Inch Screen

Advertisement