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

First reading always the same, and always incorrect. #35

Open
ecnelson opened this issue Sep 27, 2024 · 0 comments
Open

First reading always the same, and always incorrect. #35

ecnelson opened this issue Sep 27, 2024 · 0 comments

Comments

@ecnelson
Copy link

First set of readings from BME280 driver are incorrect, and always the same. If you wait a bit they're correct (and they do fluctuate).

pi@crouton:~ $ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from bme280 import BME280
>>> b = BME280(i2c_addr = 0x77)
>>> b.get_pressure(), b.get_pressure(), b.get_pressure(), b.get_pressure()
(684.6845353898584, 684.6845353898584, 684.6845353898584, 684.6845353898584)
>>># wait awhile...
>>> b.get_pressure(), b.get_pressure(), b.get_pressure(), b.get_pressure()
(848.8356787747891, 848.8356787747891, 848.8356787747891, 848.8356787747891)
>>> b.get_pressure(), b.get_pressure(), b.get_pressure(), b.get_pressure()
(848.8544261068524, 848.8544261068524, 848.8544261068524, 848.8544261068524)

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

1 participant