← All projects

Sam Speed · Hardware

M&M Color Sorter

Project demonstration · Watch on YouTube ↗

About the project

An Arduino Uno project that sorts M&Ms by colour using an APDS 9960 RGB sensor and two stepper motors.

The RGB sensor provides the colour measurements, while the Arduino coordinates the motors. The build combines a NEMA-17 12V stepper motor and driver with a smaller 2BYJ-48 5V stepper motor and driver, supported by acrylic pipe and 3D-printed parts.

Bill of materials

Recorded component costs
ComponentCost
APDS 9960 RGB sensor$7.50
NEMA-17 12V stepper motor + driver$14.00
Arduino Uno$27.60
2BYJ-48 5V stepper motor + driver$2.40
15mm acrylic pipe$8.49
12V power supply$9.99
3D printing materials$10.16
LED$0.20
Total$80.34