# BME680 object instantiation error

**URL:** <https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323>\
**Category:** Raspberry Pi\
**Created:** [November 14, 2017, 3:01am UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323 "2017-11-14T03:01:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/baqwas/32/3326_2.png) [@baqwas](https://forums.pimoroni.com/u/baqwas)\
**Post date:** [November 14, 2017, 3:01am UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/1 "2017-11-14T03:01:43Z")

</div>

Hello,

Does the exception raised by the following statement imply that the BME680 module is **not** being detected:

`sensor = bme680.BME680()`

The import statement for the module bme680 ran without any error. I must have done a _hack_ job at soldering the pins to the BME680 board. I’m using BME680 connected to a working RPi0W through solderless headers. The pins are slotted correctly per documentation.

**gpio readall** reports the following:

BCM Name Mode V  
3.3v  
2 SDA.1 ALT0 1  
3 SCL.1 ALT0 1  
4 GPIO.7 IN (presumably unused)  
0v

Any guidance will be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [November 14, 2017, 11:20am UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/2 "2017-11-14T11:20:41Z")

</div>

Not necessarily, there are a couple of things the error could indicate, but I’d need to see the full error text to know which!

Namely:

- i2c not enabled on the Pi, so /dev/i2c\* is missing
- Failure to communicate with the BME680 due to a wiring issue

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/baqwas/32/3326_2.png) [@baqwas](https://forums.pimoroni.com/u/baqwas)\
**Post date:** [November 14, 2017, 3:08pm UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/3 "2017-11-14T15:08:31Z")

</div>

Here are two screen shots in response to your suggestions:

- RPi interfaces (as set on the RPi0W)  
 ![RPi interfaces](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/f/fe2464fff9651dc4545f3435f6fc86ee232e8db2.PNG)
- i2cdetect output
- board mount (apologies for the poor picture quality)

I’ve never uploaded pictures in this manner. If the uploads do not work, I’ll send a zip file later upon request.

Thanks again. Regards.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/baqwas/32/3326_2.png) [@baqwas](https://forums.pimoroni.com/u/baqwas)\
**Post date:** [November 14, 2017, 3:10pm UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/4 "2017-11-14T15:10:17Z")

</div>

Apologies for the multiple posts but I’m apparently limited to a single upload per post. So here is the i2cdetect output separately.

![i2cdetect](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/e/e6f4d1f2d8191f48d6b23cfb8e4f7a3329792c82.PNG)

I’ll skip the board mount picture (but the soldered joints look “satisfactory” based on amateur inspection).

Thanks.

---

<div class="post-metadata">

**Author:** ![baqwas](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/baqwas/32/3326_2.png) [@baqwas](https://forums.pimoroni.com/u/baqwas)\
**Post date:** [November 14, 2017, 3:31pm UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/5 "2017-11-14T15:31:28Z")

</div>

Sorry for the false alarm! I re-seated the board and voila!

![bme680 read-all](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/a/ad55aa9544fe708ac5c61607df1fb4e6c5f864c9.PNG)

I’m getting readings!! The “non-issue” is resolved. Thanks for your understanding and prompt assistance. Regards.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [November 14, 2017, 3:34pm UTC](https://forums.pimoroni.com/t/bme680-object-instantiation-error/6323/6 "2017-11-14T15:34:57Z")

</div>

No worries! And happy hacking!
