Using BME280 with NodeMCU Esp8266
Posted: Thu Dec 15, 2016 2:57 pm
I try to connect a BME280 sensor to my NodeMCU.
I'm using this library and example sketch: https://github.com/adafruit/Adafruit_BME280_Library
I'm not able to recieve data. The error message:
I try to connect by SCL and SDA.
Where do I need to connect the SCL and SDA connections? On what pins?
Or is there somewhere an example sketch to test?
I'm used to use the old BMP180. In that sketch I can define the SCL and SDA pins
by using:
The code dislayed by theBME280 connected to NodeMCU on pins GPIO4 and GPIO5:
chksum is 0x42 (no connection found)
It should be 0x77 or 0x76
I'm using this library and example sketch: https://github.com/adafruit/Adafruit_BME280_Library
I'm not able to recieve data. The error message:
Could not find a valid BME280 sensor, check wiring!appeares.
I try to connect by SCL and SDA.
Where do I need to connect the SCL and SDA connections? On what pins?
Or is there somewhere an example sketch to test?
I'm used to use the old BMP180. In that sketch I can define the SCL and SDA pins
by using:
Code: Select all
#define SDAPIN 04
#define SCLPIN 05
void setup() {
Serial.begin(115200);
Wire.begin(SDAPIN, SCLPIN); //sda, scl
Wire.begin();
The code dislayed by theBME280 connected to NodeMCU on pins GPIO4 and GPIO5:
Code: Select all
ctx: cont
sp: 3ffe9d50 end: 3ffe9f20 offset: 01b0
>>>stack>>>
3ffe9f00: 00000000 00000000 3ffe9f44 40201133
3ffe9f10: 00000000 00000000 3ffe8f00 40100118
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
BME280 test
Could not find a valid BME280 sensor, check wiring!
chksum is 0x42 (no connection found)
It should be 0x77 or 0x76