2
\$\begingroup\$

I'm making a simple LED circuit. I have a 6V power source, and a LED with 2 forward voltage and that requires 18mA. I calculated the resistance by dividing the voltage with the required amps (6-2 / 0.018). This gave me 222, which I rounded to 220 Ohms. Now I have a 220 Ohms resistor.

Now I have a 6 volt battery, 220 Ohms resistor, and a LED. Now I can calculate the current. So I divided the total volt (6v) with the total resistance (220 Ohms). But this gave me 6v / 220 Ohms = 27mA. 27mA does not equal 18mA, which the LED needs to work.

With my understanding, these two numbers should equal. What am I doing wrong?

\$\endgroup\$
1
  • 2
    \$\begingroup\$ You just missed the drop across diode in second case. \$\endgroup\$
    – nidhin
    Jun 7, 2014 at 14:11

6 Answers 6

5
\$\begingroup\$

For low frequency operations, a practical diode can be modeled as an ideal diode in series with a voltage source and a resistance as shown below.

schematic

D1 is an ideal diode. Vd is the forward cut-in voltage and Rd is the dynamic resistance. But usually Rd is neglected in most of the cases as its value will be small (in \$\Omega s\$).

Since LED is a diode you can apply the same model. And Vd is 2V in your case. Hence when LED is on, your circuit has a 6V source, 220\$\Omega\$ resistance and a 2V voltage source (drop), in opposite polarity as 6V source as shown below.

schematic

$$\therefore I = \frac{6V-2V}{220\Omega} = 18.18mA$$

You missed the Vd in your calculations.

\$\endgroup\$
10
  • 4
    \$\begingroup\$ I gave you the accepted answer because I think you explained it the best. Though all the answers were awesome and I greatly appreciate them all, but I only have one button of approval to give. Thanks to you all! :) \$\endgroup\$
    – assasinDN
    Jun 7, 2014 at 15:47
  • 2
    \$\begingroup\$ @assasinDN that is fine. Some people tend to give the first answer acceptance, regardless of merit of the answer. StackExchange prefers that the most helpful answer, not technically right or first answer, be accepted. For the rest, that's what the upvote/downvote arrows are for. :D \$\endgroup\$
    – Passerby
    Jun 8, 2014 at 7:48
  • 1
    \$\begingroup\$ I wouldn't go as far as to say that Vd is a "voltage source"; that's quite risky, because, in any aplication Vd is actually Vd(I) - and, even in simplest cases, Vd is variable, e.g. when the Vsrc is < Vd (common case when working with battery-powered LEDs). I'd rather say that diode has variable (semiconductor, i.e. P-N junction) resistance creating the voltage drop and also stray capacitance (which, in fact, can be skipped); saying a diode is a 'voltage source' can be very misleading. \$\endgroup\$
    – user20088
    Jun 8, 2014 at 12:42
  • \$\begingroup\$ @vaxquis In the 1st figure, diode D1 ensures unidirectional flow of current (left to right in fig) and the polarity of Vd is such that it will oppose this current flow. So Vd acts as a voltage drop. It will not act as a voltage source as current won't flow from cathode to anode through a diode (right to left). The variation in drop with change in current is modeled with a series resistor, Rd. When Vsrc < Vd, the ideal diode D1 is reverse biased and hence it will act as an open-circuit. \$\endgroup\$
    – nidhin
    Jun 8, 2014 at 15:37
  • \$\begingroup\$ @NIDHIN you don't have to explain to me how diodes work; you're completely missing my point, mate. It's just that you rarely model a diode as voltage source + resistive load in small-signal modelling AFAIR. The voltage-source approach is usually used in large-signal modelling (again, AFAIR) - if you or anybody else can supply a book/datasheet reference of actual small-signal circuit modelling of a diode as V+R, I'll concur this is a good approach indeed. My memory isn't what it has used to be, so I *may be wrong on this one, hence my request for reference. \$\endgroup\$
    – user20088
    Jun 8, 2014 at 16:24
7
\$\begingroup\$

Now I have a 6 volt battery, 220 Ohms resistor, and a LED. Now I can calculate the current. So I divided the total volt (6v) with the total resistance (220 Ohms). But this gave me 6v / 220 Ohms = 27mA. 27mA does not equal 18mA, which the LED needs to work.

Your math is wrong. Mainly, the resistance of the led is negligible, so it can be ignored, but the voltage drop can not.

schematic

simulate this circuit – Schematic created using CircuitLab

The voltage across the resistor is what sets the current, not the total voltage. This can be tested with a multimeter.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Thanks! So I take it as diodes or components with a voltage drop should always be in the calculation when finding out the current. So if I have two diodes with a voltage drop of 2v each they together should be subtracted from the total voltage. So for example, to calculate the current, it should be 6v - 4v / 220 Ohms. \$\endgroup\$
    – assasinDN
    Jun 7, 2014 at 15:06
  • \$\begingroup\$ @assasinDN exactly. \$\endgroup\$
    – Passerby
    Jun 7, 2014 at 15:08
