Adafruit BME680, wrong temperature fixed on 33.1 C

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_carter
 
Posts: 29156
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit BME680, wrong temperature fixed on 33.1 C

Post by adafruit_support_carter »

FWIW - I ran a test with an UNO/Arduino set up. Added info here:
https://github.com/adafruit/Adafruit_Ci ... /issues/11

User avatar
vkirienko
 
Posts: 1
Joined: Wed Oct 31, 2018 5:45 am

Re: Adafruit BME680, wrong temperature fixed on 33.1 C

Post by vkirienko »

I have exactly the same issue and behavior with my BME680. Gas reading works for short period of time and then stuck at constant level. Interesting thing that this constant level can be different after each Raspberry reboot.

User avatar
adafruit_support_carter
 
Posts: 29156
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit BME680, wrong temperature fixed on 33.1 C

Post by adafruit_support_carter »

Please add any additional information to the issue thread:
https://github.com/adafruit/Adafruit_Ci ... /issues/11

User avatar
AndSar
 
Posts: 16
Joined: Wed Mar 07, 2018 9:50 am

Re: Adafruit BME680, wrong temperature fixed on 33.1 C

Post by AndSar »

Hi, in the last 2 days I tried the new 3.1.0 library on SPI, in detail:

* ItsyBitsy M4
* CircuitPython 3.1.2
* CircuitPython Bundle 20190315
* BME680 3.x mpy 3.1.0

main.py:

Code: Select all

import board, busio, digitalio, time
import adafruit_bme680

cs = digitalio.DigitalInOut(board.A5)
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)

bme680 = adafruit_bme680.Adafruit_BME680_SPI(spi, cs)
bme680.sea_level_pressure = 1012.00

while True:
    print("\nTemperature: %0.1f C" % bme680.temperature)
    print("Gas: %d ohm" % bme680.gas)
    print("Humidity: %0.1f %%" % bme680.humidity)
    print("Pressure: %0.3f hPa" % bme680.pressure)
    print("Altitude = %0.2f meters" % bme680.altitude)

    time.sleep(1)
Temperature, humidity, pressure and altitude are OK, but the gas values is slow in update, is not accurate and it works intermittently ...

The same sensor on Espruino Pico and WiFi works perfectly: http://www.espruino.com/BME680

:-(

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit BME680, wrong temperature fixed on 33.1 C

Post by adafruit2 »

yep not too surprising, there sounds to be some bug in the data we're sending/receiving, not to do with i2c/spi - its still an open issue - if you can get us data traces against espruino or look to see what's different about our reading of the gas sensor side, we could more easily fix it!

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”