bme280 added

Raymond Mouthaan 2018-04-22 16:04:33 +02:00
parent 1e0f83868d
commit 4b48564bf2
1 changed files with 33 additions and 0 deletions

@ -232,6 +232,39 @@ 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>
## BME280 Temperature, Humidity and Pressure Sensor (I2C)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme280-adafruit-thp-sensor.jpg" align=right width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme280-thp-sensor.png" align=right width=225>
"BME280 sensor, an environmental sensor with temperature, barometric pressure and humidity" See [BME280 Temperature, Humidity and Pressure Sensor](https://www.adafruit.com/product/2652) for more information.
_Note: before the BME280 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_BMP // Add I2C code for BMP085/BMP180/BMP280/BME280 sensor (+4k code)
```
Connecting the BME280 to a Wemos Mini D1.
| Wemos | BME280 |
|---|---|
|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_bme280_config_marked.jpg" width=300>
After reboot of the device the displays temperature, humidity and pressure measured by the BME280.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_bme280_main_marked.jpg" width=300>
## HC-SR04 Ultrasonic Sensor
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/hc-sr04-ultrasonic-sensor-blue.jpg" align=right width=225>