VEML7700 Ambient light sensor~
This feature is not included in precompiled binaries
To use it you must compile your build. Add the following to user_config_override.h:
#ifndef USE_VEML7700
#define USE_VEML7700 // Add I2C code for VEML7700 sensor
#endif
VEML7700 is a high accuracy ambient light digital 16-bitresolution sensor in a miniature transparent 6.8 mm x2.35 mm x 3.0 mm package. It includes a high sensitivephoto diode, a low noise amplifier, a 16-bit A/D converterand supports an easy to use I2C bus communicationinterface.The ambient light result is as digital value available.
Configuration~
Wiring~
| VEML7700 | ESP8266 |
|---|---|
| GND | GND |
| VCC | 3.3V |
| SDA | GPIOx |
| SCL | GPIOy |
Tasmota Settings~
In the Configuration -> Configure Module page assign:
- GPIOx to
I2C SDA (6) - GPIOy to
I2C SCL (5)
Commands and Use~
| Console Commands | Description | values |
|---|---|---|
| VEML7700power | Power on/off the modul | 0/1 |
| VEML7700inttime | integration time in ms | 25, 50, 100, 200, 400, 800 |
| VEML7700gain | Gain Setting (x1, x2, x1/8, x1/4) | 0 = x1 1 = x2 2 = x1/8 3 = x1/4 |
| VEML7700persist | ALS persistence protect number setting | 0 = 1 1 = 2 2 = 4 3 = 8 |
With gain 1/8 and inttime 25 the Sensor goes up to 120.000 Lux if someone needed.
Tasmota Main~
After a reboot the driver will detect VEML7700 automatically and display light intensity.
Breakout Boards~
