Adafruit_TSL2591_Library
Adafruit_TSL2591_Library copied to clipboard
This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
Adafruit_TSL2591::calculateLux function: It's dangerous in case ch0 is 0! In case it is 0 use the next greater number 1 for the formula, which should least falsify the calculated result.
The current algorithms produce a negative lux under certain conditions (especially low light). Current: lux1 = ( (float)ch0 - (TSL2591_LUX_COEFB * (float)ch1) ) / cpl; The fixed value of TSL2591_LUX_COEFB...
in low light situations, it is possible, that the ir photodiode returns a higher value than the fullspectrum photodiode. if that happens, the calculated result was a low negative number...
This Pull-Request adds a new way of configuration management to the Adafruit_TSL2561 core files. they enable a advanced & fast configuration setting. this functionality is used in the `slight_TSL2591AutoSensitivity` class....
let user decide if sensor should run continuously or only on interaction. (default: maintains old behavior = enable only on interaction) so for the new 'continuously on mode' you have...
With the current library and "tsl2591_interrupt.ino" example, the interrupt feature does not work. This is because in the library the device gets powered on and powered off in every function...
currently the library [blocks](https://github.com/adafruit/Adafruit_TSL2591_Library/blob/master/Adafruit_TSL2591.cpp#L316) on every reading of the sensor values: ``` uint32_t Adafruit_TSL2591::getFullLuminosity (void) { // .... // Wait x ms for ADC to complete for (uint8_t d=0; d
I tried somewhat correcting the sensor lux calculation for incandescent bulbs based on calculated values. I have mentioned the changes I did [here](https://github.com/am0032/TSL2591). Can someone give some feedback on this?
This allows users to write custom `getFullLuminosity` implementations. All other properties are already available. My use case was to write an alternative `getFullLuminosity`, that uses `vTaskDelay` instead of `delay` to...
I have an application where I need to keep the TSL2591 in sleep mode and as soon as a value out of range is detected, a hardware interrupt is triggered...