diff --git a/Wemos-D1-Mini.md b/Wemos-D1-Mini.md index e111c6fd..39f8bb98 100644 --- a/Wemos-D1-Mini.md +++ b/Wemos-D1-Mini.md @@ -197,4 +197,37 @@ In the Configuration -> Configure Module page, select the following: After reboot of the device the dark-bright slider and toggle button are displayed to control the led. - \ No newline at end of file + + +## 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](https://learn.adafruit.com/adafruit-veml6070-uv-light-sensor-breakout/overview) 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 | + +In the Configuration -> Configure Module page, select the following: +1. **Module Type : 18 Generic** +2. **D3 GPIO0 : 06 I2C SDA** +3. **D4 GPIO2 : 05 I2C SCL** + + + +After reboot of the device the displays the VEML6070 UV light intensity. + +