Pages: [1]   Go Down
Author Topic: Get an LED to become a certain color  (Read 410 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
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?

North Queensland, Australia
Online Online
Edison Member
Karma: 74
Posts: 2226
View Profile
 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:

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: