I have 2 IRleds, or they will bright up both at the same time or they both will be off.
Atm i have it like this:
5V-----LED-----R1-------GND
5V-----LED-----R2-------GND
But i wondered if i could do it like this:
5V-----LED-----LED-----R1-------GND
Atm i think this is correct,
R = V/I
for 1 led:
(5-1.3) / 0.075 = 50mA
for 2:
(5-2.6) / 0.075 = 32ma
is it?
Atm i think this is correct,
R = V/I
for 1 led:
(5-1.3) / 0.075 = 50mA
Correct math, however the answer, 50, is expressed in resistance units called ohms, so R= 50 ohms.
for 2:
(5-2.6) / 0.075 = 32ma
Again correct math, but answer is 32 ohms, not ma.
Lefty
Course, you're not gonna get 75mA out of an arduino pin if that's your goal here.
and you'll only be able to turn both of them on or both off, instead of them being separately controllable as in your first example.
Pete