The Arduino Uno mimicking colors. The sensor is an RGB LED in combination with a photo resistor. The code flashes each color of the RGB in the sensor for 50 milliseconds whilst recording the intensity of light bouncing back for each.
I've programmed the Arduino to determine the color based on the intensity recorded for each RED, GREEN, and BLUE pulse.
The 2nd RGB LED then mimics the color by means of PWM, flashing each color on and off for a fraction of a second.
http://www.georgegardner.info/arduino/photoresistor-color-sensing-with-the-ar... for more info
The background music is "Jarvic" by Kevin MacLeod (incompetech.com) Licensed under Creative Commons "Attribution 3.0" http://creativecommons.org/licenses/by/3.0/
Link to this comment:
All Comments (0)