SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Geo-Spatial Knowledge Contest-2016 (GKC 2016)
[Automatic Water Levelling Monitoring And Controlling System using Arduino (IoT)]
Automatic water levelling motoring system project explained here is going to measure the water level of a water tank
using ultrasonic sensor. The project will automate the water filling in a tank i.e when the water level reaches up to
the brim of the tank, the water pump will stop automatically and when the water level in the tank remains up to few
centimetres, the pump will start automatically to fill up the tank till the water reaches again up to the brim. We can
implement the project in following steps:
1. Hardware required:
a. Arduino UNO Board: This is a microcontroller board required for coding and it has input/output pins for
connecting other required accessories.
b. Ultrasonic Sensor HC-SR04: This is a sound based sensor for measuring thewater level in a tank.
c. LCD Display 16 x 2: This is required to display the values and other information for user.
Image Source: Arduino.org
Image Source: Arduino.org
d. Relay 6Volts: Relay 6V acts as an electromagnetic switch, it is the voltage that controls the voltage action.
e. Relay Driver ULN2003: ULN3000 provides a high current which a Arduino board cannot provide so it is used to
drive the relay.
f. IC 7806(Voltage regulator): It is a voltage regulator that maintains the constant voltage across the circuit towhich
it is connected. It provides +6V regulated power supply.
Image Source: robotistan.com
Image Source: miketrask.com
Image Source: aliexpress.com
Image Source: engineersgalllery.com
g. Buzzer: It will alarmwhen the tank goes empty or when the tank is filled completely by the water.
h. 12 Volt battery/12 Volt adaptor: Itwill provide 12V DC supply to the Arduino and other components.
i. Copper wire and connecting wires: Copper wirewill be required to connect water pump to 220V AC supply and
connecting wires will be required to connect the above components with Arduino.
2. Connect the above components using the below circuit diagram:
Image Source: modmypi.com
Image Source: circuitdigest.com
3. Explanation of circuit diagram:
A 16x2LCD is connectedwithArduinoin4-bit mode. Control pinRS,RWandE are directly connected toArduino
pin 7, GND and 6. Ultrasonic sensor module’s “trigger” and “echo” pins are directly connected to pin 10 and 11 of
Arduino. A voltage regulator 7806 is also used for providing 6 Volt to relay and to remaining circuit. 6 Volt relay is also
connected at pin 8 of Arduino through ULN2003 for turning on or turning off thewater motor pump.
The ultrasonic sensor must be placed at the top of the tank facing the transmitter and receiver to the bottom of the
tank. The ultrasonic sensor will read the distance from the bottom of the tank to the sensor module using ultrasonic
wave by using the formula (distance = speed x time), the LCD in the meantime will display “Empty space in tank is
‘MEASURED_VALUE’ CM”. If the distance between the sensor module and water in the tank is 60CM or above, the relay
driver will drive the relay thus turning ON the pump tofill the tank. When the distance between the sensor module and
the water in the tank is 12cms, the buzzer will buzz and the pump will turn off automatically.
4. Programming the Arduino:
a. First, we will define all the pins that are attached with the components like buzzer, LCD etc.
b. Initialise all the device connected in the circuit:
#define trigger 10
#define echo 11
#define motor 8
#define buzzer 12
lcd.begin(16,2);
pinMode(trigger,OUTPUT);
pinMode(echo,INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer, OUTPUT);
lcd.print(" Water Level ");
lcd.setCursor(0,1);
lcd.print(" Indicator ");
delay(2000);
c. Initialise Ultrasonic sensor module and read time for sending and receiving waves the perform the calculation
for measuring the distance using formula Distance= Speed X Time.
d. Check the conditions and make it perform the actions accordingly:
digitalWrite(trigger,HIGH);
delayMicroseconds(10);
digitalWrite(trigger,LOW);
delayMicroseconds(2);
time=pulseIn(echo,HIGH);
distance=time*340/20000;
lcd.clear();
lcd.print("Empty space in ");
lcd.setCursor(0,1);
lcd.print("tank is: ");
lcd.print(distance);
lcd.print("Cm");
delay(2000);
if(distance<12 && temp==0)
{
digitalWrite(motor, LOW);
digitalWrite(buzzer, HIGH);
lcd.clear();
lcd.print("Water Tank Full ");
lcd.setCursor(0,1);
lcd.print("Motor Turned OFF");
delay(2000);
digitalWrite(buzzer, LOW);
delay(3000);
temp=1;
}
else if(distance<12 && temp==1)
{
digitalWrite(motor, LOW);
lcd.clear();
lcd.print("Water Tank Full ");
lcd.setCursor(0,1);
lcd.print("Motor Turned OFF");
delay(5000);
}
else if(distance>60)
{
digitalWrite(motor, HIGH);
lcd.clear();
lcd.print("Low Water Level");
lcd.setCursor(0,1);
lcd.print("Motor Turned ON");
delay(5000);
temp=0;
}
}
5. Complete code for this project is cited below:
#include <LiquidCrystal.h>
#define trigger 10
#define echo 11
#define motor 8
#define buzzer 12
LiquidCrystal lcd(7,6,5,4,3,2);
float time=0,distance=0;
int temp=0;
void setup()
{
lcd.begin(16,2);
pinMode(trigger,OUTPUT);
pinMode(echo,INPUT);
pinMode(motor, OUTPUT);
pinMode(buzzer, OUTPUT);
lcd.print(" Water Level ");
lcd.setCursor(0,1);
lcd.print(" Indicator ");
delay(2000);
}
void loop()
{
lcd.clear();
digitalWrite(trigger,LOW);
delayMicroseconds(2);
digitalWrite(trigger,HIGH);
delayMicroseconds(10);
digitalWrite(trigger,LOW);
delayMicroseconds(2);
time=pulseIn(echo,HIGH);
distance=time*340/20000;
lcd.clear();
lcd.print("Empty space in");
lcd.setCursor(0,1);
lcd.print("tank is: ");
lcd.print(distance);
lcd.print("CM");
delay(2000);
if(distance<12 && temp==0)
{
digitalWrite(motor, LOW);
digitalWrite(buzzer, HIGH);
lcd.clear();
lcd.print("Water Tank Full ");
lcd.setCursor(0,1);
lcd.print("Motor Turned OFF");
delay(2000);
digitalWrite(buzzer, LOW);
delay(3000);
temp=1;
}
else if(distance<12 && temp==1)
{
digitalWrite(motor, LOW);
lcd.clear();
lcd.print("Water Tank Full ");
lcd.setCursor(0,1);
lcd.print("Motor Turned OFF");
delay(5000);
}
else if(distance>60)
{
digitalWrite(motor, HIGH);
lcd.clear();
lcd.print("LOW Water Level");
lcd.setCursor(0,1);
lcd.print("Motor Turned ON");
delay(5000);
temp=0;
}
}
6. Possible Applications:
a. It will automate the water levelling and controlling.
b. It can be used in homes
c. It can also be used in industries, hotels, offices.
d. It will greatly avoid water usage.
7. Conclusion:
Water is one of the necessities of life. Every government in every country is emphasizing on avoiding water wastage. It
will greatly reduce the water wastages if it will be implemented in especially govt offices and departments, private
industries, hotels and even in homes. SAVE WATER, SAVE LIFE.

