Smart Water Monitoring System: BY Shanmuga Ashwinth Shylesh Raghul Kiranniketh C Iii - Mca (B1)

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

Smart Water

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();
}}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy