It emits an infrared light and detects the reflection.
Arduino water meter pulse.
This is used to read the pulses coming from the flow meter.
Water flow meter which i used in the project is from aliexpress.
The code uses an external interrupt on the arduino s digital pin 2.
1 whr 3600j therefore instantaneous power p 3600 t where t is the time between the falling edge of each pulse.
In this project we will interface yfs201 hall effect water flow sensor with arduino for measuring flow rate and volume of water or any other liquid this is a very wonderful project that can be used in industry or at home or at water flow measurement application in water tap tunnel river etc.
Flow sensor is powered with an external 9 volt battery.
When the arduino detects the pulse it immediately triggers the pulsecounter function.
When the arduino detects the pulse it immediately triggers the pulse counter function.
For the a100c meter each pulse represents a 1000th of a kwhr of 1whr of energy passing through the meter.
Uploading code to arduino and measuring.
The code uses an external interrupt on the arduino s digital pin 2.
In some cases newer water meters are equipped with a pulse output.
This function then counts the total.
Use the tcrt5000 ir barrier line track sensor.
I bought it in 6 dollars.
This is used to read the pulses coming from the flow meter.
Water flow sensor for flow rate volume measurement using arduino code along with.
Uploading the flow meter code to the arduino and measuring water flow rate.
Digital pin 3 of arduino is configured as interrupt pin.
Calculating power 3600 seconds per hour 3600j per pulse ie.
In the above circuit i attached the pulse output pin of flow sensor to arduino digital pin 3.
However if you have an older power meter without a pulse output then you might be able to use one of the options below to sense your water consumption.
Upload the flow meter code to your arduino.