5
\$\begingroup\$

So I divided the total volt (6v) with the total resistance (220 Ohms).

To find the current through the resistor (and thus, the current through the diode), according to Ohm's Law

$$i_R = \frac{v_R}{R} $$

where \$v_R\$ is the voltage across the resistor.

But, by KVL, we have

$$v_R = 6V - v_D$$

thus,

$$i_R = \frac{6V - v_D}{220 \Omega} = i_D$$

Assuming \$v_D = 2V\$ then

$$i_D = \frac{6V - 2V}{220 \Omega} = 18.2mA$$

\$\endgroup\$
1
\$\begingroup\$

In your calculation for the LED ballast resistor value, you seemed to have included the fact that the LED has internal "resistance" because it consumes a certain amount of voltage for the given forward current, but then you ignore that fact later when trying to determine the full loop current.

The LED has a dynamic, and no-so-constant resistance of R = V/I during steady state, and you have said it drops 2V and supposedly at 18mA. It therefore has an R value of 111 Ohms.

Therefore, your circuit is:

6V / (111 + 222) Ohms = 0.01801 Amps.

Edit: Just so it's clear, LEDs and other diodes don't actually have a "resistance" value, and if you give them their forward voltage they will effectively short circuit and blow up so please don't assume an LED always has a resistance. They do not limit current at all.

\$\endgroup\$
5
  • 3
    \$\begingroup\$ I don't like the way you say the LED has a resistance of \$111\Omega\$. That is not really true. \$\endgroup\$
    – Matt Young
    Jun 7, 2014 at 14:13
  • 1
    \$\begingroup\$ It's not true, and i've covered myself buy saying it has a dynamic and non-static "resistance". By Ohms law, it MUST have that impedance/resistance under those conditions. \$\endgroup\$
    – KyranF
    Jun 7, 2014 at 14:14
  • 1
    \$\begingroup\$ Dynamic resistance has a specific technical meaning (slope of V/I curve) so it's bad to mix it up with these hand-waving explanations. And LEDs do actually have a resistive component to their voltage-current curve (and even if they didn't the ideal diode equation indicates that the current is limited for limited voltage). It just happens that the current is limited at a value that will quickly destroy the LED if the voltage is much more than about 2V in this case. \$\endgroup\$ Jun 7, 2014 at 15:38
  • 1
    \$\begingroup\$ The problem with this answer, is that it takes a premise (2V drop across the led) and works backwards to justify it (said 2V drop at 18mA is like a 111Ω resistor). It's right, in an incorrect manner, like Aristotle was with Abiogenesis. \$\endgroup\$
    – Passerby
    Jun 8, 2014 at 7:52
  • \$\begingroup\$ Yes but it's a valid and sufficient explanation for somebody who obviousuly has not yet grasped even the fundamental laws of electricity, so chill out guys :D \$\endgroup\$
    – KyranF
    Jun 9, 2014 at 5:27
1
\$\begingroup\$

What you did wrong is basic arithmetic,

$$\frac{6-2}{.018} \approx 222$$

Thus, working backward to the .018 has to be:

$$.018 \approx \frac{6 - 2}{222}$$

and not:

$$.018 \neq \frac{6}{222}$$

You calculated (correctly) the resistor value for the desired current using a voltage drop of 4 for the resistor. So the same value must be used to work backward from the resistor to the current.

\$\endgroup\$
1
\$\begingroup\$

If you look at a plot of LED Vf VS If:

enter image description here

you'll see that a very small change in Vf will effect a very large change in If.

Then, When you look at an LED data sheet and you see the specifications for Vf and If, you may think that If is specified by putting Vf across the LED and measuring If.

That's not the case however, and Vf is derived by forcing If through the LED and then measuring the voltage it drops.

That way, with a given current forced through a large number of samples, a range of measured Vfs will emerge which will allow the current-limiting resistor to be easily calculated by subtracting the LED voltage (at the current specified) from the supply voltage and dividing by the specified If.

For example, let's say you have a 5 volt DC supply and a red LED with a typical Vf of 1.9V when there's 20mA If through it, and that you want to drive it at 20mA.

Then you could say:

          Vs - Vf     5V - 1.9V 
    Rs = --------- = ----------- = 155 ohms 
            If          20mA

155 ohms isn't a standard 5% value, but 160 is, and if you wanted to, you could figure out the drop in current for the higher value resistor by rearranging the formula and solving for If. Plus, there's a pretty wide latitude of Ifs allowable, from very dim with a small If to, generally, 30 mA for an LED spec'ed at 20mA nominal.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.