BME680 warning code : 2

Hello

 

I'm trying to use BSEC-Arduino-library for BME680 on ESP32 using the I2C interface. I installed bsec v1.8.9 lib on my Arduino IDE v1.8.11. I was able to compile the "basic" sample project and run it successfully on my esp32 dev-kit. However, I don't get any valid measurement value; instead, it continuously prints "BME680 warning code :2" on the serial. 

I did add a 5sec delay in the main loop but didn't help. It seems I2C interface is working though, as I get Ack signal from the sensor chip (logic analyzer).

 

Any idea what could be wrong? 

 

Thanks in advance

Best reply by sinameshksar

Hi 

An update on this issue, It turned out that it was a power supply! I was using the 3.3V pin on the ESP32 dev board to power the sensor. Once I switched to external power supply all of a sudden the sensor started working. I probed the esp 3.3v and to me, it was a clean voltage with no obvious fluctuation so I don't know exactly what was wrong especially the fact that the I2C interface Ack the packets. But it works now. Thanks 

View original
7 replies
Resolved