Fabric Colour Sensor

• active • Hardware
10
Readings per scan
3
Result states
155.05 g
Final enclosure
£5.43
Enclosure filament

Tech Stack

ESP32-S3 C++ ARDUINO TCS34725 OLED SOLDERING 3D PRINTING ONSHAPE

Links

About

A handheld fabric scanner that uses an illuminated GY-33 TCS34725 sensor to compare two colour samples. An ESP32-S3 averages ten readings per scan, then shows the RGB values and a Match, Similar or Different result on a small OLED. I moved the working prototype onto two soldered perfboards and built a four-part enclosure for Liverpool MakeFest 2026. The electronics worked throughout the event, while the enclosure needed two zip ties to keep its front and rear securely closed.

Scan, save and compare

The red Scan button captures a colour, the white Save button stores samples A and B, and the blue Clear button undoes the latest reading. The OLED shows the measured RGB values and the comparison result.

Consistent readings

Each scan averages ten readings from the illuminated GY-33 TCS34725 module. The firmware compares calibrated values and groups the score into Match, Similar or Different. Keeping the sensor position and lighting consistent matters more than treating the score as an absolute colour measurement.

Two-board electronics

The finished build separates the ESP32-S3, terminal blocks and module connections onto a main perfboard, with the three physical controls on a second button board. The OLED uses I2C and the colour sensor communicates with the ESP32-S3 over UART.

Printed enclosure

The four-part enclosure holds the frame, front panel, rear tray and removable light divider. The final parts used 155.05 g of filament and cost £5.43.

Build Timeline

4 Sep 2026

First fabric readings captured

Tested the illuminated sensor against brown, green and grey fabric and recorded the first working readings.

5 Sep 2026

First readings shared

Shared the first fabric readings across YouTube, TikTok and Instagram.

8-10 Sep 2026

Final electronics assembled

Moved the ESP32-S3 and controls onto separate soldered perfboards, checked the wiring and recalibrated the sensor.

10-11 Sep 2026

MakeFest enclosure printed

Printed the central frame and front in PLA, then the rear and light divider in PETG. The final four parts used 155.05 g of filament.

13 Sep 2026

Exhibited at Liverpool MakeFest

Visitors used the finished scanner to compare fabric swatches. The electronics worked, while two zip ties kept the enclosure securely closed.

Discussion & Feedback

Have questions about this project? Built something similar? Share your thoughts!
(Requires GitHub account to comment)

J4 - CONNECT

YOUTUBE
TIKTOK
INSTAGRAM
GITHUB
LINKEDIN
SUBSTACK