SMI Counter in polling mode #43
sensor-freak
started this conversation in
General
Replies: 2 comments
-
There was a major release in sml driver |
Beta Was this translation helpful? Give feedback.
0 replies
-
Aah, sorry. My fault. I didn't notice that the changes where only whitespace changes. I'll move this discussion to the project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I just realized that you've made quite some changes in the SMI driver. One of the changes has has some impact on the SMI Counter in polling mode.
The current code (in branch
development
) requires 6 consecutive readings oflow
after a trailing edge in order to identify a state change. Since the minimum polling interval seems to be something as low as 50ms, this causes a low phase of the input signal of about 300ms in order to be detected as valid state change. This might be much to slow, e.g. for water counters that generate 100 or 1000 (or even 10000) pulses per cubic meter.Can you please explain why you did it this way? Did you have a problem with the previous debouncing method?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions