Inconsistent Pulse device

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Inconsistent Pulse device

#11 Post by Viald » 12 Jul 2018, 17:12

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.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Inconsistent Pulse device

#12 Post by grovkillen » 12 Jul 2018, 18:11

I use 100 mSec for debounce time. Could you try it too?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Inconsistent Pulse device

#13 Post by Viald » 12 Jul 2018, 18:22

Dit it. No good as soon as it starts, it measures 5 liters (10/2) instead of 7.

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Inconsistent Pulse device

#14 Post by TD-er » 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?

Viald
Normal user
Posts: 16
Joined: 11 Jul 2018, 15:42

Re: Inconsistent Pulse device

#15 Post by Viald » 16 Jul 2018, 20:48

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.

alabama
Normal user
Posts: 90
Joined: 24 Nov 2017, 10:04

Re: Inconsistent Pulse device

#16 Post by alabama » 14 Sep 2018, 10:26

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?
Attachments
Wasserzähler_Garten_Minimum.jpg
Wasserzähler_Garten_Minimum.jpg (66.47 KiB) Viewed 9690 times
Wasserzähler_Garten_Maximum.jpg
Wasserzähler_Garten_Maximum.jpg (65.61 KiB) Viewed 9690 times

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Inconsistent Pulse device

#17 Post by TD-er » 14 Sep 2018, 20:20

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.

alabama
Normal user
Posts: 90
Joined: 24 Nov 2017, 10:04

Re: Inconsistent Pulse device

#18 Post by alabama » 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.

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Inconsistent Pulse device

#19 Post by TD-er » 16 Sep 2018, 10:51

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 :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 27 guests