TCS34725 color recognition sensor/bright light sensing module/RGB IIC supports UNO STM32 [Double Hole version]

SKU: FA3023-6
Sensor IC

AMS TCS34725

Channels

Red, Green, Blue, Clear (RGBC)

ADC Resolution

16-bit per channel

Interface

I²C (default address 0x29)

IR Blocking Filter

Integrated

Operating Voltage

3.3V – 5V DC (onboard regulator)

Programmable Gain

1x, 4x, 16x, 60x

Mounting

Double hole version

The TCS34725 Color Recognition Sensor / Bright Light Sensing Module (Double Hole Version) is a high-precision, digital color and ambient light sensing board designed for Arduino UNO, STM32, ESP32, Raspberry Pi, and other microcontroller projects. Built around the AMS TCS34725 RGB color sensor IC, this module provides accurate RGB and clear-light measurements through a simple I²C interface, eliminating the need for complex frequency counting or external ADCs. The Double Hole Version features two mounting holes for secure, stable installation in your project.

At the heart of the module is the TCS34725, a 4-channel digital color sensor that combines red, green, blue, and clear (unfiltered) photodiodes in a single package. The integrated IR blocking filter is a key advantage over older sensors like the TCS230/TCS3200: it minimizes the infrared component of ambient light, which would otherwise distort color readings and cause inaccurate results under incandescent or sunlight illumination. This makes the TCS34725 far more accurate and reliable in real-world lighting conditions.

The module features a high-precision 16-bit analog-to-digital converter for each channel, providing high sensitivity and a wide dynamic range across varying light conditions. It communicates via a standard I²C interface (fast mode, 400kHz) with a default I²C address of 0x29, allowing direct connection to most microcontrollers. The onboard 3.3V regulator and level shifter ensure compatibility with both 3.3V and 5V logic systems, making the module directly compatible with Arduino UNO (5V) and STM32 (3.3V) without additional components.

The Double Hole Version features two mounting holes on the PCB, providing more secure and stable installation compared to single-hole variants. This is particularly useful in robotics and industrial applications where the sensor must remain firmly fixed during operation. The module includes onboard I²C pull-up resistors and is ready for immediate use.

The module outputs raw RGBC data (Red, Green, Blue, Clear), along with calculated color temperature (CCT) and lux values via the sensor’s integrated algorithms. This makes it ideal for color temperature measurement, ambient light sensing, display backlight adjustment, and color identification applications. The programmable integration time and gain settings allow you to optimize the sensor for different lighting conditions, from dim indoor environments to bright outdoor settings.

The TCS34725 is widely used in color sorting systems, RGB LED control and calibration, ambient light sensing, display color management, product inspection, plant growth monitoring, and educational STEM projects. It is also popular in smart home devices, mobile phone camera accessories, and wearable technology where accurate color sensing is required.

Important Note: The TCS34725 uses I²C communication, so it is not a direct pin-compatible drop-in for TCS230/TCS3200 frequency-output modules — you must use the TCS34725 library and I²C protocol. The sensor measures reflected light, so sensing distance and illumination affect readings. For best results, maintain a fixed distance (typically 1–3cm) and use the onboard LEDs (if equipped) for consistent illumination. The IR filter reduces but does not eliminate infrared interference in very bright sunlight. The module is not waterproof and should be kept dry.

Whether you are building a color sorting machine, an RGB LED controller, or an ambient light sensing device, the TCS34725 Color Recognition Sensor Module (Double Hole Version) provides a reliable, accurate solution with the convenience of I²C communication and on-chip IR filtering. It is suitable for individual makers, students, and businesses purchasing in bulk for product development or educational programs.

Features

  • TCS34725 RGB color sensor IC — 4-channel RGBC photodiode array

  • Integrated IR blocking filter — Reduces infrared interference for accurate color readings

  • High-precision 16-bit ADC — High sensitivity and wide dynamic range per channel

  • I²C digital interface — Standard I²C communication (0x29), no ADC or frequency counting required

  • Onboard 3.3V regulator and level shifter — Compatible with both 3.3V and 5V microcontrollers

  • Programmable integration time and gain — Optimize for different lighting conditions

  • Double hole mounting — Two mounting holes for secure, stable installation

  • Onboard I²C pull-up resistors — Ready for direct connection

  • Compact form factor — With mounting holes for easy integration

  • Wide application range — Color sorting, RGB LED control, ambient light sensing, product inspection

Technical Specifications 

# Parameter Specification
1 Sensor IC AMS TCS34725
2 Channels Red, Green, Blue, Clear (RGBC)
3 ADC Resolution 16-bit per channel
4 Interface I²C (default address 0x29)
5 IR Blocking Filter Integrated
6 Operating Voltage 3.3V – 5V DC (onboard regulator)
7 Programmable Gain 1x, 4x, 16x, 60x
8 Mounting Double hole version

