Hi,
I am wanting to be able to control the levels of red, green and blue light intensities on an RGB LED strip - in relation to the corresponding light wavelengths (in nanometres). There is actually no unique one-to-one mapping between wavelength and RGB values, however it can be approximated as shown on this site http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm.
I need help with how to script this. So far, all I can think of is defining the RGB levels of wavelengths at increments where x nm = (R,G,B) (eg. every 10 nm between 380nm and 780nm- so 380 nm = (100,0,100); 390 nm = (125, 0, 150) etc) and somehow scripting that in so that when you turn a potentiometer, the wavelength goes up or down. This would mean the combination of intensities of R,G,B would change accordingly, which would be relayed to the LED.
HARDWARE:
The RGB LED strip I am using is analog and common anode Flexibel LED-tape, 12V, 100cm, RGB, IP65 vandtæt | Elektronik Lavpris Aps
I think I will be connecting the arduino uno, LED strip and +v this way, allowing each colour of LED to be controlled individually: http://www.ladyada.net/wiki/_media/products/rgbledstrip/ledstripbjt.gif
I imagine the physical controller to be a potentiometer dial or slider of some sort, to make a smooth transition along the scale of wavelengths between 380 and 780nm. (other suggestions welcome!)
AIM:
The reason I want to be able to do this project is to design and create a light which can simultaneously act as a therapy light for seasonal affective disorder (SAD, or Winter blues) and as a plant grow light. Each of these respective functions has a different optimal light wavelength, which I would like to be able to slide between depending on the use.
Any help or suggestions would be wonderful thankyou! I am kind of new to all this!
Zana