Author Topic: Getting white light in RGB LED  (Read 8222 times)

0 Members and 2 Guests are viewing this topic.

Offline praveen_khmTopic starter

  • Jr. Member
  • **
  • Posts: 47
  • Helpful? 1
Getting white light in RGB LED
« on: July 11, 2013, 03:32:48 AM »
I have been trying to get a RGB led work and generate accurate colors, but not able to succeed with the information I have.

Let me describe the problem. I have an RGB led with the following specifications:
Dominant Wavelength
Red   Green   Blue
622   530   465

Now, to get accurate white, I found a couple of resources which say that mixing ratio should be 4.1:10.6:1 of RGB respectively.

The question is how did they come out with this ratio? Is there a formula what can help derive this magic ratio based on wavelength? Ofcourse, if I follow a trial and error process, I am able to get white light with a ratio close to 3:6:1, but I need to know how does this all work theoretically. If someone can even suggest a, say, "RGB for dummies", that should be helpful.

Some of the resources I found helpful were (though I could not find out how)

Also, is there a RGB mood light program somewhere written for Atmega8?
Robot building is all about sharing and learning
------------------------------------------- : Beginners guide to Electronics & Robotics

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: Getting white light in RGB LED
« Reply #1 on: July 11, 2013, 10:03:22 AM »
Unfortunately, your question is actually harder than that.

First, what do you mean by "white"? There are different color temperatures in use, from somewhere around 1800K to around 10000K. "white" will be a lot more yellow/red at 1800K than at 10000K (or, the more "normal daylight" around 5000K.)
Deciding on what "flavor" of white you want is step 1.

Second, each diode has a different PWM-to-output function. This has to do both with the actual voltage/power efficiency of each emitting diode, and also possibly with differences in gamma response of each of the diodes. You will need to look up the specifics of these values in the data sheet for your specific device -- and even so, cheap LEDs may have significant variation (like, +/- 20%!)

Third, the diodes may not match exactly with the center frequencies of sensitivity of the eye color receptors. If so, then output power in one of the LEDs may actually trigger some mix of perceived input in the eye. You have to compensate for this in your math.

All in all, this means you can construct a non-linear (because of gamma and LED response curves) and non-orthogonal (because of non-matching center frequencies) system of equations, where you put in the temperature of white that you want, and out comes the relative PWM ratios of your particular RGB LED.

If you're not interested in actually getting it right mathematically, the simplest thing to do is to shine a "known white" reference lamp onto a white piece of paper, and shine your LED right next to it, and adjust the three gains until three different human beings agree that the two spots of light have the same color. One step up from that is using a calibrated color meter; perhaps you can use one of those used to calibrate computer monitors if you want something cheap.

Offline johnwarfin

  • Full Member
  • ***
  • Posts: 120
  • Helpful? 3
Re: Getting white light in RGB LED
« Reply #2 on: July 11, 2013, 12:48:19 PM »
ive learned through experiments with my m&m sorting robot its virtually impossible to get what looks like white to the human eye using low cost leds. not just the ratios but homogeneous ray mixing is very difficult.


Get Your Ad Here