Skip to content

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

VEML7700 is a high accuracy ambient light digital 16-bit resolution sensor in a miniature transparent 6.8 mm x 2.35 mm x 3.0 mm package. It includes a high sensitive photo diode, a low noise amplifier, a 16-bit A/D converter and supports an easy to use I2C bus communication interface. The ambient light result is available as digital value.



VEML7700 ESP8266
VCC 3.3V

Tasmota Settings~

In the Configuration -> Configure Module page assign:

  1. GPIOx to I2C SDA (6)
  2. GPIOy to I2C SCL (5)

Commands and Use~

Console Commands Description values
VEML7700power Power on/off the module 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 needs it.

Tasmota Main~

After a reboot the driver will detect VEML7700 automatically and display light intensity.

Breakout Boards~