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

Rain gauge counting double events about 80% of the time (and triple otherwise) #28

Open
fluxion-t opened this issue Jul 24, 2022 · 2 comments

Comments

@fluxion-t
Copy link

fluxion-t commented Jul 24, 2022

When using https://makecode.microbit.org, adding the weatherbit extension and looking at how rain (in inches) increases as the tipping bucket performs single events, I have noticed that, if I divide the rain measurement by 0.011, I observe that most of the events trigger a +2 in the reading, while about 15-20% I register +3. Never +1 as I would expect.

Unfortunately, I can't help with the code, since I don't know TS.

I have tried with 3 different weather stations and 3 different microbit cards, so the problem is quite reproducible.

These readings are obtained regardless of the bucket's speed or if it bounces a little or not.

Changing the baud rate did not have any effect.

@fluxion-t
Copy link
Author

From the SparkFun forum, it seems that this is a case of switch bounce, which can be filtered by code.

Could you please fix this?

Thank you.

@fluxion-t
Copy link
Author

I have not tested whether the other reed relays (wind direction and speed) suffer from the same issue.

@fluxion-t fluxion-t changed the title Rain gauge counting double events about 80% of the time Rain gauge counting double events about 80% of the time (and triple otherwise) Jul 24, 2022
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