Installing BME680

I purchased a BME680 module from Sparkfun. I installed it on a breadboard and connected a clone Arduino UNO. The red LED on the board is on so I assume that it has power (+3.3V). When I use pins D18(STA) and D19(SCL) I get

“23:1:26.198 → Starting I2CDemo example program for BME680

23:1:26.203 → - Initializing BME680 sensor

23:1:26.206 → “ and no further activity.

If I use pins D9 and D10 I get

“23:26:53.951 → Starting I2CDemo example program for BME680

23:26:53.955 → - Initializing BME680 sensor

23:26:53.958 → - Unable to find BME680. Trying again in 5 seconds.

23:26:53.961 → - Unable to find BME680. Trying again in 5 seconds.

23:26:58.997 → - Unable to find BME680. Trying again in 5 seconds.”

This continues every 5 seconds.

The program is I2CDemo.

The library by SV Zanishin ver 1,10 - in the Arduino Library Manager,

Is it necessary to have the STA and SCL lines held high - I did not do this as I assumed it was done on the board.

I would appreciate any help.

A photo of your setup would be helpful.

I believe for I2C, you need to have the BME680’s GND, 3v3, SDA, & SCL wired to the corresponding GND, 3.3V, SDA, & SCL pins on the UNO. Did you solder headers or wires onto the BME680?

I am not sure what you mean by using pins D9 and D10. If you connected some of the above mentioned pins from the BME680 to the UNO’s D9 and D10, that is not going to work.

There is a message that appears briefly just before the program begins :

“Not connected: Select a board and a port to connect automatically.”

Does this mean that the wiring is wrong or possibly something else?

Does the library nominate which pins are for SDA and SCL?

SDA and SCL are determined in hardware, you can’t set them in software.

For Uno boards, they are on A4 and A5.

https://www.electronicwings.com/arduino/arduino-i2c

Thanks I tried A4(SDA) and A5(SCL). It still does not work. I got:

"21:53:54.029 → Starting I2CDemo example program for BME680

21:53:54.034 → - Initializing BME680 sensor

21:53:54.037 ->"

I’ve assumed the pull-up resistors were on the board. Do you know whether they are?

The SDA/SDI and SCL/SCK pins are pulled to VDDIO (3.3V) through a pair of 4.7k Ohm resistors.

I just saw this thread - is the problem solved or are you still having issues? With I2C problems, I always start with the I2C Scanner included with the IDE. If that locates the BME680 on the I2C pins SDA and SCL then the issue is probably in the library.