mirror of https://github.com/arendst/Tasmota.git
Updated Wemos D1 Mini (markdown)
parent
b058febc90
commit
8d597e7cef
|
@ -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.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2812b_main_marked.jpg"/>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2812b_main_marked.jpg"/>
|
||||
|
||||
## VEML6070 UV Sensor (I2C)
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/veml6070-adafruit-uv-sensor.jpg" align=right width=225>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/veml6070-uv-sensor.jpg" align=right width=225>
|
||||
|
||||
"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**
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_veml6070_config_marked.jpg" width=300>
|
||||
|
||||
After reboot of the device the displays the VEML6070 UV light intensity.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_veml6070_main_marked.jpg" width=300>
|
||||
|
|
Loading…
Reference in New Issue