Adem Embeded Project
Adem Embeded Project
Project
Hossana, Ethiopia
January, 2023/2017E.C.
2017
1.1 Introduction
Water level control systems are essential for efficiently managing and controlling water
resources in various applications, including water tanks, reservoirs, and industrial processes.
Automation of water level monitoring not only conserves water but also ensures a stable
supply by reducing overflow and dry-run scenarios. This project aims to design a water level
control system using the 8051 microcontroller, an affordable and accessible microcontroller for
entry-level automation projects. Through real-time monitoring and control, this system will
maintain desired water levels while minimizing human intervention Water level controller, the
name itself indicates that an electronic device or circuit kit used for controlling the water level
can be termed as a water level controller. It is difficult to know the level of water in the
overhead tank such that wastage of water can happen frequently. To conserve water, avoid
overflow of water in the overhead tank which may cause loss of water, loss of electrical power,
etc.,. Thus, an ultrasonic water level controller using 8051 microcontroller is an innovative
electronics project application for controlling water level.
A Water Level Controller using the 8051 Microcontroller project will help in automatically
controlling the water motor by sensing the water level in a tank. This article explains how to
detect and control the water level in an overhead tank or any other container. This system
monitors the water level of the tank and automatically switches ON the motor whenever the
tank is empty.
2. Problem Statement
Water wastage due to uncontrolled overflow and pump operation during low water levels poses a
challenge in residential, agricultural, and industrial settings. Traditional manual monitoring of
water levels is inefficient and prone to errors. This project addresses the problem of automating
water level monitoring and control using an 8051 microcontroller, enabling efficient water
management and conserving resources.
3 General Objective
To develop an automated water level control system using an 8051 microcontroller, ensuring
efficient water management by preventing overflow, conserving water, and reducing the need for
manual intervention.
4 Specific Objectives
Real-Time Water Level Monitoring: Implement water level sensors to provide continuous, real-
time feedback on water levels to the microcontroller.
Automatic Pump Control: Program the 8051 microcontroller to switch the water pump on and
off based on preset high and low water level thresholds.
Overflow and Dry-Run Prevention: Design the system to prevent overflow by stopping the pump
when the water reaches maximum capacity and prevent dry runs by starting the pump at the
minimum threshold.
Cost-Effective Solution: Utilize affordable and accessible components, making the system viable
for small-scale applications such as households or small industry Low Power Consumption: 4.
6 Significance
The project provides an efficient, low-cost solution for water management, with
significant benefits:
Water Conservation: Automating the water level control reduces waste from
overflow.
Cost Reduction: Minimizes energy costs by running the pump only when
necessary.
Reliability: Automation reduces human error in monitoring and controlling water
levels.
Scalability: The basic setup can be modified for larger or more complex systems.
6. Literature Review
Several studies and projects have explored microcontroller-based water
level control systems. Previous research indicates the following trends
and findings:
Components used
Dc motor
A DC motor is an electrical motor that uses direct current (DC) to produce mechanical force. The
most common types rely on magnetic forces produced by currents in the coils. Nearly all types of
DC motors have some internal mechanism, either electromechanical or electronic, to periodically
change the direction of current in part of the motor.
Dc motor
3 Methodology
The methodology for designing the water level control system using an 8051 microcontroller
includes the following key steps:
1. System Design and Planning
Requirement Analysis: Identify the components needed for the water level control system, such
as the 8051 microcontroller, water level sensors, a relay module for pump control, and other
electronic components (e.g., resistors, transistors).
System Design Layout: Create a circuit diagram for the system, indicating connections between
the microcontroller, sensors, pump relay, and power supply.
2. Component Selection
Microcontroller (8051): Select the 8051 microcontroller for controlling the sensors and
managing the pump operations.
Water Level Sensors: Choose appropriate sensors (float, conductive, or ultrasonic) based on
factors like tank type, cost, and required accuracy.
Relay Module: Integrate a relay module to interface the microcontroller with the water pump,
allowing the 8051 to control the pump based on sensor input.
Power Supply: Choose a stable power supply for the microcontroller and other components.
3. Circuit Development
Circuit Assembly: Assemble the components based on the designed circuit diagram, connecting
the sensors to the microcontroller's input pins and the relay module to the output pins.
Sensing Circuit Configuration: Set up the sensors at different tank levels (low, medium, high) to
monitor water levels and provide signals to the microcontroller.
Pump Control Setup: Connect the pump to the relay module and test its switching mechanism to
ensure it responds accurately to control signals.
4. Microcontroller Programming
Software Development: Write code in Assembly or C language to program the 8051
microcontroller for:
Reading input signals from the water level sensors.
Controlling the relay to turn the pump on/off based on the water level.
Control Logic: Implement logic to ensure the pump turns on when water is below a minimum
level and turns off when the water reaches the maximum level. Include safeguards for scenarios
like sensor failure.
Simulation Testing: Test the program in a simulation environment to verify the control logic and
make adjustments as needed before deploying it on the physical hardware.
5. System Integration and Testing
Department of electro mechanical engineering Page 9
2017
Prototype Assembly: Assemble the complete system with the programmed microcontroller,
sensors, relay, and pump.
Initial Testing: Perform initial testing by varying water levels in the tank to observe if the system
accurately detects levels and controls the pump accordingly.
Calibration: Adjust thresholds in the microcontroller program based on testing results to improve
accuracy in real-world scenarios.
Troubleshooting: Identify and fix any issues such as sensor inaccuracies, relay malfunctions, or
programming errors.
6. System Evaluation
Performance Testing: Evaluate the system under different conditions, such as fluctuating water
levels, power interruptions, and high pump usage.
Reliability Analysis: Assess the reliability and durability of the system over time, especially in
terms of sensor performance and relay longevity.
Documentation: Document all steps, circuit diagrams, code, and test results for future reference
and potential improvements.
7. Implementation and Final Adjustments
Installation in Real-World Environment: Deploy the system in a practical setting (e.g., household
water tank or agricultural field) and monitor its performance.
Final Adjustments: Based on practical usage, make any necessary adjustments to improve
efficiency or address any observed issues
Circuit diagram
Circuit diagram
Conclusion
Department of electro mechanical engineering Page 13
2017
The water level control system using an 8051 microcontroller provides an efficient, automated
solution for maintaining optimal water levels in a tank. By leveraging simple water level sensors,
a relay circuit, and programmable logic in the 8051 microcontroller, the system is capable of
turning a water pump on and off as needed to prevent overflow or dry running, thus conserving
water and energy.
This project demonstrates how microcontrollers can be effectively used in real-world
applications to automate tasks, reducing the need for human intervention while improving
reliability and consistency. Additionally, the system is relatively low-cost and easy to implement,
making it suitable for a range of environments, including residential, agricultural, and industrial
settings.
Through testing and calibration, the water level control system proves to be a robust solution,
adaptable to specific requirements, and potentially expandable with additional features like
display modules or alarms for enhanced monitoring
Future work
Future work on the water level control system can focus on enhancing its functionality and
efficiency by integrating IoT capabilities for remote monitoring and control, enabling real-time
Department of electro mechanical engineering Page 14
2017
data access and alerts via mobile apps or web interfaces. Additionally, upgrading to advanced
sensors like ultrasonic or capacitive sensors can provide more accurate and continuous water
level measurements. Incorporating energy-efficient features, such as solar power or variable-
speed pumps, can improve sustainability. Expanding the system to manage multiple tanks,
implementing alarm systems for safety, and adding data logging and analytics for better water
usage tracking will further optimize performance. These advancements would make the system
more versatile, reliable, and adaptable to diverse environments.
2.Mazidi, M. A., & Mazidi, J. G. (2009). The 8051 Microcontroller and Embedded Systems:
Using Assembly and C. Pearson Prentice Hall.
3.Patel, V. K., & Patel, S. H. (2016). Water Level Controller System using 8051
Microcontroller. International Journal of Advanced Research in Computer Science, 7(4), 19-22.
4.S. P. Kumbhar, P. A. Kharde. (2012). Water Level Monitoring and Control System using 8051
Microcontroller. International Journal of Emerging Technology and Advanced Engineering, 2(9).
5.M. S. Kamaruddin, A. R. B. Daut, M. A. M. Zaki. (2016). Internet of Things (IoT) based water
level monitoring and control system for agriculture. International Journal of Engineering and
Technology, 8(5), 354-360.
6 .Sharma, D., & Agarwal, N. (2018). Smart Water Management using IoT: A Review.
International Journal of Computer Applications, 179(10), 1-7.