Batch 1
Batch 1
KAKINADA
A Project Report on
1
SMART HYDRO SYSTEM
A Project Report
Submitted in partial fulfillment of the required for the award of the degree of
BACHELOR OF TECHNOLOGY
IN
ELECTRICAL AND ELECTRONICS ENGINEERING
By
PASAM TEJASWI 21KN1A0245
NARENDRA RACHANA 21KN1A0241
P S J N MALLESWARI 21KN1A0243
GUDIVADA KARUN KIRAN 21KN1A0224
DASARI VIJAYA RAJU 21KN1A0215
2
NRI INSTITUTE OF TECHNOLOGY
(An ISO 9001:2015 Certified Institution)
Agiripalli, Krishna Dist – 521 212
Department of Electrical & Electronics Engineering
CERTIFICATE
This is to certify that the Project report entitled “SMART HYDRO SYSTEM” that is a bonafide
record of work done by PASAM TEJASWI (21KN1A0245), NARENDRA RACHANA
(21KN1A0241), PACHIGOLLA S J N MALLESWARI (21KN1A0243), GUDIVADA
KARUN KIRAN (21KN1A0224), DASARI VIJAYA RAJU (21KN1A0215) submitted in partial
fulfillment of the requirements for the award of degree of Bachelor of Technology in Electrical and
Electronics Engineering to the JNTUK during the academic year 2024-25. The results embodied in
this project report have not been submitted to any other University or Institute for the award of any
degree or diploma.
Date:
EXTERNAL EXAMINER
3
ACKNOWLEDGEMENT
All the success in every step of my Project involves great efforts of the masters who guided
me all through the way, forbidding many obstacles and making me to achieve this project a grand
success.
With the sense of gratitude, I wish to express profound regards to my head of the
department Dr. N. SAMBASIVA RAO, Professor and Head, Electrical & Electronics
Engineering Department and my project guide Sri Dr. N. SAMBASIVA RAO, Professor and
Head of the Department for his supervision in framing my project in an outstanding manner and
for his remarkable guidance and encouragement throughout the project.
A special note of thanks to all the faculty members of Electrical and Electronics
Engineering department, for sharing their years of experience and adding momentum to my project.
Project Associates
PASAM TEJASWI 21KN1A0245
P S J N MALLESWARI 21KN1A0243
4
TABLE OF CONTENTS
ABSTRACT 8
CHAPTER 1 INTRODUCTION 10 - 11
1.1 INTRODUCTON
1.2 OBJECTIVE
CHAPTER 2 OVER VIEW OF SYSTEM 13-15
2.1 OVER VIEW OF THE SYSTEM
2.2 WATER LEVEL SENSOR
2.3 CONTROL UNIT
2.4 WATER PUMP
2.5 DISPLAY UNIT
5
5.3 LOGIC
CHAPTER 8 ADVANTAGES 49 – 51
CHAPTER 9 APPLICATIONS 53 – 55
FUTURE IMPLIMENTATION 56 – 57
CHAPTER 10 CONCLUSION 59
CHAPTER 11 BIBLIOGRAPHY 61 – 62
CHAPTER 12 REFERENCES 64 – 65
6
LIST OF FIGURES PAGE NO
7
ABSTRACT
SMART HYDRO SYSTEM
Water management is a crucial aspect of daily life, and improper monitoring often
leads to wastage and resource depletion. With the increasing demand for efficient
water usage, automation plays a vital role in optimizing water consumption. This
project presents an automatic water level indicator and control system using the
Raspberry Pi Pico, an ultrasonic sensor, and a water motor. The system continuously
monitors the water level in a tank and automatically controls the motor to maintain an
optimal level.
By preventing over flow and dry-run conditions, this solution enhances efficiency and
conserves water. The integration of automation in water level monitoring reduces
human intervention, making it an effective and smart water management system.The
system not only ensures uninterrupted water supply but also helps in reducing
electricity consumption by operating the motor only when necessary.
Furthermore, the proposed system can be enhanced with IoT capabilities for remote
monitoring and control, making it a scalable solution for residential, industrial, and
agricultural applications. With minimal cost and easy implementation, this project
offers a sustainable and reliable approach to water management, helping to mitigate
water wastage and promote environmental conservation
8
CHAPTER – 1
9
INTRODUCTION
1.1 INTRODUCTION:
Water is a vital resource, and its efficient management is crucial for both domestic
and industrial applications. Traditional water level monitoring and pump control
systems often rely on manual intervention or basic mechanical mechanisms, which
can be inefficient, prone to errors, and lack real-time monitoring capabilities. With
the advent of modern microcontroller-based systems, it is now possible to automate
water management processes, ensuring precision, reliability, and remote
accessibility.
The ultrasonic sensor measures the distance to the water surface, providing accurate
water level data. Based on predefined thresholds, the Raspberry Pi Pico controls the
motor pump via a *TIP122 Darlington transistor*, ensuring efficient water
management. The LCD display offers a user-friendly interface, while the Bluetooth
module enables remote monitoring and control via a smartphone or PC. This
combination of hardware and software creates a robust, scalable, and cost-effective
solution for water management.
10
1.2 OBJECTIVE:
11
CHAPTER - 2
12
OVER VIEW OF THE SYSTEM
13
2.2 WATER LEVEL SENSOR:
The water level sensor in this project is an *ultrasonic sensor*, which is used to
measure the distance between the sensor and the water surface in a tank or reservoir.
It operates by emitting ultrasonic waves that bounce off the water surface and return
to the sensor. The time taken for the waves to travelback is used to calculate the
water level. The ultrasonic sensor is mounted at the top of the water tank.
It sends ultrasonic pulses downward, which reflect off the water surface.
The sensor calculates the distance to the water surface based on the time taken
for the pulses to return.
This data is sent to the Raspberry Pi Pico, which processes it to
determine the water level and control the pump accordingly
Pump Control: Activates or deactivates the micro motor pump via the
TIP122 transistor based on water level data.
Display Management: Sends water level and temperature data to the LCD
display for real-time monitoring.
Bluetooth Communication: Communicates with the HC-05 Bluetooth
module for remote monitoring and control.
14
2.4 WATER PUMP:
The *micro motor pump* is a key component of the system, responsible for
moving water based on the water level detected by the ultrasonic sensor. It is
controlled by the Raspberry Pi Pico via a *TIP122transistor*This pump ensures
efficient water management, preventing overflow or dry running, and is a reliable
component for automated water control systems.
Water Level Indication: Shows the current water level in the tank,
helping users understand when the pump is active or idle.
15
CHAPTER - 3
16
KEY FEATURES
SMART HYDRO SYSTEM
{Smart Water Pump Controller with Water Level Display}
This innovative system features a smart water pump controller that monitors and
displays real-time water levels, ensuring efficient water management.
17
CHAPTER - 4
18
COMPONENTS
4.1 PC BOARD:
Structure
Base Material:
Typically made from fiber glass or epoxy resin, providing durability and insulation.
Copper Layer:
Thin layers of copper are etched to create conductive pathways for electrical signals.
Solder Mask:
A protective layer applied over the copper traces to prevent short circuit and
corrosion, usually green in colour.
Silkscreen Layer:
Contains printed labels and symbols that indicate component placement and
connections.
Functions:
Electrical Connections: Provides pathways for electrical signals to connect various
components like resistors, capacitors, and integrated circuits.
Mechanical Support: Holds components securely in place, ensuring stability and
durability in operation.
19
4.2 MICRO CONTROLLER (RASPBERRY PI PICO):
264 KB of RAM.
GPIO Pins:
26multi-function GPIO pins, which can be used for various purposes such as digital
input/output, PWM, I2C, SPI, and UART communication.
Connectivity:
Supports C/C++ and Micro Python, making it accessible for beginners and
experienced developers a like.
20
4.3 BLUETOOTH MODULE (HC-05):
It has 6 pins:
Key/EN-NC
VCC to Connect 5V power
GND to power Ground
TXD to Arduino Nano Rx (DO)
RXD to Arduino NanoTx (D1)
State-NC
HC-05 module Information
HC-05 has red LED which indicates connection status, whether the Bluetooth is
connected or not. Before connecting to HC-05 module this red LED blinks
continuously in a periodic manner. When it gets connected to any other Bluetooth
device, its blinking slows down to two seconds.
• It uses Bluetooth SPP (Serial Port Protocol) for transparent data transfer.
21
• It can be configured using AT commands.
• Common applications include wireless communication with micro controllers
like Arduino.
• The HC-05 module is an upgrade of the HC-06.
• It has 6pins.
• The pairing code is1234
Functions:
Wireless Connection: Links the system to your phone or computer.
Remote Monitoring: Lets you check water level sand temperature from a distance.
22
4.4 ULTRASONIC SENSOR:
The *ultrasonic sensor*measures the water level in the tank without touching the
water. It sends sound waves toward the water surface, and when the waves bounce
back, it calculates the distance to the water. This data helps the Raspberry Pi Pico
decide when to turn the pump on or off, ensuring efficient water management.
Ultrasonic sensors have two main components: the transmitter (which emits the
sound using piezo electric crystals) and the receiver (which encounters the sound
after it has travelled to and from the target).
The sensor emits an ultrasonic pulse (sound wave) from the *Trig* pin. The pulse
reflects off the water surface and returns to the sensor's *Echo*pin. The time taken
for the echo to return is used to calculate the distance to the water surface using the
formula:
[{Distance}=\frac{{Speed of Sound}\times{Time}}{2}\]
The water level is then determined by subtracting this distance from the total
height of the tank.
Functions:
Calculates Distance: Uses the echo to figure out how far the water is.
Controls Pump: Helps the system know when to start or stop the pump.
23
4.5 TEMPERATURE SENSOR MADULE (NTC THERMISTOR):
Functions:
Prevents Overheating: Helps keep the system safe by stopping it from getting too
hot.
24
4.6 LCD DISPLAY:
A 16x2 LCD display is very basic module and is very commonly used in various
devices and circuits. A 16x2 LCD means it can display 16 characters per line and
there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix.
A16x2 LCD display is used in a smart water pump controller to show real-time water
level status, pump operation mode, and alerts. It provides a clear, user-friendly
interface, allowing users to monitor water levels efficiently. It enhances automation
by displaying system updates and ensuring smooth operation.
Functions:
25
4.7 WATER PUMP MOTOR:
A water pump motor used in a water pump controller is a crucial element that
enables the automation and regulation of water flow in various applications, such as
irrigation, water supply systems, and drainage. Here’s an in-depth look at how these
motors function with in a controller system, their types, applications, and
considerations for integration.
The micro water pump is that it uses a brushless motor to rotate an impeller, which
increases the pressure of a liquid and transfers it. This DC 3-6 V Mini Micro
Submersible Water Pump is small in size Submersible Pump Motor which can be
operated from a 2.5 ~ 6V power supply. It can take up to 120 liters per hour with a
very low current consumption of 220mA. Just connect tube pipe to the motor outlet,
submerge it in water and power it.
Functions:
Automation: The water pump motor operates under the control of a water pump
26
controller, which uses sensors to monitor water levels and trigger the motor
accordingly.
On/Off Control: The controller turns the motor on when the water level falls below
a predetermined low level and turns it off when the water level reaches a high
threshold.
Remote Operation: Many modern controllers allow for remote monitoring and
control, providing convenience and flexibility
27
4.8 TIP122 TRANSISTOR:
The Darlington NPN transistor-like TIP122 includes Darlingt onbraces & it works
like a normal transistor however includes a Darlington pair. This transistor includes a
decent collector current like 5A&the gain is approximately1000. This kind of
transistor bears 100 volts in the region of both the emitter & collector terminals
because it can be utilized mainly for high loads.
The TIP122 is a Darlington NPN transistor and it is very popular for its high current
gain& high current. As the name suggests, the term Darlington means when the two
transistors are available in a single pack for enhancing the gain at the o/p. The
manufacturing of this transistor can be done like a switch& amplification purposes
Pin Configuration:
Pin1(Base): This pin controls the transistor biasing.
Pin2(Collector): The flow of current will be there throughout this pin.
Pin3(Emitter): This pin is used to drain the current.
The *TIP122 transistor*acts as a switch to control the micro motor pump. It
allows the Raspberry Pi Pico to turn the pump on or off based on the water level
detected by the ultrasonic sensor.
Functions:
28
4.9 RESISTORS:
Resistors play several crucial roles in water pump controllers, contributing to the
overall functionality and performance of the system.
They protect components like LEDs, sensors, and the micro controller from
receiving too much current, which could damage them.
Functions:
29
4.10 CONNECTING WIRES:
30
CHAPTER - 5
31
SOFTWARE IMPLEMENTATION
Key Features:
32
5.2 LIBRARIES USED:
machine Library:
time Library:
33
5.3 LOGIC:
Logic:
Read ultrasonic sensor values.
Compute water level.
Compare with threshold levels.
Control the relay module accordingly.
Based on the water level comparison, the Raspberry Pi Pico sends a signal
to the transistor/relay to turn the pump on or off.
34
5.4 PROGRAMMING CODE:
CODE:
#Initialize LCD
lcd=GpioLcd(rs_pin=Pin(9),
enable_pin=Pin(8),
d4_pin=Pin(5),
d5_pin=Pin(4),
d6_pin=Pin(3),
d7_pin=Pin(2),
num_lines=2,num_columns=16)
lcd.putstr('WATERLVLCTRL')
MAX_DISTANCE_CM = 25.0
def ultra():
trigger.low()
utime.sleep_us(5)
35
trigger.high()
utime.sleep_us(10)
trigger.low()
while echo.value() == 0:
signaloff=utime.ticks_us()
while echo.value() == 1:
signalon=utime.ticks_us()
whileTrue:
try:
#lcd.putstr('WATER ')
distance = ultra()
if distance>=MAX_DISTANCE_CM:
percentage = 0
elif distance <= 0:
percentage=100
else:
percentage=((MAX_DISTANCE_CM-distance)/MAX_DISTANCE_CM)
*100
# Update LCD
lcd.move_to(0, 1)
lcd.putstr("Distance: ")
lcd.move_to(10, 1)
lcd.putstr(str(round(percentage,2))+"%")
36
# Send data over UART
uart.write(f"water:{percentage}%\n")
#Controlmotorandsendalerts if
percentage < 5:
print('water low')
uart.write('water low\n')
m.value(0)
elif percentage > 85:
print('water high')
uart.write('water high\n')
m.value(1)
utime.sleep(1)
except Exception as e:
print(f"Error: {e}")
37
CHAPTER - 6
38
BLOCK DIAGRAM
6.1 BLOCKDIAGRAM:
39
6.2 WIRING THE COMPONENTS:
1. Raspberry Pi Pico:
a. Connect the 3.3V pin to the HC-05 VCC and ultrasonic sensor VCC.
b. Connect the GND pin to the HC-05 GND, ultrasonic sensor GND,
LCD GND, and motor pump GND.
c. Use GPIO pins for communication with the HC-05 (TX/RX), ultrasonic
sensor (Trigger/Echo), and LCD (I2C or parallel pins).
2. HC-05 Bluetooth Module:
a. Connect VCC to 3.3V, GND to GND, TX to a GPIO RX pin, and RX to
a GPIO TX pin (with a voltage divider for level shifting).
3. Ultrasonic Sensor:
a. Connect VCC to 3.3V, GND to GND, Trigger to a GPIO pin, and Echo
to another GPIO pin.
4. LCD Display:
a. Connect VCC to 3.3V, GND to GND, and SDA/SCL pins to the Pico's
I2C pins (if using I2C).
5. Micro Motor Pump:
a. Connect one terminal to the collector of theTIP122 transistor and the
other to the power supply.
b. Connect the emitter of the TIP122 to GND and the base to a GPIO pin
via a resistor.
6. NTC Thermistor:
a. Connect one end to 3.3V and the other to a GPIO pin (with a pull-down
resistor).
7. TIP122 Transistor:
a. Connect the base to a GPIO pin via are transistor, the collector to the
motor pump, and the emitter to GND.
8. Power Supply:
40
a. Ensure all components receive appropriate voltage levels (3.3V for
Pico, HC-05, and sensors; higher voltage for the motor pump if needed).
This set up provides a reliable and efficient water pump control system with real-time
monitoring and remote control capabilities.
41
6.3 EXPLAINATION OF BLOCK DIAGRAM:
The circuit diagram illustrates a water level control system using an Raspberry Pi
Pico, Bluetooth module HC05, an HC-SR04 ultrasonic sensor, a relay module, and a
water pump. The system is designed to automatically control the water level in a tank
by switching the water pump on and off based on the distance measured by the
ultrasonic sensor.
Raspberry Pi Pico:
This is the microcontroller that will manage all the tasks for the system. It is
connected to the other components, processes sensor data, and makes decisions based
on the inputs from the water level and temperature sensors.
It has a range of GPIO (General Purpose Input/Output) pins, which will be used to
control the motor, read sensor data, and communicate withthe Bluetooth module.
HC-05 Bluetooth Module:
This module allows the Raspberry Pi Pico to communicate with a smart phone or
computer wirelessly.
The Bluetooth module is connected to the Pico through the serial communication pins
(TX/RX) and will allow you to remotely control the pump (turn it ON or OFF) via
commands sent from your phone.
LCD Display(16x2):
The LCD screen will display the current water level and water temperature
42
A Negative Temperature Coefficient (NTC) thermistor is used to measure the
temperature of the water in the tank.
The resistance of the thermistor changes with temperature, so we can use it in a
voltage divider circuit to determine the water temperature.
TIP122 Transistor:
This transistor is used to switch on or off the motor pump because the Raspberry Pi
Pico can't supply enough current to run the pump directly.
The TIP122 acts as a switch that is controlled by a GPIO pin of the Raspberry Pi Pico
to turn the motor on or off.
Resistors:
Resistors are needed for components like the thermistor in the voltage divider and for
current limiting on GPIO pins.
43
CHAPTER - 7
44
WORKING PRINCIPLE
- The ultrasonic sensor is placed at the top of the water tank to measure the
distance to the water surface.
- The Raspberry Pi Pico processes the distance data and calculates the water level
percentage.
- Based on predefined threshold levels:
- If the water level is below the minimum threshold, the motor turns ON to fill
the tank.
- If the water level reaches the maximum threshold, the motor turns OFF to
prevent overflow.
- LED indicators or a buzzer can be used to notify users of different water levels,
providing real-time alerts.
- The system continuously monitors the water level and updates the motor’s
status accordingly, ensuring efficient water manage
45
7.1 CIRCUIT:
The ultrasonic sensor's Trigger and Echo pins are connected to GPIO pins of the
Raspberry Pi Pico.
The relay module is connected to another GPIO pin to control the water motor.
The power supply is provided as per the motor and Raspberry Pi Pico requirements.
1. Distance Measurement: micro controller sends a short pulse to the trigger pin of
the HC-SR04, which emits an ultrasonic burst. The sensor then listens for the echo on
its echo pin.
46
When the water level reaches the desired level (distance is low), the microcontroller
deactivates the relay, stopping the pump.
47
CHAPTER - 8
48
ADVANTAGES OF SMART HYDRO SYSTEM
- system automates water level monitoring and pump control, reducing manual
intervention and ensuring efficient water usage.
- Prevents overflows and dry running, which can damage the pump and waste
water.
2. Real-Time Monitoring:
- The ultrasonic sensor provides accurate and real-time water level measurements,
displayed on the LCD for easy visualization.
- Users can instantly see the water level status without physical inspection.
- The HC-05 Bluetooth module enables wireless control and monitoring via a
smartphone or PC, adding convenience and flexibility.
- Users can operate the system from a distance, making it ideal for hard-to-reach
locations.
4. Temperature Monitoring:
- The NTC thermistor ensures the system operates within safe temperature ranges,
preventing overheating or freezing.
- Adds an extra layer of protection for the pump and other components.
49
- The use of standard components like the ultrasonic sensor, LCD, and TIP122
transistor makes the project economical.
6. Energy Savings:
- Prevents energy wastage by turning off the pump when the water level is
adequate.
7. User-Friendly Interface:
- The LCD display provides a clear and intuitive interface for real-time system
status.
- The use of robust components like theTIP122 transistor and ultrasonic sensor
ensures reliable and long-lasting performance.
- By maintaining optimal water level sand automating pump control, the system
minimizes water wastage, contributing to water conservation efforts.
50
- The automated system reduces the need for frequent manual checks and
maintenance, saving time and effort.
51
CHAPTER - 9
52
APPLICATIONS OF SMART HYDRO SYSTEM
This project has a wide range ofpracticalapplications across various domains due to its
automation, real-time monitoring, and remote control capabilities. Below are some
key applications:
53
o Boiler Feed Systems: Ensures optimal water levels in boilers to
prevent damage and improve efficiency.
o Waste water Treatment: Manages water levels in treatment tanks or
reservoirs, ensuring smooth operation of treatment plants.
54
*Commercial and Public Facilities*
55
FUTURE ENHANCEMENT
The current system is functional and efficient, but there are several enhancements that
can be implemented to improve its capabilities, scalability, and user experience.
Below are some potential future enhancements:
1. *IoT Integration*
o Cloud Connectivity: Integrate the system with IoT platforms (e.g.AWS IoT,
Google Cloud, or Think Speake) for remote monitoring and control via the
internet.
o Data Logging: Store water level, temperature, and pump status data in
the cloud for historical analysis and trend monitoring.
o Mobile App: Develop a dedicated mobile app for real-time notifications,
alerts, and control.
2. *Advanced Sensors*
o Solar Power Integration: Add a solar panel and battery system to make
the project eco-friendly and suitable for off-grid locations.
56
o Low-Power Mode: Implement sleep modes or low-power operation for the
Raspberry Pi Pico and peripherals to reduce energy consumption.
o Touch screen Display: Replace the LCD with a touch screen for a
more interactive and user-friendly experience.
o Voice Control: Integrate voice assistants like Alexa or Google Assistant
for hands-free control.
o Graphical Visualization: Display water level trends and pump activity
in graphical form on the LCD or mobile app.
6. *Multi-Tank Support*
57
CHAPTER - 10
58
CONCLUSION
The *SMART HYDRO SYSTEM* project is a smart, efficient, and easy-to-use
solution for managing water levels and pump operations. Using a Raspberry Pi Pico,
sensors, and Bluetooth, it automates water control, saves energy, and prevents water
wastage. It’s perfect for homes, farms, industries, and more.
The project’s compact design, cost-effectiveness, and ease of use make it accessible
to a wide audience, from hobbyists and students to professionals and farmers. With
future enhancements like IoT integration, advanced sensors, and smart automation,
this system has the potential to evolve into a cutting-edge solution for modern water
management challenges.
In simple:
This project provides an efficient solution for automatic water level monitoring and
control, ensuring optimal water usage. The integration of Raspberry Pi Pico and
ultrasonic sensing makes the system cost-effective and reliable.
59
CHAPTER - 11
60
BIBLIOGRAPHY
Press, 2021.
61
Embedded Computing Design. Real-Time Water Level Monitoring Using IoT and
Microcontrollers, 2021.
Google Cloud IoT Solutions. Cloud-Based Remote Monitoring for Smart Water
Systems, 2023.
62
CHAPTER - 12
63
REFERENCES
Wang, Y., & Kumar, R. (2022). IoT-Based Smart Water Management Systems: A
Review. IEEE Access.
Li, J., & Zhao, H. (2021). Wireless Sensor Networks for Water Level Monitoring in
Smart Cities. Elsevier.
Kumar, P., & Singh, A. (2020). Optimization of Energy-Efficient Water Pumps for
Smart Agriculture. Springer.
Johnson, M., & White, R. (2019). Embedded System Design for Water
Conservation. MIT Press.
Patel, S., & Sharma, V. (2022). Integration of IoT with Smart Water Control
Systems. Science Direct.
Gupta, R., & Bose, T. (2023). Advancements in Ultrasonic Sensors for Water
Monitoring. Journal of Emerging Technologies.
Ramesh, D., & Nair, P. (2020). A Comparative Study on Water Pump Control
Mechanisms. IEEE Transactions.
Wilson, C., & Ahmed, M. (2019). Renewable Energy Solutions for Smart Water
Pumps. Journal of Renewable Energy.
Davis, K., & Anderson, H. (2021). Low-Power IoT Sensors for Smart Water
Monitoring. Elsevier.
64
Roberts, J., & King3, P. (2022). Cloud-Based Water Monitoring: A Case Study.
Springer.
Jackson, L., & Patel, R. (2020). Real-Time Data Acquisition for Water Level
Control. Journal of Intelligent Systems.
Martin, D., & Lee, K. (2021). Smart Homes and Water Management: Challenges
and Innovations. Science Direct.
Thompson, G., & Rogers, B. (2022). Sensor Calibration Techniques for Water
Monitoring Devices. MIT Press.
United Nations Water Report. (2023). Smart Water Management for Global
Sustainability. UN Publications.
65