This machine sorts M&Ms and Skittles by colour. Unsorted candy is put in a hopper on the top. Sorted candy is put into six bowls on the bottom side of the machine.
It’s pretty quick and sorts about 2 pieces of candy per second. It uses Arduino microcontrollers and stepper motors for quick and precise movement. A TCS34725 color sensor performs the measurements. Furthermore, the device is equipped with LEDs in several spots which nicely complement the overall look of the machine.
Project page on my website: http://bit.ly/2kQNIKx