-
Notifications
You must be signed in to change notification settings - Fork 105
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 read after reset always 28.82 °C 81732.34 Pa #59
Comments
IMHO I think it is a bug and you can solve it by make two measurements.
|
Yes, @coelner is correct, I recently changed the Filter to 16 to provide more stable measurements (I think there is a typo in his post: I think he meant change the filter not the oversampling). The filter works by aggregating the last X samples together. So a larger filter requires more time to fill the buffer, when you reset, I would guess these values are set to their default, so it would make sense for the first read to give bogus data. I can go look at the datasheet later to see if they have any insight on this. You can do one of two things:
|
@finitespace the part behind your name was only my thought while searching for the issue. Not directly related to this issue. |
Alright, I have added a routine to initialize the filter buffer. Could you pull down the filtering branch and check if it fixes the problem? |
I have created a pull request for this issue, I will leave it open for a little to allow review before I merge the changes. #81 |
Sketch:
Output:
The text was updated successfully, but these errors were encountered: