General Electrical & Lighting Related Topics Ask here for electrical, wiring, and lighting info for your rig that could apply to all years

Footwell LED project complete

Thread Tools
 
Search this Thread
 
Old 01-18-2007, 01:53 PM
  #41  
Registered User
Thread Starter
iTrader: (1)
 
paddlenbike's Avatar
 
Join Date: Jul 2002
Location: Northern CA
Posts: 1,190
Likes: 0
Received 1 Like on 1 Post
Originally Posted by jsnby
what's the advantage of using the LM317T versus using a voltage regulator like an LM7812(12V 1.5A) and the proper current limiting resistor?
Any form of regulation is better than no regulation at all. What some OEM manufacturers do is use a voltage regulator to set the voltage at 9 volts, which gives plenty of overhead for powering the LM7812, even when the system voltage is down to 11.7V. Current-limiting resistors use up the excess. The LM317T can be setup as both a voltage regulator or a current regulator.

If you look at the datasheets for the higher powered LEDs, including Superflux and the larger Luxeon style LEDs, the manufacturers almost always recommend using a current limiting device. Consistent brightness is acheived with current, not voltage since each LED will have a slightly different brightness at a given forward voltage. It is also for thermal management--the LED forward voltage varies with the current rating and will change with temperature. A typical 20-mA white LED has a forward voltage that varies between 2.6 and 4.2 V over the entire operating temperature range. Constant current also does a better job controlling LED color shift.
Old 01-18-2007, 04:04 PM
  #42  
Contributing Member
 
jsnby's Avatar
 
Join Date: Nov 2005
Location: Glendale, CA
Posts: 486
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by jsnby
what's the advantage of using the LM317T versus using a voltage regulator like an LM7812(12V 1.5A) and the proper current limiting resistor? For example, using the specs above for the LED's, you have:
Vf = 3.3V
If = 62mA

So if I was using a LM7812 and two LED's in series,
(12V -3.3V -3.3V)/(.062A) = 87 Ohm resistor
I think I get it now...this schematic helped me understand. He was building a battery charger, but the principle is the same:
Originally Posted by Circuit Designer
The circuit (lower right) illustrates using a LM317 variable voltage regulator as a constant current source. The voltage between the adjustment terminal and the output terminal is always 1.25 volts, so by connecting the adjustment terminal to the load and placing a resistor (R) between the load and the output terminal, a constant current of 1.25/R is established. Thus we need a 12 ohm resistor (R) to get 100mA of charge current and a 1.2 ohm, 2 watt resistor for 1 amp of current. A diode is used in series with the input to prevent the batteries from applying a reverse voltage to the regulator if the power is turned off while the batteries are still connected. It's probably a good idea to remove the batteries before turning off the power.
So, if what I'm thinking is correct, if instead you used 3 of the LED's mentioned above instead of two, you could expect the output voltage measured at the adjustment terminal to increase by Vf but the current would remain constant at 62mA.
Old 01-18-2007, 04:47 PM
  #43  
Registered User
Thread Starter
iTrader: (1)
 
paddlenbike's Avatar
 
Join Date: Jul 2002
Location: Northern CA
Posts: 1,190
Likes: 0
Received 1 Like on 1 Post
Originally Posted by jsnby
So, if what I'm thinking is correct, if instead you used 3 of the LED's mentioned above instead of two, you could expect the output voltage measured at the adjustment terminal to increase by Vf but the current would remain constant at 62mA.
Exactly. You could add as many LEDs as you have voltage to supply and the current would stay at 62mA. With a fV of 3.3V each, you can only run 3 LEDs max and still have enough overhead to run the LM317, which I understand requires somewhere between 1.25V and 3V...although I think it's closer to 1.25V.
3.3 + 3.3 + 3.3 + 1.5V = 11.4 volts, and I have seen my battery at 11.8V with the engine off.

Anyways, yes, you've got the right idea.
Old 01-18-2007, 11:28 PM
  #44  
Registered User
 
SLOMatt's Avatar
 
Join Date: Oct 2005
Location: Oakland, CA
Posts: 26
Likes: 0
Received 0 Likes on 0 Posts
The 317 has a dropout voltage of 3v between Vo and Vi, so coupled with the 1.25v across Rg you are talking about 4.5v of voltage required across the current source. There are other voltage regulators with lower dropouts, but since our input voltage ranges from ~10-14v they still don't quite allow you to run 3 leds per chain.

This is partyly what leads to the dismal efficiency of this circuit (~50%), but since it only draws an amp or two it's not a big deal.

- Matt
Old 01-19-2007, 02:03 PM
  #45  
Registered User
Thread Starter
iTrader: (1)
 
paddlenbike's Avatar
 
Join Date: Jul 2002
Location: Northern CA
Posts: 1,190
Likes: 0
Received 1 Like on 1 Post
Originally Posted by SLOMatt
The 317 has a dropout voltage of 3v between Vo and Vi, so coupled with the 1.25v across Rg you are talking about 4.5v of voltage required across the current source.
- Matt

I am wondering if this varies with voltage. With no resistor on Vadj and a 9 volt battery connected to Vin, I measured 8.78V at Vin and 7.51V at Vout, almost exactly 1.25V.
Old 01-21-2007, 09:50 AM
  #46  
Registered User
 
SLOMatt's Avatar
 
Join Date: Oct 2005
Location: Oakland, CA
Posts: 26
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by paddlenbike
I am wondering if this varies with voltage. With no resistor on Vadj and a 9 volt battery connected to Vin, I measured 8.78V at Vin and 7.51V at Vout, almost exactly 1.25V.
There is a graph of dropout voltage vs. temperature for various load currents in the datasheets. With Iout=20mA and certain temps a 1.25v dropout is possible.

From the graph it looks like at 50C and .35A the dropout is roughly 1.75. The 3v dropout is their maximum or worse case rating.

http://www.national.com/pf/LM/LM317.html

The LM1086 has a 1.3v rated dropout which might be interesting, but 3 Luxeons in series still require a forward voltage of about 10.5v, so won't work if we assume a minimum 11v power source, bummer.

- Matt
Old 01-22-2007, 12:04 AM
  #47  
Contributing Member
 
jsnby's Avatar
 
Join Date: Nov 2005
Location: Glendale, CA
Posts: 486
Likes: 0
Received 0 Likes on 0 Posts
What if you wanted to run 4 LED's off one LM317T? could you do it like the the picture below but by changing the value of the resistor R to:

1.25/R = 2 * .062A

R=10 ohms

Old 01-22-2007, 06:44 AM
  #48  
Registered User
Thread Starter
iTrader: (1)
 
paddlenbike's Avatar
 
Join Date: Jul 2002
Location: Northern CA
Posts: 1,190
Likes: 0
Received 1 Like on 1 Post
No, you had it right a couple of posts up. A 20 ohm resistor will keep the circuit at 62 mA as long as you have enough voltage to drive the LEDs. You won't be able to four Superflux LEDs at 3.3V a peice because they would pull 13.2 volts (3.3 x 4) before you figure in the voltage drop of the LM317T itself.
Old 01-22-2007, 07:46 AM
  #49  
Contributing Member
 
jsnby's Avatar
 
Join Date: Nov 2005
Location: Glendale, CA
Posts: 486
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by paddlenbike
No, you had it right a couple of posts up. A 20 ohm resistor will keep the circuit at 62 mA as long as you have enough voltage to drive the LEDs. You won't be able to four Superflux LEDs at 3.3V a peice because they would pull 13.2 volts (3.3 x 4) before you figure in the voltage drop of the LM317T itself.
But in the circuit I posted, you have 2 LED's in series, then in parallel. Since the sets of 2 led's are in parallel, and if I wanted 62mA through each, I would want 124mA total, which would require a 10 ohm resistor, correct? Since the voltage drop across one set of 2 led's is only 3.3x2, you're still ok.
Old 01-22-2007, 09:38 AM
  #50  
Registered User
Thread Starter
iTrader: (1)
 
paddlenbike's Avatar
 
Join Date: Jul 2002
Location: Northern CA
Posts: 1,190
Likes: 0
Received 1 Like on 1 Post
Sorry, the diagram you posted did not show up at the time I responded. With 2 arrays, yes, a 10 ohm resistor will give you an output current of around 124 mA, divided into 2 arrays = 62 mA per array.

It is not recommended to use series-parallel arrays behind a constant-current source. This is taken straight from the data sheet:
"When controlling multiple LEDs from a single constant current source, the LEDs should be connected in series to ensure the current in each LED is identical. If LEDs are connected in parallel the varation in Vf will again lead to different currents and therefore different brightness in each branch." In addition, if one LED burns out, the full 124 mA will go to the other array and all of the LEDs will eventually fail. This is why I used one LM317 per array, and at 85 cents a piece, it seemed worthwhile.

I will refer you here for a full explanation.

Ken
Old 01-22-2007, 09:38 AM
  #51  
Contributing Member
 
aviator's Avatar
 
Join Date: Mar 2003
Location: COTKU,Ontario,Canada
Posts: 11,334
Likes: 0
Received 0 Likes on 0 Posts
Cool idea something else to add to the to do list...
Old 02-03-2010, 11:22 AM
  #52  
Registered User
 
VA4Runner757's Avatar
 
Join Date: Feb 2010
Location: Virginia Beach, Virginia
Posts: 32
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up That is so dope

I've been wanting to put lighting in the foot wells for awhile now but don't really know how i'm going to wire everything up. This looks really good and definitely bright!
Old 02-03-2010, 11:42 AM
  #53  
Registered User
 
xskydivingdudex's Avatar
 
Join Date: Oct 2007
Location: San Antonio, TX
Posts: 289
Likes: 0
Received 0 Likes on 0 Posts
if ur not sure how to work with leds that u have to solder urself, get some led bars or get some cathode light bars (not as efficient but work) and wire them up to the dome light. pretty simple if u have the soldering part done for ya...
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
jasonty
Pre 84 Trucks (Build-Up Section)
41
12-23-2018 01:00 PM
4.34runner88
86-95 Trucks & 4Runners
15
08-11-2018 10:44 AM
Shoua
General Electrical & Lighting Related Topics
13
05-22-2016 05:19 AM
Shaun Crystal Gomban
Product Reviews
0
08-02-2015 08:00 PM
Esibnitsud
86-95 Trucks & 4Runners
11
07-30-2015 08:21 PM



Quick Reply: Footwell LED project complete



All times are GMT -8. The time now is 09:37 PM.