Wemos D1 Mini and VEML6070 UV Sensor - RTurala/Sonoff-Tasmota GitHub Wiki
VEML6070 UV Sensor (I2C)
"This little sensor is a great way to add UV light sensing to any microcontroller project. The VEML6070 from Vishay has a true UV A light sensor and an I2C-controlled ADC that will take readings and integrate them for you over ~60ms to 500ms." See VEML6070 UV Sensor for more information.
Note: before the VEML6070 can be used with Tasmota, make sure it's enabled. To enable it, remove the forward slashes before this line before you compile and upload tasmota to your Wemos device.
#define USE_VEML6070 // Add I2C code for VEML6070 sensor (+0k5 code)
Connecting the VEML6070 to a Wemos Mini D1
Wemos | VEML6070 |
---|---|
GND | GND |
3.3V | VCC |
D3 (gpio0) | SDA |
D4 (gpio2) | SCL |
Tasmota Configuration
In the Configuration -> Configure Module page, select the following:
- Module Type : 18 Generic
- D3 GPIO0 : 06 I2C SDA
- D4 GPIO2 : 05 I2C SCL
Tasmota Main
After reboot of the device the displays the VEML6070 UV light intensity.