Department of Electronics and Communication Engineering
Department of Electronics and Communication Engineering
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.
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.