MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 2/3

Talking Colour Detector

Hold it against a shirt, press the button, and it says the colour out loud.

Talking Colour Detector
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.

Plain, solid colours work best.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. Pressing the button starts a reading.
  2. The colour sensor measures red, green and blue light from the surface.
  3. The ESP32 picks the nearest colour name.
  4. The MP3 module plays that colour's voice clip on the speaker.

Parts you need

  • Colour sensor (I2C)× 1Buy
  • ESP32 development board (30-pin)× 1Buy
  • Small speaker× 1Buy
  • Push button× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 PowerMP3 VCC5V rail
2 GroundMP3 GND (pin 10)GND rail
3 SignalMP3 RXESP32 D26
4 SignalMP3 TXESP32 D25
5 SignalMP3 SPK1 / SPK2Speaker
6 SignalButtonESP32 D13 → GND
7 PowerColour sensor VINESP32 3V3
8 GroundColour sensor GNDESP32 GND
9 SignalColour sensor SCLESP32 D18
10 SignalColour sensor SDAESP32 D19

3D print files

This project has no 3D-printed parts.

Code

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