Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 30th June 2009, 04:44 AM   #1
Default Complete newb, trying to understand Lm317 w/resistor! :-(

Hi everyone, thanks for taking some time and helping me out

Im trying to make a new trunk light for my car. I read using 1W LED's with resistors is A) not very smart because of a vehicles voltage fluctuations, and B) the resistors for 1W LED's would create alot of heat and wasted energy.

So I have spent a couple hours reading on how to wire an LM317T with 1, 2 or more 1W LED's off a car system.

I understand you have to wire a resistor somewhere between pins to adjust current regulation. What I dont understand is 1) where to wire this and b) how a resistor to adjust CURRENT output, will somehow also get the lm317 to output 3.3V from 12-14v?

Lets say I used a 3.9ohm resistor, to make 321ma output ( which is close to the 300 required for my 1W LED's ) however although it is now putting out 321ma, at what voltage and how does it magically match the LED's requirement?

And of course one more thing, how would I wire 3 of these onto 1 LM317 so I do not need 3 voltage regulators and heatsinks?

Thanks very much in advance your really helping me! I want to understand.
wy2sl0 is offline  
Old 30th June 2009, 07:37 AM   #2
Default

Quote:
Originally Posted by wy2sl0 View Post
Hi everyone, thanks for taking some time and helping me out

Im trying to make a new trunk light for my car. I read using 1W LED's with resistors is A) not very smart because of a vehicles voltage fluctuations, and B) the resistors for 1W LED's would create alot of heat and wasted energy.

So I have spent a couple hours reading on how to wire an LM317T with 1, 2 or more 1W LED's off a car system.

I understand you have to wire a resistor somewhere between pins to adjust current regulation. What I dont understand is 1) where to wire this and b) how a resistor to adjust CURRENT output, will somehow also get the lm317 to output 3.3V from 12-14v?

