Professional Documents
Culture Documents
Water Controller Mini Project1
Water Controller Mini Project1
BY
Mr. B. N. Rajole
Principal
NDMVPS’s KBT College of Engineering
Is successfully completed by
At
We would like to take this opportunity to thank our internal guide Mr.B.N.Rajole for giving
us all the help and guidance we needed. We are really grateful to them for their kind support.
Their valuable suggestions werevery helpful.
With deep sense of gratitude we thank to Principal and Management of NDMVPS’s KBT
College of Engineering, Nashik for providing all necessary facilities and their constant
encouragement and support THANK YOU...
Project members :
Kankal Shubhangi
Patil Vaishanavi
Wadekar Onkar
Abstract
The main objective of the project is this system mainly works on a principle that “water
conducts electricity”. The four wires which are dipped into the tank will indicate the different
water levels. Based on the outputs of these wires, microcontroller displays water level on LCD
as well as controls the motor.The motor is switched OFF when the overhead tank or container
is FULL. Here, the water level of the tank is indicated on LCD (Liquid crystal Display). Using
this system, we can avoid the overflow of the water. But, here we are designing the circuit which
is used to detect and control the water level automatically in overhead tank using 8051
microcontroller.
Water Level Controller using 8051 Microcontroller project will help in automatically
controlling the water motor by sensing the water level in a tank. This system monitors the water
level of the tank and automatically switches ON the motor whenever tank is empty. The motor
is switched OFF when the overhead tank or container is FULL. Here, the water level of the tank
is indicated on LCD (Liquid crystal Display). Using this system, we can avoid the overflow of
the water. But, here we are designing the circuit which is used to detect and control the water
level automatically in overhead tank using 8051 microcontroller. In this system, water sensing
can be done by using a set of 4 wires, which are placed at different levels in tank. DC supply
probe is placed at the base of the tank.
Contents
1. Introduction
1.1 Introduction…………………………………..........................................8
1.2 Need of project…………………………………………………………………..9
1.3 Motivation…………………………………………………………………………9
1.4 Objectives………………………………………………………………………….9
1.5 Applications………………………………………………………………………9
1.6 Advantages………………………………………………………………………10
1.7 Limitations………………………………………………………………………10
2. Proposed Work
4. Software Implementation
4.1 Program Flowchart…………………………………………………………..28
4.2 Program Algorithm…………………………………………………………..29
5. Result
5.1 Simulation Result……………………………………………………………..31
7. References…………………………………………………………………………37
Chapter – 1
Introduction
1.1 Introduction
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, ultrasonic water level controller
using 8051 microcontroller is an innovative electronics project application for controlling
water level.
Water Level Controller using 8051 Microcontroller project will help in automatically
controlling the water motor by sensing the water level in a tank. This article explains you
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 tank is empty.
The motor is switched OFF when the overhead tank or container is FULL. Here, the
water level of the tank is indicated on LCD (Liquid crystal Display). Using this system, we
can avoid the overflow of the water.
But, here we are designing the circuit which is used to detect and control the water level
automatically in overhead tank using 8051 microcontroller.
In this system, water sensing can be done by using a set of 4 wires, which are placed at
different levels in tank. DC supply probe is placed at the base of the tank. The water level
controller using 8051 microcontroller automatically switches ON the motor
whenever the tank is empty and switches OFF the motor whenever the tank is full.
In our day-to-day life we use overhead water tank, if water level controller is designed,
then we can save water and electrical energy also. The water level controller block diagram
is shown below figure which consists of water sensors, transistor, level indicator, battery.
The water level sensors used in this project are insulated copper cables, three water
sensor cables are used for demonstrating three levels of water, such as empty, half and full
levels of water in overhead tank.
1.2 Need of project:
A water level controller is a device that manages water levels on a variety of systems
such as water tanks, pumps and swimming pools. The basic function of a water level
controller is to regulate water flow and optimize system performance. One of the main
advantages of water level control devices includes the ability to control power fluctuations when
the motor is switched on. Most of these devices ensures uninterrupted water supply by filling the
overhead tank once it is below level. The motor power is switched on when the overhead tank
becomes empty and switches off automatically when the underground tank is empty or the
overhead tank becomes full. In this way it becomes easy to ensure 24 hours water supply without
any kind of interruption.
1.3 Motivation:
The use of water level control devices also avoids running the pumps during odd
hours, particularly at night. It also ensures maximum water supply during peak hours
especially during morning hours. The special sensors and time controllers are apt in
pumping the water level to its maximum before the peak hours. It also maintains the
water level throughout the day.
1.4 Objectives:
The use of water level control also avoids running the pumps during odd hours,
particularly at night. It also ensures maximum water supply during peak hours especially
during morning hours. The special sensors and time controllers are apt in pumping the
water level to its maximum before the peak hours. It also maintains the water level
throughout the day.
1.5 Applications:
• Saves Power
Using a water level controller saves power. This is because water levels are controlled
automatically, which limits the amount of electricity used. As a result, less water and power
are used to regulate a water supply. In an age where energy conservation is of utmost
importance, using one of these devices is very beneficial.
1.7 Limitations:
• The Rust ,Foul And Deteriorate .
• Wire Use In The Tank Can Be Replaced Every two years.
Chapter – 2
Proposed Work
2.1 Block Diagram
Power Supply(5v)
This power-supply provide the constant 5v to the LCD, microcontroller ,tank
wires , SPDT relay.
8051 Microcontroller :
Microcontroller Receive The Input From Tank 1 & Tank 2 And Send the Signal,
According To The Program to LCD And BC547 transistor .
LCD(16X2):
LCD Indicate The Water Level Of The Tank Which Is Full OR Empty And Also
Indicate The Motor Is ON Or OFF.
BC547 Transistor:
This Transistor Is Receive The Signal From Microcontroller And It is Use For
Switching Purpose. It Provide Ground To The Relay According The Input.
SPDT Relay:
This Relay Is Also Use For The Switching Purpose This Relay Complete The
Ground From The Transistor And Connect To The NO & NC To Turn ON Or OFF
The Motor.
Submersible Pump(Motor):
It Is Submersible Pump(Motor). This Motor Is ON & OFF According To The relay.
This Motor Receive The Water From Tank 2 And Given To Tank1.
2.2 Circuit Diagram
5v Dc Power Supply
2.2.1 Working of Circuit Diagram
Step-Down Transformer:-
A step down transformer is used to step down the voltage from the input AC to the
required voltage of the electronic device . 230V , 50Hz AC mains supply is applied to the step-
down transformer which convert the high voltage into low voltage. Step down transformer
convert the 230V into the 12V.Then This Voltage Is Given to the Bridge Rectifire.
Bridge Rectifire:-
The Full wave rectifier consists of four diodes which rectifies the output AC voltage
or current from to its equivalent DC quantity. At the time of conducting only two diodes are
conduct so the voltage drop across the bridge rectifier is 1.4V. The rectified DC output is given
as input to the filter circuit.
Filter Capacitor:-
The filter circuit is used to convert the high rippled DC output of the FWR to ripple
free DC content. A filter is used to make the waveforms ripple free.
Voltage Regulator :-
The voltage regulator receives the signal from the filter and delivers a constant
voltage to the load. We Use LM 7805 IC for conctant 5 volts. the drop acroos the 7805 IC is 3
volts.
2.3 Power Supply Calculations:
Power supply :- We Have Require 5V , 1.5Amp Power Supply
A) VOLTAGE:-
Therefore,
VLDC=5V+3V+1.4V=9.4V
1) From VLDC the Vm is calculated,
VLDC = (2Vm/π)
9.4 = ( 2Vm / π)
Vm = [(9.4 × π)/2]
Vm = 14.76 Volts
Because In market transformer with 12,18,24 volts available. So, from them
we are
using 12volts Transformer.
During any given time, two diodes will be conducting, while the other two diodes
will have a reverse voltage applied across them. This reverse voltage is the
minimum voltage that the diodes should be able to withstand.
Our transformer output voltage is 12V. This voltage is RMS voltage, and not the
peak output voltage of the transformer
VRMS = (Vm/ √2)
12 = (Vm/√2)
Vm =16.97volts
B) CURRENT:-
2) Diode selection:-
VDR = Vm x 2
VDR = 16.92V x 2
VDR = 33.94V
This is the minimum reverse voltage. A good practice is to rate the diodes
for
at least twice the calculated rating:
PIV = 33.94V x 2
The power supply is rated at ILDC= 1.5A contiuous. This is the minimum
current rating of the diodes. A good practice is to rate the diodes grater
than 1.5
Amp and Also As Iavg = 1.35 Amp which can be easily sustain by 1N5402
having current rating of 3 Amp with PIV rating as 200 volt.
At the same time Input to 7805 IC will be 12 volts which it can easily sustain
3) Selection of capacitor:
Lastly, capacitor C is used to filter out the 50Hz components present on the DC
output.
Output Current:-
Relay-500m-750 mAmp
8051 Microcontroller-250mAmp
Lcd 16x2=10mAmp
Reset=250mAmp
All pull Resister & Switches =100mAmp
Total Current=1.5Amp
Maximum Ripple: 5%
Calculating C
Vc x C = I x t
where:
Vc = ( 5 / 100 ) x 5V
Vc = 0.25V
I = 1.5A, given
t = 1 / ( 2 x frequency )
t = 1 / ( 1.5x 50 )
t = 0.01 second
Now:
Vc x C = I x t
C = 0.06 Farad
C = 60 000 uF
Capacitor Specification
The capacitor voltage rating must be greater than the maximum output
voltageVm= 16.97 volt,
so a good choice will be to use a 25V, 60000 uF capacitor.
4) Power Consumption:
Transformers ratings are normally specified in VA, which is the amount of current
the transformer can withstand.
Power = V * I
Power = 18VA
Transformer Specification:
Vprimary: 220V AC
Vsecondary: 12V AC
Irating: 1.5Amp
Frequency: 50Hz
Power : 18VA
2.4 Circuit Diagram
2.4.1 Working Of The System
In this system we have two tanks which is Tank1 and Tank2. Tank1 is underground
tank and Tank2 is upper tank which is on building.
Tank1 contains only one wire is which is at lower level. This wire is only for
checking whether there is water in Tank1 or not.
Tank2 contains three wires at the different levels at lower , middle & upper level
.This wires are used for checking the level of tank2 to turn on off the submersible
pump(motor) .
The both Tanks also contain one more wire which is the ground wire for
completing the circuit loop.
When the water level of tank2 goes below the lower wire then the ground is
disconnected with which lower wire and high signal is send to the P1.2 port pin of
microcontroller and it also checks tank2 also has water or not.
As per the program microcontroller send high signal to P3.0 pin and P3.0 is
connected to BC547 transistor. This transistor act as a switch for the relay. When
this transistor receive high signal it acts as close switch and turn on the motor.
Then LCD will display its message that “Tank is EMPTY”
When the water reaches the middle level ,Now LCD display “Tank is MIDDLE”
and still motor is on.
When the tank is full, it send low signal to microcontroller P1.0 and as per program
microcontroller send it to P3.0 and then transistor is act as open switch . Relay id
disconnected with ground. Motor is turn off and LCD display the message “Tank is
FULL” ,motor is off.
Chapter – 3
Analysis &
Design Approach
3.1 PCB Layout
Bottom Copper
Front View
Back View
3.3 3D Model Of The System
Chapter – 4
Software
Implementation
4.1 Program Flowchart:
4.2 Program Algorithm:
Step 3 - If water in upper tank is below lower sensor, turn on the motor and
display the message ‘Tank is empty and Motor is on’.
Step 4 - If water in upper tank is above lower sensor and below the mid sensor,
turn on the motor and display the message ‘Tank is empty and Motor is on’.
Step 5 - If water in upper tank touches the upper sensor, turn off the motor and
display the message ‘Tank is full and motor is off’.
Chapter – 5
Result
5.1 Simulation Result
State 1
• The basics need of human being is water and it is one of the most important
necessary for all living beings. But unfortunately a huge amount of water is being
wasted by uncontrolled use and due to our negligence. Some other automated
water level monitoring system is also offered so far but most of the method has
some shortness in practice. We tried to overcome these problems and
implemented an efficient automated water level monitoring and controlling
system. Main intension of this research work is to establish a flexible, economical
and easy configurable system which can solve water losing problems. In the near
future as home automation web based water level monitoring and controlling
system can be designed, through which the system can be controlled from any
place via internet through mobile phone. This could have a substantial benefit
from this research work for efficient management of water.
• Automatic water level monitoring system has a good scope in future especially for
agriculture sector. There are any areas where we need water level controller. It
could be agricultural fields, overhead tanks. We can make this project wireless by
using NRF transmitter and receiver.
• In this system, future modifications can also be done like interface of GSM module
to send SMS alerts to the user.
6.2 Conclusion
• This type of water level controller will reduce the human interference. The power
consumption of the motor and the wastage of water because of unwanted overflow
can be controlled.
• This is simple model water level indicator and controller which can be made at your
home.
• This project was intended to design a simple and low cost water level indicator and
controller . This is not only for water tank but also used for oil level and chemical
lab. To design this system, we used transistor as a platform and local materials for
low cost. We tried to design a system in such a way that its components will be
able to prevent the wastage of water.
• The whole system operates automatically. So it does not need any expert person to
operate it. It is not so expensive. This design has much more scope for future
research and development. Though it is a project, we hope some modification in
this project will lead to a reasonable diversity of usage
Chapter – 7
References
References
https://www.electronicshub.org/water-level-controller-using-8051-
microcontroller/
https://youtu.be/tYwQTTG-GDg
https://www.tutorialspoint.com/microprocessor/microcontrollers_8051_architec
ture.html
https://www.electronicsforu.com/resources/learn-electronics/16x2-lcd-pinout-
diagram
https://www.instructables.com/id/All-You-Need-to-Know-About-Relays/
https://www.alldatasheet.com/datasheet-pdf/pdf/11551/ONSEMI/BC547.html
http://www.circuitstoday.com/water-level-controller-using-8051
https://m.indiamart.com/impcat/submersible-pumps.html
http://www.circuitstoday.com/5v-power-supply-using-7805