Adafruit_TCS34725 icon indicating copy to clipboard operation
Adafruit_TCS34725 copied to clipboard

Lux calculation differs from sensor documentation

Open adolfintel opened this issue 3 years ago • 0 comments

This library calculates lux with just this formula: https://github.com/adafruit/Adafruit_TCS34725/blob/6dc42834bd071aeb94bdddff7e17cb662de20ad2/Adafruit_TCS34725.cpp#L513

The sensor documentation here, in section 3.2 shows that an additional step is required to calculate the lux value: the calculated value needs to be divided by INTEGRATION_TIME_MS*SENSOR_GAIN/DGF, where DGF for this sensor is 310 assuming there is no glass in front of if (see appendix 1).

Is there a reason why the lux calculation was implemented this way?

Thanks

adolfintel avatar Jan 05 '21 20:01 adolfintel