Saturday, 7 January 2017

Why doesn't it matter if a resistor is before or behind an LED wrt voltage drop?



I have read that current is always the same within a circuit, but as far as I understood voltage is not. Every electronic part I use lowers the voltage more or less, even simple wires do this. So far, so good.


Now I wonder why it does not matter if a resistor comes before or behind an LED with respect to voltage drops caused by the parts of a circuit.


Supposed I have a very simple circuit:


9V Battery -> Resistor -> LED -> 9V Battery

Also supposed that the LED has a maximum voltage of 3V and 20 mA. So I need to calculate the desired resistor:


9V - 3V = 6V

So I need a resistor that takes 6V out, and since I want 20 mA and current is the same in the entire circuit, it's according to Ohm's law:


U = R * I

6V = R * 0,02A
R = 6V / 0,02A
R = 300 Ohm

Again, so far, so good.


Now, with a resistor taking out 6V this makes sure that only 3V are left for the LED: The battery provides 9V, the resistor uses 6V, the LED gets the remaining 3V. Everything's fine.


What I do not get is why it also works the same way if I have the resistor behind the LED. Wouldn't that mean that we have a battery providing 9V, the LED getting all the 9V, using 3V, and then 6V for the resistor remaining?


Why does this work? Shouldn't 9V be way too much for the LED? Why doesn't it matter if the resistor is set up before or behind the LED?



Answer



One thing you need to remember is that voltage is relative. Voltage is a potential difference and it makes no sense to discuss voltage without a 'zero' reference.



In the case of your LED circuit there will be a voltage across the battery, a voltage across the LED, and a voltage across the resistor. If you add up all the voltages as you go around the loop, you get zero – up 9 at the battery, down 6 at the resistor, down 3 at the LED, the total is zero and you're back at the same point in the circuit. The LED only sees the difference in voltage between its two leads, as does the resistor. Since only the difference is important it makes no difference what order the parts are connected in.


As for current, it is only the same along a continuous path. Electrons are not created or destroyed (what goes in must come out). Since there is only one possible path for the electrons to take in your circuit, the current will be the same through all of the components. In a parallel circuit you see the opposite: all of the components have the same voltage, but the currents will be different.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...