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

HM-ES-TX-WM: Reed sensor debounce necessary? #47

Open
Hans5546 opened this issue Feb 4, 2023 · 2 comments
Open

HM-ES-TX-WM: Reed sensor debounce necessary? #47

Hans5546 opened this issue Feb 4, 2023 · 2 comments

Comments

@Hans5546
Copy link

Hans5546 commented Feb 4, 2023

Hi!
I built the HM-ES-TX-WM and flashed it with the Askin scetch.
The sensor also delivers values, unfortunately these are too large by a factor of about 2.6 ... 3. I have already adjusted the counter constant, but apparently the deviation is not always the same, so this does not lead to the goal.
I run a reed sensor that is attached directly to the gas meter, it is a sensor that fits the meter exactly.
I suspect that the input signal has to be suppressed or debounced somehow. Do you have an idea how this works best? I run the sensor on batteries if that makes a difference.

Thanks a lot for your help!

@jp112sdl
Copy link
Owner

jp112sdl commented Feb 4, 2023

You can try it with hardware debouncing, (i.e. google for "debounce reed switch")

@Hans5546
Copy link
Author

Hans5546 commented Feb 6, 2023

Hello!

I tried it and it seems to work :-)

I simply connected a 100nf capacitor between ground and the input and a additonal resistor with 22kOhm between 3,3V and input.
Since that, the sensor counts excatly.

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

2 participants