From 4b48564bf29538d0f6d7a60c4365b8120091c339 Mon Sep 17 00:00:00 2001 From: Raymond Mouthaan Date: Sun, 22 Apr 2018 16:04:33 +0200 Subject: [PATCH] bme280 added --- Wemos-D1-Mini.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Wemos-D1-Mini.md b/Wemos-D1-Mini.md index 1c6ae554..0fb46c06 100644 --- a/Wemos-D1-Mini.md +++ b/Wemos-D1-Mini.md @@ -232,6 +232,39 @@ After reboot of the device the displays the VEML6070 UV light intensity. +## BME280 Temperature, Humidity and Pressure Sensor (I2C) + + + + +"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** + + + +After reboot of the device the displays temperature, humidity and pressure measured by the BME280. + + + ## HC-SR04 Ultrasonic Sensor