If I had a 12V battery and wanted to use an LED that used 2V and 20mA, then I need a resistor that will drop 10V and provide enough resistance to produce a current of 20mA. Therefore I would use R=V/I = R = 10/0.020 = 500 Ohms.
Therefore I would need a 500 Ohm resistor. I believe this is correct so far?
My confusion comes from when we then look at the circuit as a whole. The circuit has a current of 0.020A and a resistance of 500 Ohms, which when looking at V=IR equals 10V (the resistor), not the 12V that it should be there for the whole circuit?
Where am I going wrong? How do I make V = IR work regarding the whole circuit so that V = 12?
I'm pretty new to this sort of thing and no doubt I've probably made a daft mistake but if someone could just help clear up my confusion it would be appreciated.
Thanks.