Pulser counter ESP32 with YF-B10
I have assembled a YF-B10 flowmeter and doing tests to perform the calibration I have realized that it measures differently depending on the flow that I tap.
I have filled a 0.5 liter bottle by opening the tap with a slow and fast flow.
But the equipment does not repeat the number of pulses that it counts for every 0.5 liters.
Can you tell me if something is missing or is the equipment not working well?I pass you the records of the number of pulses that it registers in 60 seconds, reaching 0.5 liters at different filling speeds.
test 1: 0,5liters → 19 pulsos (tap 25% open)
test 2: 0,5liters → 82 pulsos (tap 100% open)
test 3: 0,5liters → 36 pulsos (tap 50% open)
test 4: 0,5liters → 54 pulsos (tap 50% open)
test 4: 0,5liters → 28 pulsos (tap 25% open)
test 4: 0,5liters → 69 pulsos (tap 100% open)
With this variation of pulses depending on the demand, how can I calibrate the equipment to measure correctly?
- platform: pulse_counter
name: "consumo agua litros"
pin:
number: GPIO2
mode: INPUT_PULLUP
unit_of_measurement: "pulsos"
icon: "mdi:water"
Thanks
'[09:44:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 19.00 pulses/min
[09:44:03][D][sensor:113]: 'consumo agua litros': Sending state 19.00000 pulsos with 2 decimals of accuracy
[09:45:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 82.00 pulses/min
[09:45:03][D][sensor:113]: 'consumo agua litros': Sending state 82.00000 pulsos with 2 decimals of accuracy
[09:48:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 36.00 pulses/min
[09:48:03][D][sensor:113]: 'consumo agua litros': Sending state 36.00000 pulsos with 2 decimals of accuracy
[09:51:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 54.00 pulses/min
[09:51:03][D][sensor:113]: 'consumo agua litros': Sending state 54.00000 pulsos with 2 decimals of accuracy
[09:53:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 28.00 pulses/min
[09:53:03][D][sensor:113]: 'consumo agua litros': Sending state 28.00000 pulsos with 2 decimals of accuracy
[09:56:03][D][pulse_counter:160]: 'consumo agua litros': Retrieved counter: 69.00 pulses/min
[09:56:03][D][sensor:113]: 'consumo agua litros': Sending state 69.00000 pulsos with 2 decimals of accuracy'