Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A Select resistor for a diode

What the "appropriate" value of R1 is depends on what you are trying to achieve, which you haven't told us. Will this device be used in bright light, like outdoors, and the LED therefore needs to ...

posted 3y ago by Olin Lathrop‭  ·  edited 3y ago by Olin Lathrop‭

Answer
#2: Post edited by user avatar Olin Lathrop‭ · 2021-09-02T13:11:23Z (about 3 years ago)
  • What the "appropriate" value of R1 is depends on what you are trying to achieve, which you haven't told us. Will this device be used in bright light, like outdoors, and the LED therefore needs to be as bright as possible? Is it an illumination source? Is it just an indicator, and it only needs to be bright enough to be obviously on under typical office illumination? Is it battery powered, and power conservation is a high priority? Specifications like this are important.
  • In any case, it would be good to know what the minimum allowable R1 is, even if you then derate heavily from there. To do that, we need to know three things:<ul>
  • <li>What the maximum allowed continuous current thru the LED is.
  • <li>What the minimum voltage drop of the LED is a this current.
  • <li>What the maximum power supply voltage can be.
  • </ul>
  • In other words, we want to calculate the minimum resistance that keeps the LED operating within spec under the combination of worst case conditions.
  • This first thing we do is look at the LED datasheet. Unfortunately, as is all too common, particularly with far-east manufacturers, the datasheet doesn't actually tell us everything we want to know. There are two tables with parameters:
  • <img src="https://electrical.codidact.com/uploads/T21uB5VThScnkDYMu7wtcsXj">
  • and
  • <img src="https://electrical.codidact.com/uploads/LM4aTFTnqmDBB2TEmWrS3RxZ">
  • The first is <i>Absolute Maximum Ratings</i>, which generally means these are the limits you must never exceed. This does NOT imply normal operating values. The second table appears to be the normal operating parameters. These are the values you can actually design your circuit to.
  • So what maximum forward current can the circuit allow indefinitely? It's not totally clear. The first table does show the continuous forward current to be 30 mA, so that would appear to be the answer at first glance. Note that the 30 mA figure only applies to 50 &deg;C or less. Is that die temperature or ambient? If die temperature, then it might easily be exceeded even at 25 &deg;C ambient. This is a rather poorly written datasheet. If you want to push limits, you either need to talk to the manufacturer, or use an LED from someone that gives you proper specs.
  • We see later on page 4 that there is a graph showing allowed forward current as a function of <i>ambient</i> temperature, with 30 mA allowed up to 50 &deg;C. 30 mA should therefore be OK if this device is specified for office use, like 25 &deg;C. If it will be in a metal box mounted to a light pole in Phoenix Arizona, than 30 mA is clearly not allowed. For now, let's assume an office environment and go with 30 mA to at least see where we're at.
  • Now for the forward voltage. Here we want to know the least it can be, because that results in the most current, given the fixed power supply voltage. Here is another problem with this datasheet. We are only given a <i>typical</i> forward voltage, not minimum. About half the time the voltage will be 2.0 V or higher. The other half the time, it will be lower. But wait! Note that's at only 20 mA, not the 30 mA the other table says it's OK to use continuously. Hmm, they give is specs at 20 mA, but not 30 mA. That's a hint they don't really consider this LED intended for 30 mA operation.
  • Given all that, I consider it irresponsible to design a production circuit with just a dropping resistor using this LED at 30 mA continuously. If I needed the extra light, I'd actively control the current, or use a different LED, or possibly multiple LEDs. After all, we have plenty of voltage to run more LEDs without using any more power.
  • Let's assume the 9 V supply is reasonably well regulated. Since this LED can probably be run up to 30 mA, using 20 mA and the typical voltage drop for 20 mA should be OK.
  • You want the resistor to drop the supply voltage minus the LED voltage at the desired current. Using Ohm's law:
  • &nbsp; &nbsp; R1 = (9.0 V - 2.0 V) / 20 mA = 350 &Omega;
  • Since we've already accounted for some slop, you could use that resistance or higher. The nearest common value at or above this is 360 &Omega;. Assuming 1% parts, that could result in a resistance as low as 356 &Omega;
  • Now we look at the power the resistor will dissipate:
  • &nbsp; &nbsp; (7 V)<sup>2</sup> / 356 &Omega; = 138 mW
  • Note that this is more than the &frac18; W the typical 0805 resistor is rated for.
  • Rarely do you need full brightness. If this is for something like office use, then 20 mA is not only excessive, but may even be annoyingly bright. 5 mA is probably all you really need, but that depends on requirements you haven't told us.
  • So, <b>my answer is 1.3 k&Omega;</b>.
  • If you really cared about maximum brightness, you wouldn't be using such a poor and wasteful circuit for driving the LED.
  • What the "appropriate" value of R1 is depends on what you are trying to achieve, which you haven't told us. Will this device be used in bright light, like outdoors, and the LED therefore needs to be as bright as possible? Is it an illumination source? Is it just an indicator, and it only needs to be bright enough to be obviously on under typical office illumination? Is it battery powered, and power conservation is a high priority? Specifications like this are important.
  • In any case, it would be good to know what the minimum allowable R1 is, even if you then derate heavily from there. To do that, we need to know three things:<ul>
  • <li>What the maximum allowed continuous current thru the LED is.
  • <li>What the minimum voltage drop of the LED is a this current.
  • <li>What the maximum power supply voltage can be.
  • </ul>
  • In other words, we want to calculate the minimum resistance that keeps the LED operating within spec under the combination of worst case conditions.
  • This first thing we do is look at the LED datasheet. Unfortunately, as is all too common, particularly with far-east manufacturers, the datasheet doesn't actually tell us everything we want to know. There are two tables with parameters:
  • <img src="https://electrical.codidact.com/uploads/T21uB5VThScnkDYMu7wtcsXj">
  • and
  • <img src="https://electrical.codidact.com/uploads/LM4aTFTnqmDBB2TEmWrS3RxZ">
  • The first is <i>Absolute Maximum Ratings</i>, which generally means these are the limits you must never exceed. This does NOT imply normal operating values. The second table appears to be the normal operating parameters. These are the values you can actually design your circuit to.
  • So what maximum forward current can the circuit allow indefinitely? It's not totally clear. The first table does show the continuous forward current to be 30 mA, so that would appear to be the answer at first glance. Note that the 30 mA figure only applies to 50 &deg;C or less. Is that die temperature or ambient? If die temperature, then it might easily be exceeded even at 25 &deg;C ambient. This is a rather poorly written datasheet. If you want to push limits, you either need to talk to the manufacturer, or use an LED from someone that gives you proper specs.
  • We see later on page 4 that there is a graph showing allowed forward current as a function of <i>ambient</i> temperature, with 30 mA allowed up to 50 &deg;C. 30 mA should therefore be OK if this device is specified for office use, like 25 &deg;C. If it will be in a metal box mounted to a light pole in Phoenix Arizona, than 30 mA is clearly not allowed. For now, let's assume an office environment and go with 30 mA to at least see where we're at.
  • Now for the forward voltage. Here we want to know the least it can be, because that results in the most current, given the fixed power supply voltage. Here is another problem with this datasheet. We are only given a <i>typical</i> forward voltage, not minimum. About half the time the voltage will be 2.0 V or higher. The other half the time, it will be lower. But wait! Note that's at only 20 mA, not the 30 mA the other table says it's OK to use continuously. Hmm, they give us specs at 20 mA, but not 30 mA. That's a hint they don't really consider this LED intended for 30 mA operation.
  • Given all that, I consider it irresponsible to design a production circuit with just a dropping resistor using this LED at 30 mA continuously. If I needed the extra light, I'd actively control the current, or use a different LED, or possibly multiple LEDs. After all, we have plenty of voltage to run more LEDs without using any more power.
  • Let's assume the 9 V supply is reasonably well regulated. Since this LED can probably be run up to 30 mA, using 20 mA and the typical voltage drop for 20 mA should be OK.
  • You want the resistor to drop the supply voltage minus the LED voltage at the desired current. Using Ohm's law:
  • &nbsp; &nbsp; R1 = (9.0 V - 2.0 V) / 20 mA = 350 &Omega;
  • Since we've already accounted for some slop, you could use that resistance or higher. The nearest common value at or above this is 360 &Omega;. Assuming 1% parts, that could result in a resistance as low as 356 &Omega;
  • Now we look at the power the resistor will dissipate:
  • &nbsp; &nbsp; (7 V)<sup>2</sup> / 356 &Omega; = 138 mW
  • Note that this is more than the &frac18; W the typical 0805 resistor is rated for.
  • Rarely do you need full brightness. If this is for something like office use, then 20 mA is not only excessive, but may even be annoyingly bright. 5 mA is probably all you really need, but that depends on requirements you haven't told us.
  • So, <b>my answer is 1.3 k&Omega;</b>.
  • If you really cared about maximum brightness, you wouldn't be using such a poor and wasteful circuit for driving the LED.
