Hark! There’s good news for all of us color conscious candy connoisseurs out there. Check out this awesome candy sorting machine made with an Arduino and an RGB Sensor, via hackaday:
OCD. Sometimes things just get to you, like those pesky bags of randomly assorted candies. [Torsten] decided to build a sorting machine capable of sorting Skittles or M&Ms into separate cups by color at around 80 pieces per minute. It’s a great implementation, using an Arduino Duo. He based the code on the principles of a finite-state machine, in order to make it as quick as possible.