Hello
I have a bme280 sensor and the hell I can't get it to cooperate.
It is connected to nodemcu v3.
I do not know what's going on. I have 2 BME280 sensors and another 2 BMP280 and I have no reading of any of them.
Other elements are rather ok, because I have a complex particulate matter sensor (PMS5003 + NodeMCU + DHT22 + LCD2x16) and everything works.
The connection looks like this:
BME - NodeMCU
---------------------
VCC - 3.3V
GND - GND
SCL - D1
SDA - D2
Program code
-------------------------
I also tried to connect the sensor to 3.3V on the Arduino Uno and also sneezes.
What could be wrong?
I have a bme280 sensor and the hell I can't get it to cooperate.
It is connected to nodemcu v3.
I do not know what's going on. I have 2 BME280 sensors and another 2 BMP280 and I have no reading of any of them.
Other elements are rather ok, because I have a complex particulate matter sensor (PMS5003 + NodeMCU + DHT22 + LCD2x16) and everything works.
The connection looks like this:
BME - NodeMCU
---------------------
VCC - 3.3V
GND - GND
SCL - D1
SDA - D2
Program code
-------------------------
#include
#include
#include
#include
#include
Adafruit_BME280 bme;
void setup() {
Serial.begin(9600);
Wire.begin(D1, D2);
Wire.setClock(100000);
}
void loop() {
if (bme.begin()) {
Serial.println("OK");
}
else {
Serial.println("DUPA");
}
delay (2000);
}
I also tried to connect the sensor to 3.3V on the Arduino Uno and also sneezes.
What could be wrong?