DEPARTMENT OF ELECTRONICS AND
COMMUNICATION ENGINEERING
WATER LEVEL INDICATOR USING
ARDUINO & ULTRASONIC SENSOR
Presented by :
T.PavanKalyan.
[ 17NE1A04F7 ]
INTRODUCTION
• In our day to day activities, it is common to have shortage of water or
overflow of water in our storage tanks.
• This may cause water spillage and at times the individual might not know that
the water level has dropped so low until the tank is completely emptied.
• So why not build a system that monitors and controls this essential part of our
life?
AIM & OBJECTIVES OF THE STUDY
• Tonotify the user the amount of water that is present in the
overhead water tank.
• Toconstruct an electronic device that can automatically detect water
level ( High and Low ) with high precision.
• To control the supply of water.
• To automatically shut down when the tank is filled-up.
COMPONENTS:-
• Arduino uno
• Ultrasonic Sensor (HC-SR04)
• LCD (16X2)
• Switch
• Battery
• RF Transmitter Receiver Pair
• Bread Board
• Jumper wires
Working principle :-
• Ultrasonic sensor is used in the transmitter circuit. It has a trigger and an echo
pin.
• After the HC-SR04 is triggered, it sends out eight 40Khz sound waves to the
surface of the water.
• Distance = ( time/2 ) * speed of sound
• Receiver circuit receives the data from transmitter circuit and converts it in
terms of the percentage and shows on LCD.
Flow chart:- START
Initializing the ultrasonic sensor
module
Calibrating the values from the
sensor
Check the
If If
water
Full Empty
level
Buzzer Buzzer
ON OFF
Motor Motor
Switch Switch
OFF ON
Transmitter Circuit:-
Receiver Circuit:-
Transmitter Code:-
#include<RCSwitch.h>
#include <Ultrasonic.h>
Ultrasonic ultrasonic(11,10);
RCSwitch mySwitch = RCSwitch();
int i;
void setup()
{
mySwitch.enableTransmit(4);
}
void loop()
{
i = ultrasonic.Ranging(CM);
mySwitch.send(i, 24);
delay(100);
}
Receiver Code:-
#include <RCSwitch.h>
#include <LiquidCrystal.h>
float level;
int Hval=2;
int Lval=12;
int BUZZER = 10 ;
void setup() {
mySwitch.enableReceive(0);
pinMode(BUZZER,OUTPUT);
}
void loop()
{
if (mySwitch.available()) {
level = mySwitch.getReceivedValue();
level = level/(Lval - Hval);
level = level*100;
if (level > 100) {
digitalWrite(BUZZER,HIGH);
delay(100);
else{
digitalWrite(BUZZER,LOW);
delay(100);}
else {
digitalWrite(BUZZER,LOW);
}
Advantages:- Disadvantages:-
• Power Saver • Water level controls need to be
replaced every 3 years.
• Money Saver
• Ultrasonic sensor is very
• Automatic sensitive to variation in the
• Reliable Electronic Design temperature.
• Ultrasonic sensor is not affected • Some materials may absorb
due to atmospheric dust, rain, the ultrasonic sound waves
snow etc. rather than reflecting them.
Conclusion:-
• The main objective of this project is not only to reduce manual
labour but also save water in an efficient manner.
• Finally, a conclusion can drawn that this project can definitely be
useful on a large scale basis due to its minimum requirement of
man power and also the installation process being easier making it
more compatible for everyone to use.
THANK YOU
FOR
LISTENING