Water Flow Sensor Arduino Mega
The water flow sensor consists of a plastic valve body a water rotor and a hall effect sensor.
Water flow sensor arduino mega. This sensor uses a hall device to output pulses the rate of which are proportional to flow rate. Found by simply googling g1 2 flow sensor and then selecting the seedunio site. In my case it is 4 5 pluses per sec as per specification. I only want 400 ml of water to pass so when the water flow sensor reads how much water has passed in the pipe if 400 is reached the solenoid will close the pipe.
The pulse line of the flow rate sensor is connected to the arduino s digital pin 2. The hall effect sensor outputs the corresponding pulse signal. There are only three wires coming from the flow rate sensor. As you know 1 litre 1000 ml.
The connection of the water flow sensor and lcd 16x2 with the arduino is given below in table format. The water flow sensors generate pulses sec when water is flowing through it. In the above circuit i attached the pulse output pin of flow sensor to arduino digital pin 3. Yf s201 water flow sensor.
In this tutorial you will learn how to use one water flow sensor with an arduino board. 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. When the water flows through the rotor rotor rolls and the speed of it changes with a different rate of flow. Arduino have to count the number of pulses outputted by the water flow sensor.
It requires only 5v vcc and gives pulse output the sensor needs to be tightly fitted between water pipeline. The 5v vcc red wire the gnd black wire and the signal pulse usually yellow line. The water flow sensor circuit diagram is shown below to interface a water flow sensor and lcd 16x2 with arduino. If you are new to arduino and lcds you can consider reading this interfacing arduino and lcd article.
This water flow sensor has only three wires and it can be easily interfaced between any microcontroller and arduino board. The water flow sensor for the flow rate and volume measurement using arduino uno mega or any other microcontroller board works on the principle of the hall effect. I am trying to conceptualize the concept to calculate amount of water getting dispensed esp. I have a water flow sensor with arduino megs 2560 board.
Connect the vcc and gnd of the flow meter to the arduino s vcc and gnd. So the range of this sensor is 300ml to 6000ml per minute. Water flow sensor calculation. In 1 2 3 4 and 5 liters quantity.