This is a machine I designed to sort Skittles. It uses a BASIC Stamp 2 and 3 servos for actuation. An IR LED and photo transistor 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.