OPEnSLab-OSU / Loom-V4

Open Source Internet Of Things Rapid Prototyping Framework For Environmental Sensing Applications
12 stars 1 forks source link

Auto Gain and Integration Time for TSL2591 #131

Closed WL-Richards closed 7 months ago

WL-Richards commented 9 months ago

Is your feature request related to a problem? Please describe. We want to automatically adjust the gain and integration values so we always get good values

Here is an example of the VEML utilizing a similar solution https://github.com/OPEnSLab-OSU/Lilypad/tree/main/Code/Adafruit_VEML7700_Library_Altered Refer to the autoLux method for the implementation

ZakaryW commented 8 months ago

I created some good foundational code for this, hopefully it helps. On tsl-auto-gain branch.

ZakaryW commented 8 months ago

^ This should ideally be a solid solution, but it should be tested and compared against our expectations.

ZakaryW commented 7 months ago

We have decided to abandon the TSL implementation in favor of just using veml instead, as it makes more sense.

WL-Richards commented 7 months ago

The TSL2591 reports 0 when the sensor is likely supposed to be reading max value (this is assumed because the battery voltage jumps up at the same time, likely showing that the device is switching over to complete power off the solar charger)