Introduction
A water flow sensor is an instrument capable of measuring the amount of water passing through a pipe. Water flow sensor consists of a plastic valve body, a water rotor, and a hall-effect sensor. When water flows through the rotor, rotor rolls and its speed changes with the different rate-flow. The hall-effect sensor outputs the corresponding pulse signal. This one is suitable to detect flow in water dispenser or coffee machine.
Interfacing water flow sensor with evive
Wiring
Follow the steps below to connect the water pump to evive:
- First of all, a 3W-12V water pump is interfaced with evive.
-
The end wire of the pump containing male connector is connected to female DC connector as shown in GIF.
-
The male end of jumper wires(2 wires) are connected to female DC connector.
-
The female end of jumper cables is connected to evive motor M1 slot as shown in the figure.
-
Dip the water pump in the water reservoir.
-
Finally, a 12V,2A power adapter powers the evive.
Follow the steps below to connect the water pump to evive:
- Now, a water flow sensor is taken. It comes with three wires colored RED, BLACK and YELLOW.Red signifies the voltage while the Black signifies the ground and the Yellow signifies the signal pin.
- The end of the flowmeter goes to 4mm pipes. One end of the pipe goes to the water pump while the other end is free.
- The circuit after the setup looks as shown in the figure. Now control the water pump using the potentiometer pin A9.Finally, the Arduino code is uploaded in the evive.
Arduino Code
Below mentioned is the Arduino code for the water flow sensor which displays the flow rate of the the water flow.
Output
Now our setup is ready. Change the water flow to get different flow rate.
