to light an LED with a 12V, what resistor value we need? - Page 1
Forum section: electronics / beginners

author: Azhar
author_rank: Regular Contributor
timestamp: June 22, 2013, 09:26:41 am
content: What is the ideal value for the current limiting resistor connected in series with an LED in a circuit runs on 12v?And what value of a resistor we need to light the LED with the following voltages? 220V, 5V and 24V?Thanks in advance!

author: h1386343
author_rank: Regular Contributor
timestamp: June 22, 2013, 09:42:57 am
content: Red 30mA 1.7VBright red 30mA 2.0VYellow 30mA 2.1VGreen 25mA 2.2VBlue 30mA 4.5VRed 30mA 1.85VRed 30mA 1.7VR = (VS - VL) / IVS = supply voltageVL = LED voltageI = LED current

author: mariush
author_rank: Super Contributor
timestamp: June 22, 2013, 10:55:42 am
content: LEDs have two properties that you care about:1. forward voltage drop - how much voltage has to go across the led to light up2. maximum current - how much current the LED can handle.The forward voltage drop varies depending on the chemicals/materials used inside the LED but typically, they're the values h1386343 listed in the post above (Except maybe blue which seems a bit too much, should be about 3-3.3v imho). If the LED doesn't get this much voltage, it may not light up.The maximum current is exactly that, the maximum the LED can tolerate. If you give it more current than the value the datasheet says the LED can handle, the LED may destroy itself or it may become so bright the color changes (for example red becomes orange).Even though a datasheet may say the LED supports up to - for example - 20 mA, it doesn't mean you should configure the circuit to give it 20mA. 20 mA for that LED may be super bright. You might find 10mA is easier on the eyes and bright enough for your needs.You have the simple formula:Voltage = Current x ResistanceVoltage is the voltage you supply to the circuit, from which you take out the forward voltage of the LED.Current is how much current you want to allow through the LED in Amperes : 1A = 1000 mA so 10 mA = 0.01A , 100mA = 0.1A etcSo if your input voltage is 5v and you want to use a LED with a forward voltage of 2.2v at a maximum of 10 mA, then your formula becomes :5v - 2.2v = 0.01 x Rso R becomes (5-2.2) / 0.01 = 280 ohms.This 280 ohms is not a standard value, so you can use 270 ohms or 300 ohms, which are easy to find. A lower resistor value means a bit more current is allowed through led, a higher value means less current is allowed.If you want to chain several leds, you just take out the forward voltages from the input voltage. With several leds however, the current remains the same, so for example if you have 5 leds you want to use 10mA each, you need to use 50mA in your formula.ps. You might also be interested in knowing how big of a resistor you need to use.The power dissipated in a resistor by limiting the current is determined with the formula P = I x I x RSo if we go with the example above where we go with a 270 ohm resistor and 10mA goes through it, then the power will be 0.01 x 0.01 x 270 = 0.027 watts , which means a 0.125w resistor (1/8w) is more than enough (for this.

author: digsys
author_rank: Unknown
timestamp: June 22, 2013, 11:55:50 am
content: Quote from: AzharI always use higher efficiency / lower powers leds, ~100-200mcd. They really don't cost much more and you only need 1-2mA to drive them.Either way, using the suggested formulas -5V : 5 - 1.2V (Led drop) = 3.8V (across the resistor) // Use 1K8 ~ 2mA (high effic) or 390R ~ 10mA (std-ish)24V : 24 -1.2 = 22.8V // Use ~ 10K (high effic) or 2K2 (std-ish)220V : Now we have a PROBLEM Houston !! Is that 240VAC?? EITHER WAY so, this is now a dangerous area, and you'll need a lotmore protection / safety components, especially if the Led protrudes from a front panel.Please be more specific with the 220V, so we can advise better.

author: Neilm
author_rank: Super Contributor
timestamp: June 22, 2013, 02:49:26 pm
content: Quote from: mariush on June 22, 2013, 10:55:42 amIf chaining several in series, remember that there is a tolerance on the forward voltage that can be quite variable. if you are not careful when selecting the number of LEDs vs the voltage you could easily find that you will get some LEDs not lighting.If using a LED with an AC supply, you must have a diode to take the reverse voltage - an LED will not take it. If you are not sure when messing with mains - DON'T.Neil

author: Azhar
author_rank: Regular Contributor
timestamp: June 23, 2013, 02:21:53 pm
content: Thank you all! this was helpful!

author: IanB
author_rank: Super Contributor
timestamp: June 23, 2013, 03:08:30 pm
content: Quote from: mariush on June 22, 2013, 10:55:42 amSurely you made a typo here? Since in a series circuit the current remains the same, you need to use 10 mA in the formula, however you need to adjust the total Vf as Vf(tot) = 5 x Vf(led).

author: mariush
author_rank: Super Contributor
timestamp: June 23, 2013, 03:15:27 pm
content: Yeah, you're right... i mixed series with parallel in my head ... was planning on writing about both in that paragraph.Soin series current remains the same ... you have 10mA but you have to take out n x forward voltage from input voltagein parallel, forward voltage remains the same ... you have n x 10mA but you only take out 1x forward voltage from input voltage (though have some tolerance, some leds may be better than others)Apologies if I confused someone.