Go Down

Topic: Blink problem (Read 483 times) previous topic - next topic

tuxduino

(disclaimer: sw guy speaking here)

That way the current flowing through the resistor is different if one or both leds are on. And that's a Bad Thing (tm), as the v=ri across R will vary too. Is this correct ?

John_S

It should be like this:

pin 9 -----resistor--------  green LED -------- ground

pin12 -----resistor-------- red LED ------------ground

Be sure you have the LED anode (long pin) to the resistor, and the cathode (flat spot) to ground.

                                   

Go Up