MuTech RoboticsLearning Hub
Kids OK with adultArduino NanoLevel 2/3

Colour-Sorting Robot Arm

A colour sensor reads each block and a 3D-printed arm drops it in the matching bin.

Colour-Sorting Robot Arm
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Do not power the servos from the Nano 5V pin. Centre every servo at 90° before fitting the horns.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The TCS3200 shines light on the block and measures how much red, green and blue comes back.
  2. The Nano decides the colour by comparing the three readings.
  3. Four servos move the arm: base turns, shoulder and elbow reach, gripper grabs.
  4. The arm drops the block in the right bin and returns home for the next one.

Parts you need

  • Arduino Nano× 1Buy
  • TCS3200 colour sensor× 1Buy
  • 4× SG90 / MG90S servos (base, shoulder, elbow, gripper)× 4Buy
  • 5V 3A power supply× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalSensor S0Nano A0
2 SignalSensor S1Nano A1
3 SignalSensor S2Nano A2
4 SignalSensor S3Nano A3
5 SignalSensor OUTNano A4
6 PowerSensor VCCNano 5V
7 GroundSensor GNDNano GND
8 SignalBase servo signalNano D9
9 SignalShoulder servo signalNano D6
10 SignalElbow servo signalNano D5
11 SignalGripper servo signalNano D3
12 PowerAll servo 5V (red)5V 3A supply +
13 GroundAll servo GND (brown)5V 3A supply −
14 GroundNano GNDSupply − (common ground)

3D print files

  • arm_base_turntable.stlPLA+ / PETG · 0.2 mm · 40% infillLink at launch
  • arm_links_gripper.stlPLA+ · 0.2 mm · 50% infillLink at launch

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.

Learn the idea behind it