Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
32 views

How To Use Water Flow Sensor Arduino Tutorial

This tutorial teaches how to use a water flow sensor with an Arduino board to measure water flow rate and total volume. It explains the components needed, including an Arduino, water flow sensor and breadboard cables. It provides the circuit diagram and Arduino code to connect the sensor, display flow rate in liters/hour on the serial monitor, and calculate total liters. The tutorial guides the reader through each step and encourages experimentation to modify aspects like sensor delay time.

Uploaded by

Masood Alam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

How To Use Water Flow Sensor Arduino Tutorial

This tutorial teaches how to use a water flow sensor with an Arduino board to measure water flow rate and total volume. It explains the components needed, including an Arduino, water flow sensor and breadboard cables. It provides the circuit diagram and Arduino code to connect the sensor, display flow rate in liters/hour on the serial monitor, and calculate total liters. The tutorial guides the reader through each step and encourages experimentation to modify aspects like sensor delay time.

Uploaded by

Masood Alam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

technology workshop craft home food play outside costumes

How to use Water Flow Sensor - Arduino Tutorial


by codebender_cc on May 26, 2016

Table of Contents

How to use Water Flow Sensor - Arduino Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: How to use Water Flow Sensor - Arduino Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: What you will need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: The circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: The code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Serial Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 5: Well done! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

http://www.instructables.com/id/How-to-Use-Water-Flow-Sensor-Arduino-Tutorial/
Author:codebender_cc author's website
Arduino Tutorials by Codebender.cc Team

Intro: How to use Water Flow Sensor - Arduino Tutorial


In this tutorial you will learn how to use one water flow sensor with an Arduino board.

The water flow sensor consists of a plastic valve body, a water rotor and a hall-effect sensor. When the water flows through the rotor, rotor rolls and the speed of it
changes with a different rate of flow. The hall-effect sensor outputs the corresponding pulse signal.

This type of sensor can be found on different diameters, water pressure (MPa) and flow rate (L/m) ranges. Make sure to select one that will cover your needs. The sensor
that I have it has 20mm diameter, <1.75Mpa water pressure and ~30 L/m flow rate range.

In this tutorial we will use the serial monitor for printing the water flow rate in liters per hour and the total of liters flowed since starting.

So let's get started!

Step 1: What you will need


For this tutorial you will need:

Arduino uno
Water flow sensor
3 breadboard cables

http://www.instructables.com/id/How-to-Use-Water-Flow-Sensor-Arduino-Tutorial/
Step 2: The circuit
The connections are pretty easy, see the above image with the breadboard circuit schematic.

Step 3: The code


Here's the code, embedded using Codebender!

Try downloading the Codebender plugin and clicking on the "Run on Arduino" button to program your Arduino board with this sketch. And that's it, you've programmed
your Arduino with this sketch!

You can keep playing with that by clicking the "Edit" button and start making your own modifications to the code. For example you can change in the line 58 the "1000"
ms delay time.

Step 4: Serial Monitor


Press the connect button below to start the serial communication.

Connect your sensor with your water tap, or just blow on it.

Note: The back side of the sensor show with one arrow the correct flow side.

Step 5: Well done!


You have successfully completed one more Arduino "How to" tutorial and you learned how to use the water flow sensor.

I hope you liked this, let me know in the comments.

There will be more of them, so make sure to click Follow button!

Find more useful Arduino Tutorials here

Related Instructables

How to use the How to Use the Measuring flow Arduino Manual Ebb- Arduino for
Water Level Adafruit velocity by heat Automatic And-Flood- Greenhouse,
Sensor - BMP280 Sensor advection by Watering Meter by Garden or
Arduino Tutorial - Arduino lschuurman System by BartFlowMeter Growbox /
by Tutorial by Ardumotive_com Updated April
codebender_cc codebender_cc 2016 by
diy_bloke
http://www.instructables.com/id/How-to-Use-Water-Flow-Sensor-Arduino-Tutorial/
Advertisements

Comments

http://www.instructables.com/id/How-to-Use-Water-Flow-Sensor-Arduino-Tutorial/

You might also like