The TCS34725 RGB Color Sensor Module is a high-performance color recognition module designed for precise color measurement in a wide range of applications. Featuring an integrated IR blocking filter, it provides accurate RGB and ambient light sensing. With I2C communication, it’s compatible with Arduino, STM32, and other development platforms, making it a versatile tool for DIY electronics projects.
Features:
High-Precision Color Detection: Measures RGB values and ambient light with excellent accuracy.
Integrated IR Blocking Filter: Ensures accurate color measurement by eliminating IR interference.
Wide Compatibility: Works seamlessly with Arduino, STM32, and other microcontroller platforms.
I2C Interface: Easy integration with two-wire communication for efficient data transfer.
Compact Design: Lightweight and space-saving, perfect for embedded projects.
Wide Applications: Ideal for robotics, display calibration, color sorting, and light-sensitive projects.
Pin Connections Table 1
Board Sensor Pin Connection TCS34725 VCC/GND/SDA/SCL 3.3V / GND / board SDA / board SCL
TCS34725 RGB Color Sensor Module - Arduino Uno
TCS34725 RGB Color Sensor Module - Arduino Nano
TCS34725 RGB Color Sensor Module - Arduino Mega
TCS34725 RGB Color Sensor Module - ESP32
TCS34725 RGB Color Sensor Module - ESP8266
TCS34725 RGB Color Sensor Module - STM32
TCS34725 RGB Color Sensor Module - Raspberry Pi Pico
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Uno: A4=SDA, A5=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Nano: A4=SDA, A5=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Mega: D20=SDA, D21=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for ESP32: GPIO21=SDA, GPIO22=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for ESP8266: D2=SDA, D1=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for STM32: PB7=SDA, PB6=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Raspberry Pi Pico: GPIO4=SDA, GPIO5=SCL
6 #include <Wire.h>
7 #include "Adafruit_TCS34725.h"
8
9 Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!tcs.begin()) {
15 Serial.println ("TCS34725 not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 uint16_t r, g, b, c;
22 tcs.getRawData(&r, &g, &b, &c);
23
24 Serial.print ("R:"); Serial.print (r);
25 Serial.print (" G:"); Serial.print (g);
26 Serial.print (" B:"); Serial.print (b);
27 Serial.print (" Clear:"); Serial.println (c);
28
29 delay (200 );
30 }
Project Notes: I2C RGB + clear light color sensor - much simpler wiring than the frequency-output TCS230/3200 family.
نظرة عامة ومواصفات المنتج — بالعربية TCS34725 RGB Color Sensor Module متوفر الآن في متجر إكوسترا للإلكترونيات، ضمن قسم Light/Color Sensor وSensors، بسعر 250,00 EGP. كود المنتج لدينا: EK1731. المنتج غير متوفر حالياً — تواصل معنا عبر واتساب لمعرفة موعد توفره القادم.
أهم المواصفات الفنية:
Sensor Type: RGB Color Sensor with IR Filterالموديل: TCS34725Operating Voltage: 3.3V – 5V DCCommunication Interface: I2C (SDA, SCL)Resolution: 16-bit ADC per channelSensitivity: Red, Green, Blue, Clear ChannelsIr Filter: Integrated to reduce IR interferenceLight Source: White LED for illuminationهذا المنتج مناسب لمشاريع الأردوينو (Arduino) و ESP32 و Raspberry Pi، ومشاريع الروبوتات وإنترنت الأشياء والتعليم الهندسي. جميع القطع مفحوصة قبل الشحن.
تصفّح المزيد من Light/Color Sensor في إكوسترا.