Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GAS values is slow to update and is not accurate #12

Closed
saraceni-andrea opened this issue Oct 17, 2018 · 5 comments
Closed

The GAS values is slow to update and is not accurate #12

saraceni-andrea opened this issue Oct 17, 2018 · 5 comments

Comments

@saraceni-andrea
Copy link

saraceni-andrea commented Oct 17, 2018

https://forums.adafruit.com/viewtopic.php?f=60&t=132231

[mod edit - removed key word highlighting from url]

@caternuson
Copy link
Contributor

Probably related to #11

@saraceni-andrea
Copy link
Author

@ladyada
Copy link
Member

ladyada commented Mar 17, 2019

not surprising, the SPI is still reading the same data. you could try to compare what the arduino or espruino is sending for commands and let us know if you see any differences in data?

@markpatterson27
Copy link
Contributor

Someone correct me if I'm wrong, but it looks like the gas heating duration isn't being set.

# set up heater
self._write(_BME680_BME680_RES_WAIT_0, [0x73, 0x64, 0x65])

If I understand _write() correctly, the above is just writing [0x73, 0x64, 0x65] into incrementing registers 0x5A to 0x5C and not setting the heating duration. It should be changed to something like:

        _BME680_BME680_RES_HEAT_0 = const(0x5A)
        _BME680_BME680_GAS_WAIT_0 = const(0x64)

        self._write(_BME680_BME680_RES_HEAT_0, [0x73])   # approx 320 degrees
        self._write(_BME680_BME680_GAS_WAIT_0, [0x65])   # 148ms

@saraceni-andrea
Copy link
Author

Hi, the latest update of adafruit_bme680.py (release 3.1.3) on CircuitPython 5.0 and Bundle 20200307 works perfectly!

Tested via i2c on:

  • Feather M4 Express
  • ItsyBitsy M4
  • Trinket M0

THANK YOU VERY MUCH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants