The key feature here is that the color is selected by detecting the color with your Android phone camera, processing its RGB value and it is sent to the Arduino which then outputs that same value.
Feel free to ask any questions in the comments, and I'll answer them as best I can.
Video below shows the final result:
- Arduino Uno or Mega
- 1 x RGB LED
- 4 x Connection wires
- 1 x Breadboard
- 3 x 220 Ohms resistors
- Arduino IDE, which you can download here
- Get the 1Sheeld Arduino library and the phone app here
Mount the 1Sheeld on the Arduino board. Make sure the power switch shown above is turned to 5V (for Arduino UNO users). If you're using another Arduino board, check here. Connect the 220 ohms resistors (x3) as shown. Connect the long leg of the RGB to the GND then connect the red leg to pin 9, green leg to pin 10 and blue leg to pin 11.
Simply, the code reads the values of your phone's camera then sends them to the RGB. Upload the attached code and let's move to the next step.
Use your 1Sheeld mobile app (Color Detector Shield) to scan any color you want.
PS: Make sure the 1Sheeld is in upload mode as seen in the image above.
After connecting all components as shown:
- Connect the Arduino to your laptop and make sure the code is uploaded.
- Switch the 1Sheeld back to operating mode.
- Open your 1Sheeld app and connect your phone to your 1Sheeld board (check 1Sheeld tutorial here if you haven't already).
- Select Color Detector Shield, and press on the multiple shields icon at the top right of the app.
Now hold your phone, then scan the color of any object and watch your RGB.
Finally, feel free to ask any questions in the comments and I'll answer them as best I can.