More Related Content

PDF
Water level monitoring system
PPTX
Water quality monitoring in a smart city based on IOT
PDF
21RMI56-Research Methodology Mod 1 and 2
PPTX
Defibrillator ppt.pptx
PPTX
WATER LEVEL AUTOMATIC PUMP CONTROLLER
PPTX
Water pump automation system
PPTX
Smart irrigation ppt
PPTX
EEG (electroencephalogram)
Water level monitoring system
Water quality monitoring in a smart city based on IOT
21RMI56-Research Methodology Mod 1 and 2
Defibrillator ppt.pptx
WATER LEVEL AUTOMATIC PUMP CONTROLLER
Water pump automation system
Smart irrigation ppt
EEG (electroencephalogram)

What's hot (20)

PPTX
IOT based smart agriculture monitoring.pptx
PDF
IRJET- Automatic Water Level Indicator and Controller by using ARDUINO
PPTX
Smart Garden IOT Project
PPTX
IoT home automation project
PPTX
Weather Station Using IoT
PPTX
AUTOMATIC RAILWAY GATE CONTROL SYSTEM
PPTX
VOICE OPERATED WHEELCHAIR
PPTX
Smart agriculture system using IOT
PPTX
Android Based Home Automation Control
PDF
Project ideas ece students
PDF
Water Level Monitoring System using IOT
PPTX
Home automation ppt
PPTX
Home automation using google assistant ppt
DOCX
Seminar Report on Wireless Mobile Charger
PDF
Home automation using bluetooth - Aurdino BASED
PPTX
Alcohol detector
PDF
Automatic room temperature controlled fan using arduino uno microcontroller
PPTX
Automated Plant Watering System
PPTX
Smart home Environment using iot
DOCX
Green house monitoring and control
IOT based smart agriculture monitoring.pptx
IRJET- Automatic Water Level Indicator and Controller by using ARDUINO
Smart Garden IOT Project
IoT home automation project
Weather Station Using IoT
AUTOMATIC RAILWAY GATE CONTROL SYSTEM
VOICE OPERATED WHEELCHAIR
Smart agriculture system using IOT
Android Based Home Automation Control
Project ideas ece students
Water Level Monitoring System using IOT
Home automation ppt
Home automation using google assistant ppt
Seminar Report on Wireless Mobile Charger
Home automation using bluetooth - Aurdino BASED
Alcohol detector
Automatic room temperature controlled fan using arduino uno microcontroller
Automated Plant Watering System
Smart home Environment using iot
Green house monitoring and control
Ad

