Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
18 views21 pages

Iot Mini

The document is a project report on a Water Level Detector designed for the Bachelor of Engineering degree at Savitribai Phule Pune University. It details the system's design, methodology, components, and working principles, emphasizing its capabilities in real-time water monitoring and flood prevention using ultrasonic sensors. The project aims to provide a cost-effective, accurate, and scalable solution for efficient water resource management.

Uploaded by

Janhavi Raikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views21 pages

Iot Mini

The document is a project report on a Water Level Detector designed for the Bachelor of Engineering degree at Savitribai Phule Pune University. It details the system's design, methodology, components, and working principles, emphasizing its capabilities in real-time water monitoring and flood prevention using ultrasonic sensors. The project aims to provide a cost-effective, accurate, and scalable solution for efficient water resource management.

Uploaded by

Janhavi Raikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

A MINI PROJECT REPORT ON

WATER LEVEL DETECTOR

SUBMITTED TO THE SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE


IN THE PARTIAL FULFILLMENT OF THE REQUIREMENTS
FOR THE AWARD OF THE DEGREE

OF

BACHELOR OF ENGINEERING (COMPUTER ENGINEERING)

SUBMITTED BY

STUDENT NAME Exam No :


AMIT NINGAPPA PUJARI T1905304359
JANHAVI RAHUL RAIKAR T1905304360
IMAM MAHAMAD SHAIKH T1905304384
GAURANG VIPUL SONAWANE T1905304400
RUSHIKESH SANJAY UTTEKAR T1905304414
KRISHNA NARESH YERNE T1905304431

DEPARTMENT OF COMPUTER ENGINEERING

Zeal College of Engineering & Research


NARHE, PUNE - 411041
SAVITRIBAI PHULE PUNE UNIVERSITY
2022 -2023

CERTIFICATE

This is to certify that the project report entitles

“WATER LEVEL DETECTOR”

Submitted by

STUDENT NAME Exam No:


AMIT NINGAPPA PUJARI T1905304359
JANHAVI RAHUL RAIKAR T1905304360
IMAM MAHAMAD SHAIKH T1905304384
GAURANG VIPUL SONAWANE T1905304400
RUSHIKESH SANJAY UTTEKAR T1905304414
KRISHNA NARESH YERNE T1905304431

is a bonafide student of this institute and the work has been carried out by him/her under the
supervision of Prof. Rakhi S. Punwatkar and it is approved for the partial fulfillment of the
requirement of Savitribai Phule Pune University, for the award of the degree of Bachelor of
Engineering (Computer Engineering).

Prof. Rakhi S. Punwatkar Prof. A. V. Mote


Project Guide H. O. D
Department of Computer Engineering Department of Computer Engineering

(Dr. Ajit M. Kate)


Principal,
Zeal College of Engineering & Research, Pune-41

Place : Pune
Date :
ACKNOWLEDGEMENT

We take this opportunity to thank our project guide Prof. Rakhi S. Punwatkar and
Head of Department Prof. A. V. Mote for their valuable guidance and for providing all the
necessary facilities, which were indispensable in the completion of this project report. We are
also thankful to all the staff members of the Computer Engineering Department for their
valuable time, support, comments, suggestions and persuasion. We would also like to thank
the institute for providing the required facilities, Internet access and important books.

NAME OF THE STUDENTS


AMIT NINGAPPA PUJARI
JANHAVI RAHUL RAIKAR
IMAM MAHAMAD SHAIKH
GAURANG VIPUL SONAWANE
RUSHIKESH SANJAY UTTEKAR
KRISHNA NARESH YERNE
TABLE OF CONTENTS

S.NO CONTENTS PAGE NO

1. Abstract

2. Introduction

3. Principle or Methodology

4. Architecture of project

5. Components required

6. Working

7. Code

8. Output

9. Advantages& conclusions

10. References
ABSTRACT

