Giter Site home page Giter Site logo

Comments (5)

ernesst avatar ernesst commented on August 12, 2024

Without touching anything the reading went back then collapse for an hours

image

I'll let it run.

from adafruit_circuitpython_bme680.

caternuson avatar caternuson commented on August 12, 2024

As a comparison check, I ran an UNO with the Arduino lib. I logged data for ~1 hour, breathing on it at the beginning and end to generate a response. Plot of millis() vs. gas_resistance:
bme680_uno
There's a general warming up trend, but it otherwise responded to breath.

I also did a similar check with an Itsy Bitsy M4 and CP 3.1.1. I seemed to have gotten the same odd behavior. Plot of time.monotonic() vs. gas:
bme68_itsy
It initially responded, but then the reading froze. Other readings, like temperature and humidity were still responding.

from adafruit_circuitpython_bme680.

kattni avatar kattni commented on August 12, 2024

@caternuson Can you test this again? I believe it may have been resolved by #18 based on reference to #12.

from adafruit_circuitpython_bme680.

caternuson avatar caternuson commented on August 12, 2024

@kattni Yep, appears to be fixed. Or at least could not repeat the same behavior as above. Here's latest test result for plot of gas:

image

import time
import board
import digitalio
import adafruit_bme680

bme = adafruit_bme680.Adafruit_BME680_I2C(board.I2C())

led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
led.value = False

go = digitalio.DigitalInOut(board.D10)
go.direction = digitalio.Direction.INPUT

print("logging...")
with open("/data.csv", "a") as fp:
    while go.value:
        fp.write("{},{},{},{},{}\n".format(time.monotonic(),
                                           bme.temperature,
                                           bme.gas,
                                           bme.humidity,
                                           bme.pressure))
        fp.flush()
        led.value = not led.value
        time.sleep(1)
print("DONE.")

from adafruit_circuitpython_bme680.

kattni avatar kattni commented on August 12, 2024

Resolved. Closing.

from adafruit_circuitpython_bme680.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.