Lets say I used a 3.9ohm resistor, to make 321ma output ( which is close to the 300 required for my 1W LED's ) however although it is now putting out 321ma, at what voltage and how does it magically match the LED's requirement?

And of course one more thing, how would I wire 3 of these onto 1 LM317 so I do not need 3 voltage regulators and heatsinks?

Thanks very much in advance your really helping me! I want to understand.
The circuit below is right off the LM317 data sheet Basically, the resistor shown programs the current. If you want exactly 0.3A, the resistor should be 1.25/0.3=4.166Ω. A 3.9Ω resistor would make the output current 1.25/3.9=0.32A. If you wire three of your 3.3V 300ma LEDs in series with the cathode pointing to ground, the drop across all three will be 9.9V. 1.25V is lost across the resistor, and ~1.7V is required for the regulator to work (Drop Out Voltage), meaning that it will regulate properly if the input voltage is 9.9+1.25+1.7=12.85V or higher, which is the case if your engine is running (alternator voltage is set to 14.2-14.6V) but not if the engine is stopped (resting battery voltage is 12.65V).

As a practical matter, it will work with the engine stopped, but the Leds will be a little dimmer.

The worst-case power dissipation in the LM317 with the engine running will be [14.6-(1.25+9.9)]*0.3 = 1W, which if you use the TO220 package you can get by without heatsinking it. (Not true if you only use one or two leds).
Attached Thumbnails
Complete newb, trying to understand Lm317 w/resistor! :-(-lm317ireg.jpg  

Last edited by MikeMl; 30th June 2009 at 07:37 AM.
MikeMl is offline  
Old 30th June 2009, 12:26 PM   #3
Default

Thank you very much for your help.

I have a few questions though

First thing is, the regulator works but check what the voltage drop is and then regulates that exactly? I ask this because I always thought an LED would take more voltage if given more?

Second thing is, what is C1 0.1uF in that diagram/also voltage dropout pointed to the ground? What does that mean sorry for my ignorance

Third is, the resistor MUST be mounted in one way only, because polarity matters correct?

Finally, it says LOAD after the resistor. For the negative of the LED's and the positives, where do I connect? I ask this because these diagrams only show one line going to the Load of the circuit. Thank you!

P.S Sorry one more thing! On digikey they have this

Last edited by wy2sl0; 30th June 2009 at 12:51 PM. Reason: -----
wy2sl0 is offline  
Old 30th June 2009, 12:46 PM   #4
Default

The C1 thingy is a capacitor and is needed by the regulator for it to work correctly..Dont omit it. It can go in any way round as long as it is not an electrolytic...polyester or similar is ok

The resistor is non polarised..it can go in any way round...

The load is your led(s)...

Connect the led -ve to ground and the +ve to the junction of the resistor and Adj..
__________________
Eccentric millionaire financed by 'er indoors

Last edited by Chippie; 30th June 2009 at 12:48 PM.
Chippie is online now  
Old 30th June 2009, 12:55 PM   #5
Default

Quote:
Originally Posted by Chippie View Post
The C1 thingy is a capacitor and is needed by the regulator for it to work correctly..Dont omit it. It can go in any way round as long as it is not an electrolytic...polyester or similar is ok

The resistor is non polarised..it can go in any way round...

The load is your led(s)...

Connect the led -ve to ground and the +ve to the junction of the resistor and Adj..
Ok so I am thinking best bet is a 4.3ohm 1W resistor, to run each at 290ma, just to be safe ( 10ma difference in brightness probably nil ).

Some of the LED's though, say forward voltage of 3.2-3.6v. How do I set the voltage output of this regulator, and what to?

Also the C1 comes with an LM317? Or what do I need for it.

HS104-2-ND HEATSINK TO-220 PWR CLR 1.45"10W
4.3W-1-ND RES 4.3 OHM 1W 5% METAL OXIDE
LM317TGOS-ND

These are the parts I have ready to order, does this seem right?

Last edited by wy2sl0; 30th June 2009 at 12:56 PM. Reason: -----
wy2sl0 is offline  
Old 30th June 2009, 01:08 PM   #6
Default

You need to buy C1....Where ever you are buying your parts from, look for a 0.1mfd capacitor(the working voltage needs to be around 25v or more)..

Go for the 4.3 Ohm resistor, everything else looks good...

You dont need to worry about the voltage, see the post above..number 2 by MikeMI...This is a current regulator you are building...Re-reading Mike's post will make this come clear..
__________________
Eccentric millionaire financed by 'er indoors
Chippie is online now  
Old 30th June 2009, 01:29 PM   #7
Default

Quote:
Originally Posted by Chippie View Post
You need to buy C1....Where ever you are buying your parts from, look for a 0.1mfd capacitor(the working voltage needs to be around 25v or more)..

Go for the 4.3 Ohm resistor, everything else looks good...

You dont need to worry about the voltage, see the post above..number 2 by MikeMI...This is a current regulator you are building...Re-reading Mike's post will make this come clear..
Ok, but what exactly does this capacitor do?
wy2sl0 is offline  
Old 30th June 2009, 01:42 PM   #8
Default

It is a decoupling capacitor on the input to the regulator...It 'shorts out' any ac interference on the supply line put simplisticly...
__________________
Eccentric millionaire financed by 'er indoors
Chippie is online now  
Old 30th June 2009, 01:52 PM   #9
Default

Quote:
Originally Posted by Chippie View Post
It is a decoupling capacitor on the input to the regulator...It 'shorts out' any ac interference on the supply line put simplisticly...
Thank you very much. Do you tihnk with the heatsink im getting that I listed, I could run single 1W LED's off this setup? or would there still be too much heat dissipated?
wy2sl0 is offline  
Old 30th June 2009, 01:58 PM   #10
Default

I think for what cost is involved, its not worth leaving the heatsink off...If there's a chance that the reg may overheat, then I'd put one on...Saves frying the reg and mebbe the led(s) too....

5 cents provided...

More than the usual 2 cents due to the current economic climate
__________________
Eccentric millionaire financed by 'er indoors
Chippie is online now  
Old 30th June 2009, 02:20 PM   #11
Default

The regulator does not fry. It simply turns itself off when it gets too hot. It has "thermal shutdown" to protect itself.

But don't let it heat then cool then turn on and heat again then turn off and cool again too many times because the thermal stress might break it.
__________________
Uncle $crooge
audioguru is online now  
Old 30th June 2009, 02:30 PM   #12
Default

ok...fry perhaps isnt the appropriate techie term....destroyed by thermal cycling
__________________
Eccentric millionaire financed by 'er indoors
Chippie is online now  
Old 30th June 2009, 02:42 PM   #13
Default

Oh I didnt mean running without the heatsink! I meant ( since I thought it is harder on the regulator to run 1 than 3, because voltage drop must be larger ) with that heatsink can I run setups of 1 also? Or is it only good for 2-3
wy2sl0 is offline  
Old 30th June 2009, 03:04 PM   #14
Default

When the voltage drop of the regulator is larger then its heat output is also larger.
With a pretty big heatsink and free air around it an LM317 can dissipate about 18W.
__________________
Uncle $crooge
audioguru is online now  
Old 30th June 2009, 03:21 PM   #15
Default

Quote:
Originally Posted by audioguru View Post
When the voltage drop of the regulator is larger then its heat output is also larger.
With a pretty big heatsink and free air around it an LM317 can dissipate about 18W.
Ok thats what I thought.

The largest drop from just 1 LED on a 12v system, lets say at 14.5v (max) would be about 4W of heat, so with that heatsink im clearly fine.

Saying that however, if I did it this way instead

14.5v Source -----> 39 ohm resistor (4 watt capable) ------> 3.3v@320ma

Would this resistor fry in a car out in the open? Or would it work?

Also, how would I connect my LED to a heatsink? I.E the metal on my car chassis/body? Just home depot silicone?

Last edited by wy2sl0; 30th June 2009 at 03:54 PM.
wy2sl0 is offline  
Reply

Tags
complete, lm317, newb, understand, w or resistor

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Newb Resistor questions Darkpriestt General Electronics Chat 4 14th April 2009 07:43 PM
1.6 ohm resistor for LM317? RogerTango General Electronics Chat 22 22nd December 2008 02:00 AM
Newb Needs Advice! Carnivore Micro Controllers 3 6th January 2007 07:33 AM
Digital Newb windozeuser General Electronics Chat 2 16th December 2003 02:33 AM
Complete Chart for Resistor, Capacitor and Inductor shermaine General Electronics Chat 9 20th July 2003 06:48 PM



All times are GMT. The time now is 09:35 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker