Pages: [1]   Go Down
Author Topic: Get an LED to become a certain color  (Read 409 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any suggestions on how to address an LED to be a specific color, like using an RGB LED (or another one if you have any ideas) and being able to assign (like in photo editing and such when assigning colors on a scale of 0-255) a color combination like the following?
 Red = 200
 Blue = 155
 Green = 201

Can this be done with the PWM (which is a scale of 0-255)?

Any ideas on a good  LED (undiffused) for this?
Logged

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 74
Posts: 2224
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

essentially the different duty cycles of PWM make the led get brighter or dimmer.

On an RGB LED, using PWM can control the intensity of each element allowing you to get almost any colour.
This is the same as pixels, each element has a certain intensity.

Due to the different physical qualities of each element in the LED the relationship is probably not exact.

Check out ShiftPWM or any of the fine examples here on the forum ( search bar above right ).
Or simply whack an RGB LED and a few resistors into the PWM ports and have a play.

This is the place I bought mine from: http://stores.ebay.com.au/LED-Wholesale-World/4pin-RGB-Anode-Cathode-LED-/_i.html?_fsub=2441707010&_sid=1016205190&_trksid=p4634.c0.m322

I'm currently using some of the 5mm common cathode versions. They seem good quality.
« Last Edit: May 10, 2012, 09:56:35 pm by pYro_65 » Logged


Pages: [1]   Go Up
Jump to: