M5Stack® TCS34725 Color Sensor RGB Color Detect Color Sensing Recognition Switch Module Color Unit GROVE I2C Compatible

M5Stack® TCS34725 Color Sensor RGB Color Detect Color Sensing Recognition Switch Module Color Unit GROVE I2C Compatible
Eachine1
sku: 1496796
ACCORDING TO OUR RECORDS THIS PRODUCT IS NOT AVAILABLE NOW
$7.39
Shipping from: China
   Description
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 ran ge: -40~85 GROVE interface, support UIFlow and for Arduino Two Le go-compatible holes Product Size: 32.2mm x 24.2mm x 8.2mm Product weight: 3.9g Package Included: 1x COLOR Unit 1x Grove Cable Application: Product Color Verification Color tracking robot Related Link: Offical Video Forum Datasheet - TCS3472 EasyLoader click to download EasyLoader #include #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;);Copy to clipboardErrorCopied After burnt this example, PC serial terminal will print original value RGBC(red, green, blue, clear). Schematic: PinMap: M5Core(GROVE A) GPIO22 GPIO21 5V GND COLOR Unit SCL SDA 5V GND
   Price history chart & currency exchange rate

Customers also viewed