Saturday, August 8, 2015

Color Sensor TCS230/TCS3200

I got this sensor off Amazon.  It was fun to play with but surprisingly difficult to get meaningful results from.  The difficulty is primarily due to sensor limitations.  There are quite a few sites with Arduino code for this sensor, I am using a MSP432 LaunchPad here.  I wanted to keep it simple and use the pulseIn() function.  It works with the MSP432, but not so well with the F5529.  A better approach would be to use a timer and count interrupts from the pulses.

See my git repository here for the pin connections, code, and a deeper discussion.

The following is a photo of the sensor I'm using and some examples of what you might expect: