How to interface Water Flow sensor with evive

About This Tutorial
In this tutorial, we will discuss how to interface water flow sensor with evive. How water flow rate, current water flowing and output water changes? The water flow rate in liters per hour, current water flowing and output water flowing data flowed since starting is displayed on the screen. All the answers are given in this tutorial.LET’S BEGIN…
Tutorial Info

Components Required

Image Component Quantity Available in Kit
evive 1
USB A-B Cable 1
12C 2A DC Adapter 1


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


Follow the steps below to connect the water pump to evive:

  1. First of all, a 3W-12V water pump is interfaced with evive.
  2. The end wire of the pump containing male connector is connected to female DC connector as shown in GIF.                                                                                                                                                                                                                         

  3. The male end of jumper wires(2 wires) are connected to female DC connector.

  4. The female end of jumper cables is connected to evive motor M1 slot as shown in the figure.                                                         

    evive Motor Driver output channel                 

  5. Dip the water pump in the water reservoir.   

  6. Finally, a 12V,2A power adapter powers the evive.

Follow the steps below to connect the water pump to evive:

  1. 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.
  2. 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.
  3. 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.


Now our setup is ready. Change the water flow to get different flow rate.

evive Notes Icon
Note:  The direction of the arrow on the water flow sensor shows the direction of flow of the fluid.
Share this Tutorial
Share on facebook
Share on twitter
Share on pinterest
Share on reddit
Share on print
Featured Projects

Leave a Reply