(youtube) This is a machine I designed to sort Skittles. It uses a BASIC Stamp 2 and 3 servos for actuation. An IR LED and phototransistor are used to stop the turnstile in position. I fabricated may of the parts from epoxy including the body, the turnstile, the chute header, etc. The base is wood and the funnel is from a hummingbird feeder. The rest is made from telescope parts and PVC.
I've made some recent modifications to the machine. Now the color detection stage is visible and I painted some previously unfinished parts.