Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By chbla
#76595 Hi there,

I want to use a BME280 on a Wemos D1 Mini, but somehow can't get it to work.
I've used the BME280 on various arduinos before using the Adafruit lib, but no idea why it isn't working
with the Wemos.

Here is my code:

https://gist.github.com/solars/1bebe10d ... 3ea60aa6a6

The output is:

Code: Select allConnecting to casablanca
.
WiFi connected
Could not find a valid BME280 sensor, check wiring!

Soft WDT reset

ctx: cont
sp: 3ffefb10 end: 3ffefd00 offset: 01b0

>>>stack>>>
3ffefcc0:  3ffe84e0 3ffeea6a 3ffeecac 402025a4 
3ffefcd0:  feefeffe feefeffe feefeffe 3ffeecd8 
3ffefce0:  3fffdad0 00000000 3ffeecd0 40204e3c 
3ffefcf0:  feefeffe feefeffe 3ffeece0 40100710 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset


The pins I use are SDA -> D2, SCL -> D1

Can anyone help me?
User avatar
By torntrousers
#76599 That does work on the ESP so its probably just some set up problem. Some BME280's have different I2C addresses, i think by default the Adafruit library uses address 0x77 but some BME280's use 0x76, try the I2C scanner finds - https://playground.arduino.cc/Main/I2cScanner - or just try it - bme.begin(0x76).