Water level detection plays a crucial role in managing water resources, flood prevention,
and optimizing irrigation systems. This report presents a comprehensive study on the design and
implementation of a water level detection system using sensor-based technology. The system
utilizes ultrasonic sensors to measure real-time water levels, providing accurate data for
monitoring reservoirs, tanks, and water bodies. Data collected from the sensors is processed and
displayed through an interactive interface, enabling early warning systems for floods and efficient
water usage in agriculture and industrial applications.
The detection system is designed to be cost-effective, scalable, and easy to maintain. It is
integrated with an alert mechanism that triggers alarms when critical water levels are reached,
making it useful for flood control and disaster management. Through this study, we explore the
system’s performance, accuracy, and reliability under various environmental conditions. The
results demonstrate that the system can be a valuable tool in water resource management, offering
potential improvements in safety, sustainability, and resource optimization.
INTRODUCTION

Water level monitoring is a critical component in the management of water resources, flood
control, and agricultural irrigation. With the growing challenges of climate change and
unpredictable weather patterns, efficient and real-time monitoring of water levels has become
essential. Overflows or droughts caused by inadequate water management can lead to severe
economic and environmental consequences. Therefore, developing a reliable and automated water
level detection system is crucial to ensuring sustainable water management.
This project focuses on designing and implementing a water level detection system that
utilizes sensor technology to measure the height of water in various environments, such as
reservoirs, water tanks, and rivers. The system employs ultrasonic sensors that send real-time data
to a microcontroller, which processes and visualizes the information on an interactive interface.
The system is also equipped with an alert feature, providing early warnings in the event of critical
water levels, such as those associated with floods or low-water conditions.
The primary objective of this project is to create an affordable, accurate, and scalable
solution that can be deployed in different settings to monitor water levels effectively. This system
offers a more efficient alternative to manual water level monitoring, reducing human error and
response time in emergencies. Additionally, it contributes to water conservation efforts by
ensuring that water is utilized optimally in agricultural and industrial applications.
Through this project, we aim to address the growing need for automated, real-time water
level monitoring systems that are simple to install, maintain, and operate, while providing valuable
data to help manage water resources responsibly.
PRINCIPLE OR METHODOLOGY

Principle:
The water level detection system operates on the principle of measuring the distance
between a sensor and the water surface using ultrasonic waves. This system relies on the time
taken for ultrasonic pulses emitted by the sensor to hit the water surface and reflect back to the
sensor. By calculating the time delay between the transmission and reception of the sound waves,
the system determines the water level with high accuracy.

Methodology:

Sensor Placement: The ultrasonic sensor is positioned above the water body, facing downward
toward the water surface. The optimal distance from the sensor to the water surface is set based on
the expected range of water level fluctuations.

Data Acquisition: The ultrasonic sensor continuously sends out pulses and receives echoes,
calculating the water level in real time. The data is sent to the microcontroller for further
processing.

Data Processing and Alerts: The microcontroller processes the distance data and compares it
with pre-set threshold values. If the water level exceeds these thresholds (indicating flood risk or
water shortage), the system triggers alarms or notifications.

Continuous Monitoring and Logging: The system can be programmed to log data over time for
trend analysis, allowing users to track changes in water levels and predict potential risks, such as
floods or droughts, in advance.

Power Management: For remote or off-grid installations, low-power modes and renewable
energy sources (such as solar panels) may be employed to ensure uninterrupted operation.
ARCHITECTURE OF PROJECT
COMPONENTS REQUIRED

In this project we have used the arduino and ultrasonic sensor along with the jumping wires and
the relay motors and details list of the hard ware components are:

1. Arduino board and arduino cable:

 Arduino Board: The Arduino board is a microcontroller platform used to control and
interact with sensors and other electronic components. It processes input data (such as from
ultrasonic sensors) and can execute programmed instructions to perform tasks like
triggering alerts based on water level changes.

 Arduino Cable: The Arduino cable, typically a USB cable, is used to connect the Arduino
board to a computer for programming and data transfer. It also provides power to the
Arduino during the development and testing phases.
2. Jumper wires

 Jumper wires: Jumper cables are insulated wires with connector pins on both ends, used to
establish temporary connections between components on a breadboard or directly to a
microcontroller like an Arduino. They are essential for wiring sensors, LEDs, and other
modules in electronic projects.

