ElecFreaks is selling a new color sensing module based on the TSC230 sensor. They’ve posted a demonstration using an Arduino that shows off what this sensor is capable of. The module includes four white LEDs which give a baseline of light to help normalize readings when reflected off of differently colored surfaces. The white balance of the sensor needs to calibrated in software in order to ensure accurate readings, but once that’s done you’ll be cable to pull RGB values off of whatever you put in front of the sensor.
What a nice addition to sorting machines like this LEGO sorter. Of course you can do something like this yourself using an RGB LED as a detector, but the TSC230 is extremely sensitive and should be quite reliable in comparison. They’re selling the module for $15, a price point that’s hard to beat if you need precise color detection in your next project. A colored token reader for your MAME cabinet perhaps?