TCS34725 I2C Color Sensor For Arduino SKU SEN0212
Part | Datasheet |
---|---|
![]() |
SEN0212 (pdf) |
PDF Datasheet Preview |
---|
TCS34725 I2C Color Sensor For Arduino SKU SEN0212 Introduction The TCS34725 has a high sensitivity, wide dynamic range, and includes an IR blocking filter making it an ideal color sensing solution for use under varied lighting conditions. The sensor also includes four ultra-bright LEDs to allow the sensor to work without external light resources. The module works via your Arduino’s I2C bus and includes PH2.0-4P and XH2.54 breadboard interfaces to meet a range of user scenarios. Specification • Operating Voltage 3.3~5V • Operating Current 65 uA • Detection Range 3-10 mm • The Clock Frequency 0-400 KHZ • Interface IIC interface • IIC Address 0x29 • Temperature Range - 30 ~ + 70 • Feet inches * 23 mm/ * inches • Weight 12 g Board Overview Num 1 Label SDA 2 SCL 3 VCC 4 GND 5 LED 6 INT Description I2C-SDA I2C-SCL 3.3~5V GND Active-High/Vacant On Active Low Note: I2C address 0x29 XH2.54 interface BreadBoard Compatible need soldering. The paper of the blocking filter could be teared out. Tutorial In this tutorial, we'll detect the specimen RGB value, and simulate it with RGB LEDs Requirements • Hardware DFRduino UNO or similar x 1 RGB LED Module M-M/F-M/F-F Jumper wires • Software Arduino IDE Version requirements V1.6.x , Click to Download Arduino IDE from Note The sensor should be placed above the specimen, 3 ~ 10 mm Connection Diagram TCS34725 I2C Color Sensor For Arduino Sample Code Install the Arduino Library Download here How to install Libraries in Arduino IDE 1 /*! 2 * colorview.ino 3 * DFRobot's Color Sensor 4 * [Get the module here] 5 * This example read current R,G,B,C value by the IIC bus 6 * [Connection and %84%9F%E5%99%A8 7* 8 * 2016 9 * GNU Lesser General Public License 10 * 11 * 12 * V1.0 13 * 2016-07-12 14 */ 15 #include <Wire.h> 16 #include "DFRobot_TCS34725.h" 17 18 // Pick analog outputs, for the UNO these three work well 19 // use ~560 ohm resistor between Red & Blue, ~1K for green its bri ghter 20 #define redpin 3 21 #define greenpin 5 22 #define bluepin 6 23 // for a common anode LED, connect the common pin to +5V 24 // for common cathode, connect the common to ground 25 26 // set to false if using a common cathode LED 27 #define commonAnode true 29 // our RGB -> eye-recognized gamma color 30 byte gammatable[256]; 32 DFRobot_TCS34725 tcs = S, TCS34725_GAIN_4X ; 33 void setup 34 Serial.begin 115200 ; 35 Serial.println "Color View Test!" ; 37 if tcs.begin Serial.println "Found sensor" ; 39 else Serial.println "No TCS34725 found check your connections" ; while 1 // halt! 43 // use these three pins to drive an LED |
More datasheets: FDW262P | 5530222400F | CHF11050CBF500L | PI74ALVCH162244AE | PI74ALVCH162244VE | ACT518SH-T | DMG8880LSS-13 | 412JHHU | 240-025 | EBWT21 |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived SEN0212 Datasheet file may be downloaded here without warranties.