-->
Page 5 of 8

Re: Connect BME280 sensor to NodeMCU or WeMos D1 via I2C ?

PostPosted: Fri Feb 19, 2016 4:30 am
by Garak
What voltage do you have connected to the BME280? Is it the adafruit breakout board? If so the Vin pin needs something like 5V as its regulated down to 3.3v. If your trying to power it with 3.3v you might be able to back feed it through the 3vo pin but I haven't looked at the schematic to confirm that.

Re: Connect BME280 sensor to NodeMCU or WeMos D1 via I2C ?

PostPosted: Fri Feb 19, 2016 11:59 am
by reaper7
@Gawan
Try my template library based on Adafruit BME280 lib + astuder template lib for BMP085 + my addition for altitude and relative pressure.
Included example configured for Your hardware (sda=0 and scl=2)
(3.85 KiB) Downloaded 1931 times


Serial output:
Code: Select allTemperature: 23.45C
Humidity:    29.55%
Pressure:    1000.09hPa
RelPress:    1018.06hPa
Altitude:    149.99m


My BME280 module look like this:
http://www.aliexpress.com/item/J34-Free-Shipping-Digital-Temperature-Humidity-Barometric-Pressure-Sensor-Module-Breakout-BME280/32499331827.html

Tested on supply voltage 3.3V and 5V without any additional pullup resistors on sda/scl

Re: Connect BME280 sensor to NodeMCU or WeMos D1 via I2C ?

PostPosted: Sun Feb 21, 2016 6:48 am
by Gawan
thanks a lot for your code reaper
it works perfectly fine ! :D :D

Re: Connect BME280 sensor to NodeMCU or WeMos D1 via I2C ?

PostPosted: Sun Feb 21, 2016 10:46 am
by reaper7
nice to hear :)