![]() I added a couple more points during developmentĬolorSensorTCS34725 colorSensor(COLOR_SDA_PIN, COLOR_SCL_PIN) ĬtWaitTime(1000) // Slow down conversionĬtIntegrationTime(1000) // Library will limit to maximum possible time ![]() Conversion from RGB to a single color value (hue).A way to check for conversion done (There are two). ![]() Simple and fast way to read all RGBC values.Easy configuration, basically time settings are done in milliseconds not with a couple of constants.Do not use delay, but allows the sensor to work in the background.Can use any pins for communications, i.e.I have only seen the TCS34725 chip and has hard coded the 0x29 address. TCS34726: I2C address is 0x29, chip is for 3V operation with 1.8V communication.TCS34725: I2C address is 0x29, chip is for 3.3V operation.TCS34723: I2C address is 0x39, chip is for 3V operation with 1.8V communication.TCS34721: I2C address is 0x39, chip is for 3.3V operation.The chip exist in four different versions: Most modules has interface to 5V and some white LEDS to illuminate a surface. ![]() The chip is in a very small 6 pin package and is designed for 3.3V. The chip works in 2.4ms steps and for each step it can add a maximum of 1024 to the result, this means that the sample time must be 154ms before it can reach full range. The chip has four inputs and four counters for the sensors, the final results depends on the gain and the integration time in addition to the light on the sensor. The range matches the eyes range fairly well, but the eye do not split color the same way. The 3 color sensors only has a small overlap, the clear (white) sensor covers the full range. This is one module with the TCS34725 sensor and 3.3V to 5V conversion. My initial plan was to use the Adafruit library, but I had trouble with use non-I2C pins and it included a lot of delays, not what I want.Įstimating lux and color temperature (CT) This library includes all the functionality of the chip and the library do not include delays to wait for conversions, there are other ways to handle that. This is a 6 pin chip with filtered sensors for red, green, blue and white light, it has a huge dynamic range. Color Sensor TCS34725 Library Color Sensor TCS34725 library
0 Comments
Leave a Reply. |