TCS34725 Color Sensor RGB Color Detect Color Sensing Recognition Switch Module Color Unit GROVE I2C for Arduino
- Detection ran ge: -40℃~85℃
- GROVE interface, support UIFlow: http://flow.m5stack.com/ and for
- 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: https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w
Forum: http://forum.m5stack.com/
Datasheet - TCS3472
EasyLoader
Contact Sales
Your Name* | |
Your Email* | |
Topic* | |
Qty | |
Message | |
SUBMIT |
- Description
This Unit communicates with the M5Core via the GROVE A interface(I2C). Address is 0x29.
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.
: https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Unit/EasyLoader_Color.exe
1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial: https://docs.m5stack.com/#/en/related_documents/establish_serial_connection
Example:
1. IDEThe code below is incomplete. To get the complete code, please click here: https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/COLOR/.
/* 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).
Schematic:
- Reviews (29)
- All(29)
- Download
- Q & A
-
: Where is the origin of Elecbee products? Are they certificated?2023-03-03
-
Answer:
Elecbee has long-term cooperation agreements with the OEM factories in China. So that we are able to reduce the intermediate channel cost, and help you save money. Our products are all made strictly according to the relative global standard, to ensure the products have good compatibility and excellent quality.
2023-03-03
-
: What forms of payment do you accept?2023-03-03
-
Answer:
Our main payment methods include Paypal, Credit Cards, Debit Cards, Bank Transfer, and more to discover. Please choose the payment methods in your favor.
2023-03-03
-
: When will you arrange shipment?2023-03-03
-
Answer:
After confirming receipt of your payment. We will arrange the delivery as soon as possible and upload the courier number to the website for you to track.
2023-03-03
-
: How to exchange or return?2023-03-03
-
Answer:
1. You can apply to return within 30 days after receipt of the goods. Please make sure the outside package is intact, and the product is in its original condition. We will arrange your refund according to the relevant provisions once the package is received.
2. Return process: You Apply for a Return - Approve the Return - Arrange a Return - Receive the Products and make Inspection - We arrange a Refund;
3. We will bear the freight charges for returns caused by us, for instance, the quality problem. As to returns caused by the buyer, the buyer should be responsible for the shipping fee.
2023-03-03
Related Products
MH-Z19B Upgrade Version 0-5000PPM Infrared CO2 Sensor For CO2 Indoor Air Quality Monitor UART/PWM
Description: Product Model: MH-Z19B (please note that this item is not winsen brand.)Color: Gol..
3pcs MQ-7 Carbon Monoxide CO Gas Sensor Module Analog and Digital Output for Arduino
null Package includes: 3 x MQ-7 Carbon Monoxide Sensor ..
-1220 ADS1220 ADC I2C Low Power 24 Bit A/D Converter Sensor Module
1 x CJMCU-1220..
Ultrasonic Transducers Sensor Module HCSR04-for MicroPython Programming Learning Development Board
Overview: The ultrasonic sensor adapter board cooperates with the C-SR04 ultrasonic sensor module. T..