Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

BME688 could not be found despite appearing on I2C scanner.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BME688 could not be found despite appearing on I2C scanner.

by Stealthbird97 on Thu Oct 28, 2021 2:34 pm

Hi,

I have connected my BME688 to an ESP32 using I2C.

The I2C scanner correctly detected the BME688 however when trying to use the Adafruit BME680 library example sketch "bme680test", it does not "find" the sensor and fails at the first step.
"Could not find a valid BME680 sensor, check wiring!".

Clearly it is connected correctly, if it shows up with the I2C scanner sketch. I have no idea what to do.
Any ideas?
I'm using the latest version of the library 2.0.1.

Thanks.

Stealthbird97
 
Posts: 10
Joined: Thu Dec 25, 2014 5:39 pm

Re: BME688 could not be found despite appearing on I2C scann

by adafruit_support_carter on Thu Oct 28, 2021 2:44 pm

What version of the Adafruit BME680 Library are you using?

Also, what version of the ESP32 Arduino Board Support Package?

adafruit_support_carter
 
Posts: 21889
Joined: Tue Nov 29, 2016 2:45 pm

Re: BME688 could not be found despite appearing on I2C scann

by Stealthbird97 on Thu Oct 28, 2021 2:55 pm

Hi
Thanks for the quick response.

BME680 library version: 2.0.1.
ESP32 version 1.0.6.

So I have just carefully reread the https://learn.adafruit.com/adafruit-bme ... iring-test page and read the following
"By default, the i2c address is 0x77. If you add a jumper from SDO to GND, the address will change to 0x76."

For some reason my i2c address is 0x76 (though I am not using any jumper).
I have modified the sketch to use 0x76. <-- This step is absent in the instructions it seems and requires you to look at the API reference to figure out how to do it. Maybe worth adding..
Code: Select all | TOGGLE FULL SIZE
 if (!bme.begin(0x76)) {
    Serial.println(F("Could not find a valid BME680 sensor, check wiring!"));
    while (1);
  }


It now works.

Stealthbird97
 
Posts: 10
Joined: Thu Dec 25, 2014 5:39 pm

Re: BME688 could not be found despite appearing on I2C scann

by adafruit_support_carter on Thu Oct 28, 2021 3:20 pm

For some reason my i2c address is 0x76 (though I am not using any jumper).

Also not sure what could cause that. Could it be accidentally shorted somehow? That's the address that shows up in the scan as well?

adafruit_support_carter
 
Posts: 21889
Joined: Tue Nov 29, 2016 2:45 pm

Re: BME688 could not be found despite appearing on I2C scann

by Stealthbird97 on Thu Oct 28, 2021 3:40 pm

Yes. This is what shows up in the scan.

Stealthbird97
 
Posts: 10
Joined: Thu Dec 25, 2014 5:39 pm

Re: BME688 could not be found despite appearing on I2C scann

by adafruit_support_carter on Thu Oct 28, 2021 3:44 pm

OK, if it continues to work, then guess all good. But the fact the breakout isn't showing up at the expected default address is a little concerning. If you run into other issues, post back here and we'll continue.

adafruit_support_carter
 
Posts: 21889
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.