Cool
High Speed Candy Sorting Machine
A high torque motor rotates a plate that sends M&M through a hole one at a time. As the M&Ms fall an iPhone distinguish the colours. The iPhone communicates with an Arduino via a bluetooth board, and the Arduino then uses a relay to fire off electromagnet controlled gates to send the M&Ms into the correct chute.