There is no better way to learn electronics and robotics than building your own things. This M&M’s and Skittles Sorting Machine is capable of sorting candy by color. Just put candy in the hopper on top and watch the machine sort it into 6 bowls at the bottom.
The machine can sort 2 pieces of candy per second. It uses Arduino and stepper motors to get the job done. A color sensor is also used to complete this machine.
[Source]