adafruit / Adafruit_CircuitPython_BME280

CircuitPython driver for the BME280
MIT License
63 stars 42 forks source link

needs oversampling + IIR Filter options #21

Closed jonas87 closed 5 years ago

jonas87 commented 5 years ago

If I use this library and keep a log of the measurements, the temperature and humidity data are super noisy. I tried different measurements intervals in the range [2;120] seconds, but all of it is noisy. The pressure data on the other hand is smooth.

The BME280 has support for supersampling and has a built in IIR filter, both of which help smoothing out the data. Currently the library only has supersampling enabled for humidity (hardcoded), it would be useful if the value can be set, and also for temperature and pressure. The IIR filter currently does not seem to be used?

screenshot 2019-02-12 at 10 11 12

ladyada commented 5 years ago

correct! if you'd like to try enabling that oversampling support and submitting a PR we'd be psyched to add it :)

makermelissa commented 5 years ago

Fixed with #22.