Introduction: Control RGB LED With Arduino and Processing.
I will today tell you how to control a RGB LED with help of Arduino and Processing language. This is my first instructable So, please let me know if I could anything improve and if you have any kind of questions leave them in the comment box, I would love to answer them. Simply you need the following items for this sweet little project.
- 1 X RGB LED
- 8 X Connecting Wires
- reflecting sheet ( optional)
- 1 X Breadboard
These two are the codes of Arduino and Processing respectively. Main thing we are doing here is just controlling and RGB Led by clicking anf image named "color" and having extention ".jpg".
Now how does this program works:
The image we have uploaded using Processing is basis of this program. When we click on the image anywhere, the RGB value of that particular spot or pixel is sent to the Arduino and the RGB value of the led changes correspondingly and lights up in that color.
One tip here is that if you do not have an RGB led you and do the same by one green, red and blue led and connecting them in the same way the RGB led is to be joined. Mine here is common cathode but a common anode will also work.
Please feel free to ask any question I would love to answer them. And suggestions are also invited
hope you Enjoy it.