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 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.
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.