TCS230-DB Color Sensor
raejj
Posts: 14
Hi all,
So, again I'm having trouble with the TCS230DB color sensor. For my capstone project, I want the sensor to identify different colors, and depending on the color of air hockey pucks, different musical patterns will be played. Right now, the color sensor easily identifies red but does not distinguish between green and blue. I believe it may be due to the paint I purchased from Lowe's. I have two cans of Valspar Plastic Paint (royal blue and hunter green). I'm thinking maybe the colors are too dark or the fact that I'm painting over the red hockey pucks.
Anyways, here is the readout from the debug terminal.
R000 G000 B006
R000 G000 B002
R000 G000 B002
R000 G000 B002
R000 G000 B002
R000 G000 B002
R017 G000 B003
The first three readings are the blue disk. The second three readings are the green disk, and the last reading is the red disk. My program is an attachment. Any suggestions as to how to improve the readability of the color sensor would be greatly appreciated.
So, again I'm having trouble with the TCS230DB color sensor. For my capstone project, I want the sensor to identify different colors, and depending on the color of air hockey pucks, different musical patterns will be played. Right now, the color sensor easily identifies red but does not distinguish between green and blue. I believe it may be due to the paint I purchased from Lowe's. I have two cans of Valspar Plastic Paint (royal blue and hunter green). I'm thinking maybe the colors are too dark or the fact that I'm painting over the red hockey pucks.
Anyways, here is the readout from the debug terminal.
R000 G000 B006
R000 G000 B002
R000 G000 B002
R000 G000 B002
R000 G000 B002
R000 G000 B002
R017 G000 B003
The first three readings are the blue disk. The second three readings are the green disk, and the last reading is the red disk. My program is an attachment. Any suggestions as to how to improve the readability of the color sensor would be greatly appreciated.
Comments
-Phil
-Phil