Page 1 of 1

Re: Inconsistent Pulse device

Posted: 12 Jul 2018, 17:12
by Viald
I tried different debounce time. I found that the best one depends on the rate of flow of the water.
For exemple at constant high rate of flow, 1 second debounce time give exactly the same amount of liter than the water meter.
But if I reduce the rate of flow, the number of liter increases abnormally.

Re: Inconsistent Pulse device

Posted: 12 Jul 2018, 18:11
by grovkillen
I use 100 mSec for debounce time. Could you try it too?

Re: Inconsistent Pulse device

Posted: 12 Jul 2018, 18:22
by Viald
Dit it. No good as soon as it starts, it measures 5 liters (10/2) instead of 7.

Re: Inconsistent Pulse device

Posted: 14 Jul 2018, 08:08
by TD-er
This sensor is not like a switch, but gives a proper square wave signal.
It probably uses a Hall sensor and a magnet.

This means the debounce should not be needed at all.
It could be there is some issue with the plugin, I haven't looked at its implementation yet, on how it is using this debounce feature.

Edit:
I was just thinking about these sensors. Is it possible the flow sensor is acting a bit strange when starting/stopping the flow?
For example rotating back/forward when starting/stopping, or at a low flow rate?

Re: Inconsistent Pulse device

Posted: 16 Jul 2018, 20:48
by Viald
Thank you for your help.
It was not designed to be a switch, but using the switch setting with ESPeasy gives very good result.

I don't think it's a all sensor, I have joined the picture of the sensor, it seems to be an ILS switch.

If the sensor goes backwards, I see it on the mechanical meter and this is not the case.
The flow is of course not constant, but for sure nothing seems abnormal.

Re: Inconsistent Pulse device

Posted: 14 Sep 2018, 10:26
by alabama
TD-er wrote: 14 Jul 2018, 08:08 This sensor is not like a switch, but gives a proper square wave signal.
It probably uses a Hall sensor and a magnet.

This means the debounce should not be needed at all.
It could be there is some issue with the plugin, I haven't looked at its implementation yet, on how it is using this debounce feature.

Edit:
I was just thinking about these sensors. Is it possible the flow sensor is acting a bit strange when starting/stopping the flow?
For example rotating back/forward when starting/stopping, or at a low flow rate?
I have an additional question about the debounce time.
I use a flow meter with hall sensor.
Not exactly this one, but something similar: https://www.magnetventile-shop.de/daten ... -5-30l.pdf)
Now I have crashed my ESP8266-01 and changed it to another one. So I want to use this opportunity and make the calibration new. But I'm not sure to have teh correct debounce time. You write this type of meters with hall sensors don't need debounce time, so I have to set it to 0? I set it to 1ms, mode type Falling after I get the two measurements of my sensor by the oscilloscope for maximum and for very low flow (see attachements). Do you think it will work?

Re: Inconsistent Pulse device

Posted: 14 Sep 2018, 20:20
by TD-er
I think it will, but like I said, I will have a thorough look at both P001 and P003 to see how both can be improved.
It should work just fine with a very low de-bounce effect. That will also filter noise picked up by long wires.

Re: Inconsistent Pulse device

Posted: 15 Sep 2018, 12:25
by alabama
Thanks. I think that this summer is already over for wateing, but I want to be prepared for next year.

Re: Inconsistent Pulse device

Posted: 16 Sep 2018, 10:51
by TD-er
alabama wrote: 15 Sep 2018, 12:25 Thanks. I think that this summer is already over for wateing, but I want to be prepared for next year.
I know there is at least one user of ESPeasy that's just starting his summer of watering strawberries. So I will try to get these things fixed before his strawberries dry out completely :)