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

Missing sample rate option -> too high temperature values #10

Open
themanfrommoon opened this issue Jun 23, 2018 · 3 comments
Open

Missing sample rate option -> too high temperature values #10

themanfrommoon opened this issue Jun 23, 2018 · 3 comments

Comments

@themanfrommoon
Copy link

Very nice library for the BME280

I found one thing missing:
Please add an option to set the sampling rate of the sensor.
Because the standard value for the sampling rate heats up the sensor itself during the measurements.
This leads to too high temperature values.
By lowering the sample rate this problem will be decreased.

Thank you very much!
Best regards,
Chris

@rjs3273
Copy link

rjs3273 commented Jun 23, 2018

I forked this project into https://github.com/rjs3273/BlueDot_BME280 and have added my version of setting the sampling rate there. The owners of this project are most welcome to take a diff patch from that if they want. I replaced writeIIRFilter() with writeConfig() which sets all three values in the 0xF5 byte instead of just IIRFilter.

In the examples I only updated BME280_WeatherStation, not the BME280_MultipleSensors.

@jhagberg
Copy link

I created a pull req for it so you can easily merge it! cheers

@NeoMod
Copy link

NeoMod commented Apr 3, 2019

Thanks for your work @rjs3273

I tested on NodeMCU but it won't compile. Parameters are set as per weather sketch example but compilation fails on "bme280.parameter.tempOversampling".

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

4 participants