3. Bread Board

 Bread Board: A breadboard is a reusable platform used for building and testing electronic
circuits without soldering. It allows easy connections between components like sensors,
resistors, and microcontrollers, making it ideal for prototyping and experimenting with circuit
designs.
4. Ultrasonic sensor

 Ultrasonic sensor: An ultrasonic sensor measures distances by emitting high-frequency sound


waves and calculating the time it takes for the echo to return after bouncing off an object, such
as a water surface. It's commonly used in water level detection systems for accurate and non-
contact measurements.

5. LED:

This Photo by Unknown Author is licensed under CC BY-NC-ND

 LED (Light Emitting Diode): An LED is a semiconductor device that emits light when an
electric current passes through it. In water level detection systems, LEDs are often used as
visual indicators to signal different water levels or alert users to critical conditions like
flooding or low water levels.
WORKING

 Working of the Water Level Detection System:


The water level detection system operates by using an ultrasonic sensor to measure the
distance between the sensor and the water surface. The following steps outline the working process
of the system:

1) Sensor Initialization: The ultrasonic sensor is placed at a fixed height above the water body
(such as a tank, reservoir, or river). When the system is powered on, the sensor begins
emitting ultrasonic pulses at regular intervals.

2) Distance Measurement: The sensor emits high-frequency sound waves (ultrasonic waves)
towards the water surface. When these sound waves hit the surface, they reflect back to the
sensor as an echo. The sensor measures the time taken for the sound waves to travel to the
water surface and back.

3) Data Processing: The microcontroller (such as an Arduino board) receives the time data from
the ultrasonic sensor. Using the speed of sound in air, the microcontroller calculates the
distance between the sensor and the water surface using the formula:
4) Distance = (Speed of Sound × Time) / 2
5) The calculated distance is then subtracted from the fixed height of the tank or reservoir to
determine the current water level.

6) Display and Monitoring: The water level data is displayed on an LCD screen or transmitted
to a cloud-based or mobile interface, allowing real-time monitoring. The system continuously
updates the water level measurements, providing live data to the user.

7) Threshold-based Alerts: The system is programmed with predefined water level thresholds
(e.g., minimum and maximum water levels). If the water level falls below or exceeds these
thresholds, the microcontroller triggers a response such as:
 Activating an LED to indicate high or low water levels.
 Sounding an alarm to notify the user.
 Sending a text notification if integrated with a communication module.
8) Automatic Response: In more advanced setups, the system can be connected to pumps or
valves that automatically control the water level. For example, if the water level drops too
low, the system can trigger a pump to refill the tank.

9) Continuous Operation: The system operates continuously, ensuring that the water level is
monitored in real-time. It can also log data over time for trend analysis or future decision-
making regarding water management.

This working mechanism ensures that the system can efficiently monitor water levels,
provide early warnings for critical conditions, and help optimize the usage of water resources.
CODE

// Define pins for ultrasonic sensor, LED, and buzzer


const int trigPin = 9;
const int echoPin = 10;
const int ledPin1 = 7;
const int ledPin = 13;
const int buzzerPin = 6;

// Variables for distance and duration


long duration;
int distance;
int waterLevelThreshold = 5.5; // Set the water level threshold in centimeters

void setup() {
// Initialize the serial communication
Serial.begin(9600);

// Set pin modes


pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(ledPin1, OUTPUT);//7
pinMode(ledPin,OUTPUT);//13
pinMode(buzzerPin, OUTPUT);

// Start with LED and buzzer turned off


digitalWrite(ledPin1, LOW);//7
digitalWrite(ledPin,HIGH);//13
digitalWrite(buzzerPin, LOW);
}

void loop() {
// Send a pulse to trigger the ultrasonic sensor
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

// Read the echo pin to get the duration of the pulse


duration = pulseIn(echoPin, HIGH);

// Calculate the distance in centimeters


distance = duration * 0.034 / 2;

// Print the distance for debugging


Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");

// Check if the distance is below the threshold (water level high)


if (distance < waterLevelThreshold) {
digitalWrite(ledPin1, HIGH); //7
digitalWrite(ledPin,LOW); // Turn on LED-13
digitalWrite(buzzerPin, HIGH); // Turn on buzzer
} else {
digitalWrite(ledPin1, LOW);//7 // Turn off LED
digitalWrite(ledPin,HIGH);//13
digitalWrite(buzzerPin, LOW); // Turn off buzzer
}

// Delay before the next reading


delay(200);
}
OUTPUT
ADVANTAGES

 Advantages of the Water Level Detection System

