Fabric Colour Sensor
01 /Gallery5 photos · 3 videos
- 0102
- 0304
02 /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.
03 /Build timeline5 steps
- 4 Sept 2026
First fabric readings captured
Tested the illuminated sensor against brown, green and grey fabric and recorded the first working readings.
- 5 Sept 2026
First readings shared
Shared the first fabric readings across YouTube, TikTok and Instagram.
First readings - 8-10 Sept 2026
Final electronics assembled
Moved the ESP32-S3 and controls onto separate soldered perfboards, checked the wiring and recalibrated the sensor.
- 10-11 Sept 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 Sept 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.
Prototype to finished buildBuild video
Discussion & feedback
Have questions about this project? Built something similar? Share your thoughts. Comments need a GitHub account.