-->

Color Sensor RGB Unit (TCS3472)

SKU:U009

Regular price $4.95

Out Of Stock

Standard Shipping Estimated Delivery Time: 7-20 days
Description

COLOR is color recognition unit integrated TCS3472. Like its namesake, COLOR is able to detect color value and return RGB data to the host.

Identify color principle:

In the TCS3472, a 3*4 array of filtered photodiodes and a 16 bit analog-to-digital converters are embedded. Of the 12 photodiodes, 3 have red filters, 3 have green filters, 3 have blue filters and 3 have no filter(clear).

When detecting the color of an object, TCS3472 returns data from four channels: red(R), green(G), blue(B) and clear(C)(non-filtered). The response from the red, green and blue channels (RGB) can be used to determine a particular source’s chromaticity coordinates (x, y).

Chromaticity Calculation Process Overview:

When we get coordinates (x, y), please reference the below figure so as to get the recommended color.

This Unit communicates with the M5Core via the GROVE A interface(I2C). Address is 0x29.

Product Features

  • Detection range: -40℃~85℃
  • GROVE interface, support UIFlow and Arduino
  • Two Lego-compatible holes
  • Product Size:32.2mm x 24.2mm x 8.2mm
  • Product weight:3.9g

Kit includes

  • 1x COLOR Unit
  • 1x Grove Cable

Application

  • Product Color Verification
  • Color tracking robot
Documents
Learn

Example

Arduino IDE

The code below is incomplete. To get the complete code, please click here.

/*
  Color test
    hardware: M5Stack

  please install the Adfruit TCS34725 library first ...
*/
#include <Wire.h>
#include <M5Stack.h>
#include "Adafruit_TCS34725.h"

// declaration
uint16_t clear, red, green, blue;
#define commonAnode true // set to false if using a common cathode LED

// new a object
Adafruit_TCS34725 tcs;
tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS,TCS34725_GAIN_4X);

// initialization
M5.begin(true, false, false);
tcs.begin();
tcs.setIntegrationTime(TCS34725_INTEGRATIONTIME_154MS);
tcs.setGain(TCS34725_GAIN_4X);

// read data
tcs.getRawData(&red, &green, &blue, &clear);

After burnt this example, PC serial terminal will print original value RGBC(red, green, blue, clear).

 

More informaiton

Schematic

PinMap

M5Core(GROVE A) GPIO22 GPIO21 5V GND
COLOR Unit SCL SDA 5V GND

Customer Reviews

Based on 15 reviews
100%
(15)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
S
S.J.

Compliant product, fast shipping.

J
J.B.

Color Sensor RGB TCS34725 Unit

D
D.H.

Color Sensor RGB TCS34725 Unit

N
N.S.

Color Sensor RGB TCS34725 Unit

P
P.M.

Very professional looking! Good mail tracking.