3
\$\begingroup\$

I have some RGB LEDs (eBay - no datasheet, 4 pin, common cathode, 5mm). I am colourblind.

I'd like to create a palette of colours which appear distinctly for most people's eyes, perhaps 16 colours or more. How could I generate this palette?

I guess that the colour produced will be far from a perfect match to the duty cycle applied.

The human eye is apparently more sensitive to green, could I use this (and other factors) to improve the colour output?

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

Well, the easy method would be to find a friend who can see colors and ask him to pick 16 colors for you.

The first 8 colors (7 if you don't count black) are easy...just run through all the possible combinations of on/off LEDs. To get more than that, you'll need to vary the brightness of the individual colors. Generally you vary LED brightness not via voltage, but via PWM (very quickly turning the LED on and off. Spending more time off to make it appear dimemr)

\$\endgroup\$
1
  • \$\begingroup\$ Re: voltage vs PWM - indeed. Question updated. Thanks. \$\endgroup\$ Mar 23, 2010 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.