Grove - I2C Color Sensor User Manual Release date: 2015/9/22 Version: Wiki:http://www.seeedstudio.com/wiki/index.php?title=Twig_-_I2C_C olor_Sensor_v0.9b Bazaar:http://www.seeedstudio.com/depot/Grove-I2C-Color-Sensor-p -854.html...
Page 2
Document Revision History Revision Date Author Description Sep 22, 2015 jiankai.li Create file...
Page 4
Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
Introduction This module is based on the color sensor TCS3414CS with digital output I2C. Based on the 8*2 array of filtered photodiodes and 16-bit analog-to-digital converters, you can measure the color chromaticity of ambient light or the color of objects. Of the 16 photodiodes, 4 have red filters, 4 have green filters, 4 have blue filters and 4 have no filter(clear).
Demonstration This module can be used to detect the color of light source or the color of objects. When used to detect the color of the light source, the led switch should be turned off, and the light source should shine the sensor directly. When used to detect the color of things, the led should be on and you should put the object on the top of the enclosure closely.
Grove products have a eco system and all have a same connector which can plug onto the Base Shield. Connect this module to the I2C port of Base Shield, however, you can also connect Grove - I2C Color Sensor to Arduino without Base Shield by jumper wires. Arduino UNO...
Serial.println(" )"); colorSensor.clearInterrupt(); Color Sensor Examples/Applications These example are going to show you how to use features of Grove - I2C Color Sensor. And via Chainable RGB LED Grove to display the detected color. Notice: If you haven't download Grove-Chainable RGB LED library to your Arduino IDE before, please download and set up the library first.
Page 10
ChainableLED leds(CLK_PIN, DATA_PIN, NUM_LEDS); void setup() Serial.begin(9600); Wire.begin(); void loop() int red, green, blue; GroveColorSensor colorSensor; colorSensor.ledStatus = 1; // When turn on the color sensor LED, ledStatus = 1; When turn off the color sensor LED, ledStatus = 0. while(1) colorSensor.readRGB(&red, &green, &blue);...
Other Reference This module is based on the color sensor TCS3414CS. The TCS3414CS digital color sensor 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).
Page 14
Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Seeed Studio 101020041...
Need help?
Do you have a question about the Grove - I2C and is the answer not in the manual?
Questions and answers