I have a problem with BME280 sensor. With the model labeled GY BME PM/280 I don't have any problem, but I can't get working GY BME P/280 model. Physically they are identical.
Both are connected via I2C to NodeMCU using pines 1 and 2 (checked via i2c_scanner and founded all models of sensors.). I'm using Adafruit BME280 library with Unified sensor.
Any suggestion ? I honestly tried a lot of possible solutions.
What kind of problem do you have? The sensor may be available at 0x77 or 0x76.
Also, see the following code to understand which sensor you actually have:
// default settings
status = bme.begin();
// You can also pass in a Wire library object like &Wire2
// status = bme.begin(0x76, &Wire2)
if (!status) {
Serial.println("Could not find a valid BME280 sensor, check wiring, address, sensor ID!");
Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16);
Serial.print(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n");
Serial.print(" ID of 0x56-0x58 represents a BMP 280,\n");
Serial.print(" ID of 0x60 represents a BME 280.\n");
Serial.print(" ID of 0x61 represents a BME 680.\n");
while (1) delay(10);
}
giuntajorge:
Hello guys,
I have a problem with BME280 sensor. With the model labeled GY BME PM/280 I don't have any problem, but I can't get working GY BME P/280 model. Physically they are identical.
Both are connected via I2C to NodeMCU using pines 1 and 2 (checked via i2c_scanner and founded all models of sensors.). I'm using Adafruit BME280 library with Unified sensor.
Any suggestion ? I honestly tried a lot of possible solutions.
alexsh1:
What kind of problem do you have? The sensor may be available at 0x77 or 0x76.
Also, see the following code to understand which sensor you actually have:
// default settings
status = bme.begin();
// You can also pass in a Wire library object like &Wire2
// status = bme.begin(0x76, &Wire2)
if (!status) {
Serial.println("Could not find a valid BME280 sensor, check wiring, address, sensor ID!");
Serial.print("SensorID was: 0x"); Serial.println(bme.sensorID(),16);
Serial.print(" ID of 0xFF probably means a bad address, a BMP 180 or BMP 085\n");
Serial.print(" ID of 0x56-0x58 represents a BMP 280,\n");
Serial.print(" ID of 0x60 represents a BME 280.\n");
Serial.print(" ID of 0x61 represents a BME 680.\n");
while (1) delay(10);
}
Thanks Alex, I tried your code recomendation and I get this.
> alexsh1:
> Could not find a valid BME280 sensor, check wiring, address, sensor ID!
> alexsh1:
> SensorID was: 0xFF
> alexsh1:
> ID of 0xFF probably means a bad address, a BMP 180 or BMP 085
> alexsh1:
> ID of 0x56-0x58 represents a BMP 280,
> alexsh1:
> ID of 0x60 represents a BME 280.
> alexsh1:
> ID of 0x61 represents a BME 680.
Seems like GY-BME280/P it's not a temperature and humidity sensor, only pressure and altitude, because the address it's fine. I use 0x76, it's showed by i2c_scanner.
Thanks for your kindless
The sensors are seemingly lablelled correctly albeit in a highly confusing and (probably intentionally) misleading fashion as you see so often in China. Buyer beware.
The /P version should have been much cheaper, as the BMP280 is much cheaper than the BME280, 1/4-1/2 the price or even more difference.