Water Flow Sensor Arduino Pdf
Digital pin 3 of arduino is configured as interrupt pin.
Water flow sensor arduino pdf. The connection of the water flow sensor and lcd 16x2 with the arduino is given below in table format. Arduino have to count the number of pulses outputted by the water flow sensor. When the water flows through the rotor rotor rolls and the speed of it changes with a different rate of flow. Have fun with your new arduino flow rate sensor.
In the above circuit i attached the pulse output pin of flow sensor to arduino digital pin 3. If you are new to arduino and lcds you can consider reading this interfacing arduino and lcd article. For this an arduino microcontroller board for processing a hall effect water flow sensor a 16 2 lcd display and breadboard connecting wires are required. It requires only 5v vcc and gives pulse output the sensor needs to be tightly fitted between water pipeline.
According to the hall effect a voltage difference is induced in a conductor transverse to the electric current and the magnetic field perpendicular to it. Red wire to connect with supply voltage. There are 3 wires. Here is a fritzing diagram i made.
Wiring up the water flow sensor is pretty simple. Yf s201 water flow sensor this water flow sensor has only three wires and it can be easily interfaced between any microcontroller and arduino board. 29 9 2014 g3 4 water flow sensor. In order to obtain this there is a small calculation.
Black to the seeeduino s ground pin red to seeeduino s 5v pin the yellow wire will need to be connected to a 10k pull up resistor and then to pin 2 on the seeeduino. Lets begin and make circuit i will explain the code and circuit later. Referring to the data sheet of the yf s201. The water flow sensor circuit diagram is shown below to interface a water flow sensor and lcd 16x2 with arduino.
Black red and yellow. In this tutorial you will learn how to use one water flow sensor with an arduino board. Here the hall effect is utilized in the flow meter using a small fan propeller shaped rotor which is placed in the path of. There is a small calculation in the code which i will explain in the further sections.
The sensor contains three wires. The sensor is placed at the water source inlet or at the opening of the pipe. Wiring up the water flow sensor is pretty simple. Black red and yellow.
There are 3 wires. I will explain about it during code. The code for the arduino water flow sensor interface is given below. You will need seeeduino arduino water flow sensor 10k resistor a breadboard and some jumper wires.
The output of the project is to display the quantity of water flowing through the sensor in litres per hour as shown below. The water flow sensor for flow rate volume measurement using arduino works on the principle of the hall effect. You can use it in your gardening system or interface it with an lcd display for other applications that require you to measure water flow rate and quantity. Black to the seeeduino s ground pin red to seeeduino s 5v pin the yellow wire will need to be connected to a 10k pull up resistor and then to pin 2 on the seeeduino.
For this purpose using interrupts is a best choice.