#1: Initial revision by user avatar Olin Lathrop‭ · 2021-09-01T22:46:08Z (about 3 years ago)
What the "appropriate" value of R1 is depends on what you are trying to achieve, which you haven't told us.  Will this device be used in bright light, like outdoors, and the LED therefore needs to be as bright as possible?  Is it an illumination source?  Is it just an indicator, and it only needs to be bright enough to be obviously on under typical office illumination?  Is it battery powered, and power conservation is a high priority?  Specifications like this are important.

In any case, it would be good to know what the minimum allowable R1 is, even if you then derate heavily from there.  To do that, we need to know three things:<ul>

  <li>What the maximum allowed continuous current thru the LED is.

  <li>What the minimum voltage drop of the LED is a this current.

  <li>What the maximum power supply voltage can be.

  </ul>

In other words, we want to calculate the minimum resistance that keeps the LED operating within spec under the combination of worst case conditions.

This first thing we do is look at the LED datasheet.  Unfortunately, as is all too common, particularly with far-east manufacturers, the datasheet doesn't actually tell us everything we want to know.  There are two tables with parameters:

<img src="https://electrical.codidact.com/uploads/T21uB5VThScnkDYMu7wtcsXj">

and

<img src="https://electrical.codidact.com/uploads/LM4aTFTnqmDBB2TEmWrS3RxZ">

