Skittle Color Sorter
A color sorting machine that can sort Skittles by their color.
The TCS34725 color sensor has RGB and Clear light sensing elements, and an IR blocking filter, integrated on-chip and localized to the color sensing photodiodes.
The alphanumeric LCD display has an LED backlight and can display two rows with up to 16 characters on each row.
The servo on the top is a continuous rotation servo that can spin around and send the Skittles to the color sensor.
The servo at the bottom is a standard servo motor that acts as an arm to put Skittles into designated cups.
Skittle Color Sorter is open source under the MIT License.
Here's how you should be using the code.
This Skittle Color Sorter consists of a Adafruit TCS34725 Color Sensor to measure color values, a Continuous Rotation Servo at the top to keep the Skittles going down, a Standard Servo at the bottom to move the arm to bring the Skittles to a desired place, and a Liquid-Crystal Display to show information like the number of Skittles.
To compile the code, you will firstly need to set up the development enviroment and include the Adafruit_TCS34725 library.
Because the color sensor might report color values differently due to various factors, such as the distance between the sensor and the object, etc, before this Skittle Color Sorter can work properly for your specific hardware, each color needs to be calibrated.
Other details about the project can be found on the Reference Documentation page.