Beispiel_AskSinPP icon indicating copy to clipboard operation
Beispiel_AskSinPP copied to clipboard

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

Open Hans5546 opened this issue 2 years ago • 2 comments

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!

Hans5546 avatar Feb 04 '23 09:02 Hans5546

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

jp112sdl avatar Feb 04 '23 18:02 jp112sdl

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.

Hans5546 avatar Feb 06 '23 08:02 Hans5546