TLS2591 is high sensitive light to digital converter that transform light intensity into digital signal output that has integrated i2C interface on chip. The TLS2591 combines one infrared-responding photodiode on a single CMOS integrated circuit that has two integrating ADC that convert the photodiode currents into digital output that represents the irradiance measured on each channel. The digital output can be input to a microcontroller / microprocessor where illuminance (Ambient Light Level) in LUX is derived using an empirical formula to approximate the human eye response. TSL2591 supports a traditional level style interrupt that remains asserted until the firmware clears it.
TLS2591 also support an INT (Interrupt) that simplifies and improves system efficiency by eliminating the need to poll a sensor for the value of light intensity. The interrupt purpose is to detect a meaningful change in light intensity. The concept of a meaningful change can be defined by the user both in terms of light intensity and time, or persistence of the changes in intensity. This device has also define two sets of threshold both above and below the current light level. The interrupt is generated when the value of conversion exceeds. 1 set of threshold can be change to trigger an interrupt only when the ambient light exceeds them for a specific about of time while the other set can be change to trigger an immediate interrupt.
Step 1: Wiring Guide
Arduino Microcontroller , Teensy MCU (TeensyDuino Integrated), ESP8266 (ESP8266 Arduino IDE Integration), AVR, STM32TLS 2591 IC / TLS2591 ModuleSolder Less Bread BoardJumper Wire
Step 2: Downloads / Source Code / Datasheet
Source Code & Libraries Can be Found here
Download TLS2591 Datasheet | PDF
Download TLS2591 Code Library | Zip