I just got my Arduino and have get it happily blinking out morse code all over the show.
I also bought a combined RGB LED with common Anode (which initially worried me, but I've discovered how to sink to make it work.. in theory).
It would fit so nicely with its cathode leads plugged into the PWM pins at 6,5 and 3 with the common anode in pin 4 and I could make all sorts of lovely colours (in theory).
The reason I say in theory is I'm not going to risk plugging in straight in without serial resistor(s) as I get the impression something would melt, either my LED or Arduino or both...
SO I have a few (n00b) questions:
- Why do I need a serial resistor? Why is the voltage too high for LEDS? or is it something else?
- Where can I put the resistor(s)? can one just go on the common anode or should each cathode have a resistor?
- People seem to be picking quite random values for their resistors from all the different things I've read. I have the specs for my RGB LED and the Arduino is there a sensible way to calculate what I actually need to use?
I'm a programmer and played around with electronics when I was little but always following specific instructions, I've just realised how little I know for working things out for my self. Its all part of the fun :)