Components / Sensors / TCS34725 colour sensor

TCS34725 colour sensor

Digital RGB and clear light sensor with an IR filter.

MeasuresRed, green, blue and clear light
InterfaceI2C
I2C address0x29
Supply voltage2.7 to 3.6 V (modules take 5 V)
SensorsReviewedMPN TCS34725Used in 10 projects
TCS34725
In short

What is the TCS34725 colour sensor and what is it used for?

Digital RGB and clear light sensor with an IR filter. Makers use it for colour matching.

How it works

An array of red, green, blue and clear photodiodes behind an IR-blocking filter, with a 16-bit ADC per channel.

Key specifications

Sensor specValue
MeasuresRed, green, blue and clear light
InterfaceI2C
I2C address0x29
Supply voltage2.7 to 3.6 V (modules take 5 V)

Pinout

VIN3.3 to 5 V on modules
GNDGround
3V3Regulator output
SCLI2C clock
SDAI2C data
INTInterrupt
LEDWhite LED control

How to use it

Use the Adafruit TCS34725 library. Shade it from room light and hold the object at a fixed distance under the white LED, then calibrate with white and black samples.

Applications

Alternatives

Buy at

Common questions

What is the TCS34725 colour sensor used for?

In maker projects: colour matching.

How does the TCS34725 colour sensor work?

An array of red, green, blue and clear photodiodes behind an IR-blocking filter, with a 16-bit ADC per channel.

What voltage does the TCS34725 colour sensor need?

2.7 to 3.6 V (modules take 5 V).

How do I connect the TCS34725 colour sensor to an Arduino or ESP32?

I2C. Pins: VIN (3.3 to 5 V on modules), GND (Ground), 3V3 (Regulator output), SCL (I2C clock), SDA (I2C data), INT (Interrupt).

What can I use instead of the TCS34725 colour sensor?

Color sensor TCS3200 / TCS230 and AS7341 11-channel spectral sensor.