I was wondering how small of an area can the sensor detect. I would like to sort M&M and Skittles and was wondering if this was too small for the sensor to recognize with color accuracy.
The Virtuabotix Color Sensor with the Pinhole lense should work for small items like that, but you may have to put a smaller whole on the lens. I have been able to do that with a piece of electrical tape and a pinhole.
Focal distance and size are the main things you will have to tweak to work on smaller objects, but it should be do-able.