LED Question

Hi All,

I am working on some christmas lights cause they have some good prizes every year in my area.

Anyway im going to be running LED’s across my roof (RGB) and I got some cheap ones from EBAY.

http://www.ebay.com.au/itm/20PCS-x-4-PI … 731wt_1163

Now these are really nice and bright but the problem is they don’t appear to be able to make all the colours like purple yellow and such.

I was wondering if you could point me to the correct lights i need.

http://en.wikipedia.org/wiki/RGB

skimask:
http://en.wikipedia.org/wiki/RGB

Thanks and while playing around i work it out.

They are completely opposite to the one that come with my aruidno.

Off is on and On is off.

The LED’s that you got from ebay are common anode, if you got the sparkfun inventors kit those are common cathode. This is why on is off and off is on for you. You might need to change the way you have them wired is all to make on, on again.

You don’t need to change the wiring, just the logic. If you are using 8 bit PWM (i.e. analogWrite) - then simply subtract the PWM value from 255 and write the result.

You should also determine each LED’s Vf and adjust the dropping resistor to get similar brightness. I’d at least start with the same current through each LED. (by LED, I mean each of the 3 LEDs in the package). Ideally, you would have something like one of the SFE color sensors to determine intensity so that you can better tune the LEDs. But, just eyeballing it is probably good enough. This will allow you to get more precise colors.

You may also want to adjust the pwm value to account for the logarithmic response of the eye.