1) Real-Time Monitoring: The system provides continuous, real-time monitoring of water


levels, allowing users to respond immediately to any critical changes, such as low water levels
or potential flooding.

2) Cost-Effective: The system is designed using affordable components like ultrasonic sensors
and microcontrollers (e.g., Arduino), making it an economical solution for a wide range of
applications, from household water tanks to large reservoirs.

3) High Accuracy: By utilizing ultrasonic sensors, the system ensures precise and non-contact
measurement of water levels, reducing the chances of measurement errors or sensor wear.

4) Automation: The system can automate responses based on water level changes, such as
activating pumps or alarms, which reduces the need for constant manual intervention.

5) Early Warning System: The system can be programmed to send alerts or trigger alarms
when water levels reach dangerous thresholds, providing an early warning for floods or water
shortages.

6) Versatile Applications: This system can be applied in various settings, including agricultural
irrigation, water storage tanks, flood monitoring, and industrial water management.

7) Energy-Efficient: The system consumes minimal power, and it can even be powered by
renewable energy sources like solar panels, making it suitable for remote or off-grid
installations.

8) Data Logging and Analysis: The system can be configured to log water level data over time,
which is useful for trend analysis, future water management planning, and predictive
maintenance.
9) Easy to Install and Maintain: The system’s modular design allows for easy installation and
maintenance, with no need for complex wiring or infrastructure. The non-contact nature of the
ultrasonic sensor also ensures minimal wear and tear.

10) Scalability: The system is highly scalable and can be adapted for both small and large-scale
applications, making it suitable for use in households, agriculture, industries, and municipal
water systems.
CONCLUSION

The water level detection system presented in this project demonstrates an efficient,
accurate, and cost-effective solution for real-time water monitoring. By utilizing ultrasonic sensors
and microcontroller-based automation, the system provides reliable measurements while
minimizing human intervention. This makes it a valuable tool for various applications, including
flood prevention, agricultural irrigation, and water resource management in industrial and domestic
environments.
The system’s ability to provide early warnings through alarms and notifications enhances
safety, while its scalability and low power consumption make it adaptable for use in remote
locations. Additionally, by offering continuous monitoring and data logging capabilities, the
system supports more informed decision-making for sustainable water usage.
In conclusion, this project contributes significantly to addressing the challenges of water
management in an era of increasing environmental uncertainty. Its simple design, affordability, and
robust functionality make it an ideal solution for improving water conservation and ensuring
timely responses to critical water level changes.
REFERENCES

[1] Sharma, R. & Kumar, P. (2021). Water Level Monitoring Using Ultrasonic Sensor and
Arduino. International Journal of Engineering Research & Technology (IJERT), 10(3),
45-50.

[2] Patel, S. (2020). Smart Water Management System Using IoT and Ultrasonic Sensors.
International Journal of Electronics and Communication Engineering, 7(4), 22-30.

[3] Kumar, N., & Meena, R. (2022). Automated Water Level Detection and Monitoring
System Using Microcontroller. Journal of Applied Science & Technology, 15(2), 89-95.

[4] Wang, T. (2021). IoT-Based Water Level Monitoring Systems: A Survey. Journal of
Sensors and Actuator Networks, 10(3), 102-112.

[5] Saini, A., & Gupta, R. (2020). Design and Development of Ultrasonic Sensor-Based
Water Level Monitoring System. Proceedings of the International Conference on
Computing and Communication Technologies, 210-215.

[6] Jadhav, V., & Kale, S. (2019). Water Level Sensing and Flood Detection System Using
IoT and Ultrasonic Sensor. International Journal of Innovative Research in Science,
Engineering, and Technology (IJIRSET), 8(6), 9872-9878.

You might also like