Similar to Automatic water level monitoring and control system using IoT (20)

DOCX
Ctara report
PDF
ESD_Project-Report
DOCX
water level edit.docx
PDF
finalpresentationp-25iotbasedfishaquarium-200618162040.pdf
PPTX
Iot Based fish aquarium
PDF
Accident detection management system project report II.pdf
PDF
IoT Based Solar Water Pump Controller
PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
PPTX
applications of arduino
PDF
Arduino
DOC
Obstacle avoiding robot(Lab report)
PDF
K010316571
PPTX
EESS.pptx
PPTX
371275588.pptx
DOCX
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
PDF
A project report on Remote Monitoring of a Power Station using GSM and Arduino
PDF
Design, simulation and implementation of an Arduino microcontroller based aut...
PPTX
Udayan_219209024_DA1001_FTP.pptx
PDF
Design and Construction of Movable Bridge using Arduino
PDF
02 Sensors and Actuators Understand .pdf
Ctara report
ESD_Project-Report
water level edit.docx
finalpresentationp-25iotbasedfishaquarium-200618162040.pdf
Iot Based fish aquarium
Accident detection management system project report II.pdf
IoT Based Solar Water Pump Controller
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
applications of arduino
Arduino
Obstacle avoiding robot(Lab report)
K010316571
EESS.pptx
371275588.pptx
ARDUINO BASED TIME AND TEMPERATURE DISPLAY
A project report on Remote Monitoring of a Power Station using GSM and Arduino
Design, simulation and implementation of an Arduino microcontroller based aut...
Udayan_219209024_DA1001_FTP.pptx
Design and Construction of Movable Bridge using Arduino
02 Sensors and Actuators Understand .pdf
Ad

More from Danish Mehraj (11)

PPTX
Submission of claims at Treasury -Requisite enclosures
PPT
RISK BASED AUDIT APPROACH for conducting the audit of institutions
PDF
Maruti Security Alarm NCS 5091109 Manual
PDF
SQL Complete Tutorial. All Topics Covered
PDF
PL/SQL Complete Tutorial. All Topics Covered
PPSX
PDF
Connect to Internet using your "Phone" as Modem
PDF
Chandrayaan
PPT
Windows Phone7 Development
PPTX
Review about earlier Windows O/S and new Windows 8
PDF
Anti tobacco
Submission of claims at Treasury -Requisite enclosures
RISK BASED AUDIT APPROACH for conducting the audit of institutions
Maruti Security Alarm NCS 5091109 Manual
SQL Complete Tutorial. All Topics Covered
PL/SQL Complete Tutorial. All Topics Covered
Connect to Internet using your "Phone" as Modem
Chandrayaan
Windows Phone7 Development
Review about earlier Windows O/S and new Windows 8
Anti tobacco

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Automatic water level monitoring and control system using IoT

  • 1. Geo-Spatial Knowledge Contest-2016 (GKC 2016) [Automatic Water Levelling Monitoring And Controlling System using Arduino (IoT)] Automatic water levelling motoring system project explained here is going to measure the water level of a water tank using ultrasonic sensor. The project will automate the water filling in a tank i.e when the water level reaches up to the brim of the tank, the water pump will stop automatically and when the water level in the tank remains up to few centimetres, the pump will start automatically to fill up the tank till the water reaches again up to the brim. We can implement the project in following steps: 1. Hardware required: a. Arduino UNO Board: This is a microcontroller board required for coding and it has input/output pins for connecting other required accessories. b. Ultrasonic Sensor HC-SR04: This is a sound based sensor for measuring thewater level in a tank. c. LCD Display 16 x 2: This is required to display the values and other information for user. Image Source: Arduino.org Image Source: Arduino.org
  • 2. d. Relay 6Volts: Relay 6V acts as an electromagnetic switch, it is the voltage that controls the voltage action. e. Relay Driver ULN2003: ULN3000 provides a high current which a Arduino board cannot provide so it is used to drive the relay. f. IC 7806(Voltage regulator): It is a voltage regulator that maintains the constant voltage across the circuit towhich it is connected. It provides +6V regulated power supply. Image Source: robotistan.com Image Source: miketrask.com Image Source: aliexpress.com Image Source: engineersgalllery.com
  • 3. g. Buzzer: It will alarmwhen the tank goes empty or when the tank is filled completely by the water. h. 12 Volt battery/12 Volt adaptor: Itwill provide 12V DC supply to the Arduino and other components. i. Copper wire and connecting wires: Copper wirewill be required to connect water pump to 220V AC supply and connecting wires will be required to connect the above components with Arduino. 2. Connect the above components using the below circuit diagram: Image Source: modmypi.com Image Source: circuitdigest.com
  • 4. 3. Explanation of circuit diagram: A 16x2LCD is connectedwithArduinoin4-bit mode. Control pinRS,RWandE are directly connected toArduino pin 7, GND and 6. Ultrasonic sensor module’s “trigger” and “echo” pins are directly connected to pin 10 and 11 of Arduino. A voltage regulator 7806 is also used for providing 6 Volt to relay and to remaining circuit. 6 Volt relay is also connected at pin 8 of Arduino through ULN2003 for turning on or turning off thewater motor pump. The ultrasonic sensor must be placed at the top of the tank facing the transmitter and receiver to the bottom of the tank. The ultrasonic sensor will read the distance from the bottom of the tank to the sensor module using ultrasonic wave by using the formula (distance = speed x time), the LCD in the meantime will display “Empty space in tank is ‘MEASURED_VALUE’ CM”. If the distance between the sensor module and water in the tank is 60CM or above, the relay driver will drive the relay thus turning ON the pump tofill the tank. When the distance between the sensor module and the water in the tank is 12cms, the buzzer will buzz and the pump will turn off automatically. 4. Programming the Arduino: a. First, we will define all the pins that are attached with the components like buzzer, LCD etc. b. Initialise all the device connected in the circuit: #define trigger 10 #define echo 11 #define motor 8 #define buzzer 12 lcd.begin(16,2); pinMode(trigger,OUTPUT); pinMode(echo,INPUT); pinMode(motor, OUTPUT); pinMode(buzzer, OUTPUT); lcd.print(" Water Level "); lcd.setCursor(0,1); lcd.print(" Indicator "); delay(2000);
  • 5. c. Initialise Ultrasonic sensor module and read time for sending and receiving waves the perform the calculation for measuring the distance using formula Distance= Speed X Time. d. Check the conditions and make it perform the actions accordingly: digitalWrite(trigger,HIGH); delayMicroseconds(10); digitalWrite(trigger,LOW); delayMicroseconds(2); time=pulseIn(echo,HIGH); distance=time*340/20000; lcd.clear(); lcd.print("Empty space in "); lcd.setCursor(0,1); lcd.print("tank is: "); lcd.print(distance); lcd.print("Cm"); delay(2000); if(distance<12 && temp==0) { digitalWrite(motor, LOW); digitalWrite(buzzer, HIGH); lcd.clear(); lcd.print("Water Tank Full "); lcd.setCursor(0,1); lcd.print("Motor Turned OFF"); delay(2000); digitalWrite(buzzer, LOW); delay(3000); temp=1; } else if(distance<12 && temp==1) { digitalWrite(motor, LOW); lcd.clear(); lcd.print("Water Tank Full "); lcd.setCursor(0,1); lcd.print("Motor Turned OFF"); delay(5000); } else if(distance>60) { digitalWrite(motor, HIGH); lcd.clear(); lcd.print("Low Water Level"); lcd.setCursor(0,1); lcd.print("Motor Turned ON"); delay(5000); temp=0; } }
  • 6. 5. Complete code for this project is cited below: #include <LiquidCrystal.h> #define trigger 10 #define echo 11 #define motor 8 #define buzzer 12 LiquidCrystal lcd(7,6,5,4,3,2); float time=0,distance=0; int temp=0; void setup() { lcd.begin(16,2); pinMode(trigger,OUTPUT); pinMode(echo,INPUT); pinMode(motor, OUTPUT); pinMode(buzzer, OUTPUT); lcd.print(" Water Level "); lcd.setCursor(0,1); lcd.print(" Indicator "); delay(2000); } void loop() { lcd.clear(); digitalWrite(trigger,LOW); delayMicroseconds(2); digitalWrite(trigger,HIGH); delayMicroseconds(10); digitalWrite(trigger,LOW); delayMicroseconds(2); time=pulseIn(echo,HIGH); distance=time*340/20000; lcd.clear(); lcd.print("Empty space in"); lcd.setCursor(0,1); lcd.print("tank is: "); lcd.print(distance); lcd.print("CM"); delay(2000); if(distance<12 && temp==0) { digitalWrite(motor, LOW); digitalWrite(buzzer, HIGH); lcd.clear(); lcd.print("Water Tank Full "); lcd.setCursor(0,1); lcd.print("Motor Turned OFF"); delay(2000); digitalWrite(buzzer, LOW); delay(3000); temp=1; } else if(distance<12 && temp==1) { digitalWrite(motor, LOW); lcd.clear(); lcd.print("Water Tank Full "); lcd.setCursor(0,1); lcd.print("Motor Turned OFF"); delay(5000); } else if(distance>60) { digitalWrite(motor, HIGH); lcd.clear(); lcd.print("LOW Water Level"); lcd.setCursor(0,1); lcd.print("Motor Turned ON"); delay(5000); temp=0; } }
  • 7. 6. Possible Applications: a. It will automate the water levelling and controlling. b. It can be used in homes c. It can also be used in industries, hotels, offices. d. It will greatly avoid water usage. 7. Conclusion: Water is one of the necessities of life. Every government in every country is emphasizing on avoiding water wastage. It will greatly reduce the water wastages if it will be implemented in especially govt offices and departments, private industries, hotels and even in homes. SAVE WATER, SAVE LIFE.