Arduino Color Recognizer
This work origin product is from here. I make some changes to improve this design. I add a button to let people can see more clearly what is the color that the sense recognize.
Prepare the Materials
- An Arduino UNO
- Several wires
- One LCD with I2C mod
- A TCS3200
- A button
- One metal film resistor
Circuit
S0 ==> pin D4
S1 ==> pin D5
S2 ==> pin D6
S3 ==> pin D7
OUT ==> Pin D8
VCC ==> +5V
GND ==> GND
SDA ==> Pin A4
SCL ==> Pin A5
Upload the Code
Upload this code. Using the online Arduino editor or download the file.