The first is <i>Absolute Maximum Ratings</i>, which generally means these are the limits you must never exceed.  This does NOT imply normal operating values.  The second table appears to be the normal operating parameters.  These are the values you can actually design your circuit to.

So what maximum forward current can the circuit allow indefinitely?  It's not totally clear.  The first table does show the continuous forward current to be 30 mA, so that would appear to be the answer at first glance.  Note that the 30 mA figure only applies to 50 &deg;C or less.  Is that die temperature or ambient?  If die temperature, then it might easily be exceeded even at 25 &deg;C ambient.  This is a rather poorly written datasheet.  If you want to push limits, you either need to talk to the manufacturer, or use an LED from someone that gives you proper specs.

We see later on page 4 that there is a graph showing allowed forward current as a function of <i>ambient</i> temperature, with 30 mA allowed up to 50 &deg;C.  30 mA should therefore be OK if this device is specified for office use, like 25 &deg;C.  If it will be in a metal box mounted to a light pole in Phoenix Arizona, than 30 mA is clearly not allowed.  For now, let's assume an office environment and go with 30 mA to at least see where we're at.

Now for the forward voltage.  Here we want to know the least it can be, because that results in the most current, given the fixed power supply voltage.  Here is another problem with this datasheet.  We are only given a <i>typical</i> forward voltage, not minimum.  About half the time the voltage will be 2.0 V or higher.  The other half the time, it will be lower.  But wait!  Note that's at only 20 mA, not the 30 mA the other table says it's OK to use continuously.  Hmm, they give is specs at 20 mA, but not 30 mA.  That's a hint they don't really consider this LED intended for 30 mA operation.

Given all that, I consider it irresponsible to design a production circuit with just a dropping resistor using this LED at 30 mA continuously.  If I needed the extra light, I'd actively control the current, or use a different LED, or possibly multiple LEDs.  After all, we have plenty of voltage to run more LEDs without using any more power.

Let's assume the 9 V supply is reasonably well regulated.  Since this LED can probably be run up to 30 mA, using 20 mA and the typical voltage drop for 20 mA should be OK.

You want the resistor to drop the supply voltage minus the LED voltage at the desired current.  Using Ohm's law:

 &nbsp; &nbsp; R1 = (9.0 V - 2.0 V) / 20 mA = 350 &Omega;

Since we've already accounted for some slop, you could use that resistance or higher.  The nearest common value at or above this is 360 &Omega;.  Assuming 1% parts, that could result in a resistance as low as 356 &Omega;

Now we look at the power the resistor will dissipate:

 &nbsp; &nbsp; (7 V)<sup>2</sup> / 356 &Omega; = 138 mW

Note that this is more than the &frac18; W the typical 0805 resistor is rated for.

Rarely do you need full brightness.  If this is for something like office use, then 20 mA is not only excessive, but may even be annoyingly bright.  5 mA is probably all you really need, but that depends on requirements you haven't told us.

So, <b>my answer is 1.3 k&Omega;</b>.

If you really cared about maximum brightness, you wouldn't be using such a  poor and wasteful circuit for driving the LED.