Smart Water Monitoring System: BY Shanmuga Ashwinth Shylesh Raghul Kiranniketh C Iii - Mca (B1)
Smart Water Monitoring System: BY Shanmuga Ashwinth Shylesh Raghul Kiranniketh C Iii - Mca (B1)
Smart Water Monitoring System: BY Shanmuga Ashwinth Shylesh Raghul Kiranniketh C Iii - Mca (B1)
Monitoring System
BY
SHANMUGA ASHWINTH
SHYLESH
RAGHUL
KIRANNIKETH C
III – MCA (B1)
Components Used
Arduino Nano
20*4 dISPLAY
LM317 Module
6VDC Relay
Automatic Water Monitoring
System
Automatically Controls the Water level in the water Tank
Avoids wastage of Water as well as the Electricity
It can be used in House and huge commercial Complex
Source Code
int e; pinMode(motor,OUTPUT);
int r; //Water Pump status flag lcd.begin(20, 4);
int m=0; //water Pump flag }
int z=111; void loop()
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); {
void setup() r=digitalRead(motor);
{ a=analogRead(level1);
pinMode(level1,INPUT); b=analogRead(level2);
pinMode(level2,INPUT); c=analogRead(level3);
pinMode(level3,INPUT); d=analogRead(level4);
pinMode(level4,INPUT); e=analogRead(level5);
pinMode(level5,INPUT); lcd.clear();
Contd:
lcd.clear(); else
lcd.setCursor(2,0); {
lcd.print("SARK-PROJECT"); if(e<z && d>z && c>z && b>z && a>z )
lcd.setCursor(0,1); {
lcd.print("Water Level Monitor."); lcd.setCursor(1,2);
if(e>z && d>z && c>z && b>z && a>z ) lcd.print("Tank is 80% FULL");
{ }
{ else
digitalWrite(motor,LOW); {
} if(e<z && d<z && c>z && b>z && a>z )
lcd.setCursor(1,2); {
lcd.print("Tank is 100% FULL"); lcd.setCursor(1,2);
} lcd.print("Tank is 60% FULL");
}
Contd
else
else
{if(e<z && d<z && c<z && b<z && a<z )
{
{{
if(e<z && d<z && c<z && b>z && a>z )
digitalWrite(motor,HIGH);
{
}
lcd.setCursor(1,2);
lcd.setCursor(3,2);
lcd.print("Tank is 40% FULL");
lcd.print("Tank is EMPTY");
}
}
else
}}}}
if(e<z && d<z && c<z && b<z && a>z )
if(r==LOW)
{
{
lcd.setCursor(1,2);
lcd.setCursor(0,3);
lcd.print("Tank is 20% FULL");
lcd.print("Water Pump is (OFF)");
}
else
{
lcd.setCursor(0,3);
lcd.print("Water Pump is (ON)");
}
{
delay(100);
lcd.clear();
}}