Usage

Getting Started

  1. Connect power — Supply 3.3V or 5V DC to the VCC pin and GND to ground. The module includes an onboard 3.3V regulator for 5V compatibility.

  2. Connect I²C lines — Connect SDA to your microcontroller’s I²C data line and SCL to the I²C clock line:

    • Arduino Uno: SDA → A4, SCL → A5

    • STM32: SDA → PB7, SCL → PB6 (or as configured)

    • ESP32: SDA → GPIO21, SCL → GPIO22 (default)

    • Raspberry Pi: SDA → GPIO2, SCL → GPIO3

  3. Install the library — Install the Adafruit TCS34725 library through the Arduino Library Manager, along with Adafruit BusIO.

  4. Upload a test sketch — Open the tcs34725 example and upload it. Open the Serial Monitor to see RGB, clear, color temperature, and lux values.

  5. Implement color detection — Use the RGB and clear values to identify colors, measure color temperature, or control RGB LEDs.

Pin Connections

Module Pin Function
VCC Power (3.3V–5V)
GND Ground
SDA I²C Data
SCL I²C Clock

Example Arduino Code

cpp
#include <Wire.h>
#include <Adafruit_TCS34725.h>

Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);

void setup() {
  Serial.begin(9600);
  if (!tcs.begin()) {
    Serial.println("No TCS34725 found!");
    while (1);
  }
  Serial.println("TCS34725 found!");
}

void loop() {
  uint16_t r, g, b, c;
  tcs.getRawData(&r, &g, &b, &c);

  uint16_t colorTemp = tcs.calculateColorTemperature_dn40(r, g, b, c);
  uint16_t lux = tcs.calculateLux(r, g, b);

  Serial.print("R: "); Serial.print(r);
  Serial.print(" G: "); Serial.print(g);
  Serial.print(" B: "); Serial.print(b);
  Serial.print(" C: "); Serial.print(c);
  Serial.print(" Temp: "); Serial.print(colorTemp); Serial.print("K");
  Serial.print(" Lux: "); Serial.println(lux);

  delay(200);
}

Typical Applications

  • Color sorting systems — Identify and sort objects by color with high accuracy

  • RGB LED control — Match LED colors to detected colors

  • Ambient light sensing — Measure light intensity and color temperature

  • Display backlight adjustment — Adaptive brightness and color temperature

  • Product inspection — Verify color consistency in manufacturing

  • Plant growth monitoring — Measure light spectrum for horticulture

  • Educational STEM projects — Teaching color sensing and I²C communication

Notes for Business Buyers

  • I²C simplicity — No ADC or frequency counting required; direct digital readout.

  • IR filter accuracy — Integrated IR blocking filter provides accurate color readings in varied lighting.

  • Double hole mounting — More secure installation for robotics and industrial applications.

  • Suitable for bulk purchasing — Ideal for sorting machine manufacturers, RGB lighting integrators, and educational institutions.

Q: What is the TCS34725 Color Recognition Sensor Module used for?

It is a high-precision digital color sensor for identifying and measuring colors, used in color sorting machines, RGB LED control, ambient light sensing, and product inspection.

Q: What is the difference between the Double Hole version and standard versions?

The Double Hole version features two mounting holes on the PCB, providing more secure and stable installation compared to single-hole variants. This is particularly useful in robotics and industrial applications.

Q: What is the difference between TCS34725 and TCS230/TCS3200?

The TCS34725 uses I²C communication and has an integrated IR blocking filter for accurate color readings. The TCS230/TCS3200 uses frequency output and lacks IR filtering, requiring more calibration and being more susceptible to IR interference.

Q: What is the output data format?

The module outputs 16-bit RGBC data (Red, Green, Blue, Clear) via I²C, along with calculated color temperature (CCT) and lux values.

Q: What is the I²C address?

The default I²C address is 0x29 (7-bit).

Q: What voltage does the module require?

It operates from 3.3V or 5V DC thanks to its onboard 3.3V regulator and level shifter.

Q: Is this module compatible with Arduino UNO and STM32?

Yes. The onboard 3.3V regulator and level shifter make it directly compatible with the Arduino UNO (5V) and STM32 (3.3V) without additional components.

Q: What is the purpose of the IR blocking filter?

The IR blocking filter minimizes the infrared component of ambient light, which would otherwise distort color readings. This makes the TCS34725 more accurate than sensors without IR filtering.

Q: Can I adjust the sensitivity?

Yes. The TCS34725 supports programmable gain (1x, 4x, 16x, 60x) and programmable integration time, allowing you to optimize for different lighting conditions.

Q: Can I purchase in bulk for a product development project?

Yes. This module is suitable for both individual users and business purchasing, including sorting machine manufacturers, RGB lighting integrators, and educational institutions.