Professional Documents
Culture Documents
INTRODUCTION
In this monitoring system sensors are used to sense the level of the
liquid. The whole operation is programmed using PIC 16C72
Microcontroller. Which activates and deactivates the mechanical device
called RELAY. In turn controls the motor/pump. The controller has got
both the Audio and Visual indication. LEDs are used for Visual indication
and Buzzer is used for the Audio indication. We have named the circuit of
our project as LIQUICON. This performs the function of controlling the
flow of the liquid both at sub-tank and the main tank.
Liquicon:
Motor
M
Sub-tank
The sensors are fixed both at sub-tank and main-tank liquid levels and
maintain the required level. Whenever the level at the main-tank goes low
the liquid needs to be pumped in using sump motor M and M needs to be put-
off when the level reaches high.
• In the same way whenever these is no liquid in the sub-tank the motor
should not switch, to avoid dry run.
• Whenever there is blockage or breakage in the pipeline, the liquid does
not reach the main-tank ad the sump motor should be OFF
• High/low cut-off; Generally acceptable voltage range is 170V-230V if
the input voltage is beyond this range we have to stop the supply to the
sump motor.
BLOCK DIAGRAM
Switch
Input Step-down Control ON/switch
0-230V transformer circuit OFF the
pump
Pre- AC
conditions 240V
Low-
Level Motor&
sensor Pump
The above Block diagram represents the control circuit for the Fluid
level Controller. The fluid level in the container is sensed initially by two
kinds of sensors i.e., High level and Low level sensors. The output of the
sensors is driven to Analog to Digital converter through the Signal
conditioner. Then the digital output is controlled by the controller and fed to
the output driver. When the fluid level reaches the maximum preset level,
the pump will switch off. If the input voltage is beyond the range of 170V—
240V, do not activate the relay, in turn the pump.
PIC Microcontroller
The term PIC –Peripheral Interface Controller has been coined by Microchip
technology to identify its single chip microcontrollers. These devices have
been phenomenally successful in the market place.
Core Features:
* Interrupt Capability
* Direct, Indirect and Relative Addressing modes
* Power –on-Reset (POR)
* Power-up Timer (PWRT)
* Oscillator Start –up Timer (OST)
* Watchdog Timer (WDT)
* Low power, high speed CMOS Technology
* Wide operating voltage range 2.5V to 6.0V
Peripheral Features:
MCLR RB7
1 28
2 27
3 26
P
4 I 25
5 C 24
1
6 23
6
7 22
C
8 21
7 20
9 2
10 19
11 18
17
12
13 16
14 15
CIRCUIT DESCRIPTION
Power Supply:
In our project we require different power supply voltages like + 5V
and unregulated 12V dc. +dc.+5V is applied to the 1st and 20th pins of the
Microcontroller. Unregulated 12V dc is used to energize the relay coil.
Circuit diagram:
Sensors:
Sensor is a device, which tells the information about its environment
by creating an electrical signal. In general Sensors are used to sense the
change in physical quantities such as heat, weight level, light, humidity,
sound level and liquid level etc depending on these it will give corresponding
voltage.
The sensors are fixed at the required levels both in the sub-tank and main
tank. Common point is connected to the power supply of 12V AC.
═C
The sensors are fixed at the required levels in both the Sub-tank and
Main-tank. Sensed output is fed to the input of the above circuit. The
transistor switches the sensing points as high or low, according to the base
voltage.
Out of two op-amps U1 and U2, U1 is used for sensing the low voltage
and the other one U2 is used for sensing the high voltage conditions.
The reference voltage is fed from the anode point of led (ldl) and the
unregulated voltage is tapped from the point after the rectification and
filtering. This voltage is fed to the pin numbers 5 and 3 of U1 and U2. this
will be treated as reference voltage for the comparators pin numbers 2 and 6
are fed through mid point of the potential divider circuit. Whenever the
voltage at pin number 2 or at the pin number 7 goes high it will in turn switch
on the LED (ld2), also to the Microcontroller Pin number 7 indicating that
there is an error in the input voltage.
In this condition, pin number 7 goes high and it will remain so. In this
same way the output is increased to 240V and present pr2 is varied till the
voltage at pin number 2 reaches 5V. Then the output of U1 i.e., pin number
1 goes high.
CIRCUIT:
1 8
2 7
+
+++
+
-
3
L
M
3
4 5
8 6
5
+
-
1- Output
2- Inverting input 1
3- Non- Inverting input 1
4- Vcc
5- Non-Inverting input 2
6- Inverting input 2
7- Output 2
8- Vcc
RELAYS:
Coil COM
NC
Circuit diagram:
In our project we used two relays; rly1 is to turn ON/OFF the motor of
the sump. Another relay rly2 is to switch ON/OFF the alternate Motor.
These relays are connected at pin number 16 and 17 respectively.
When the transistor Tr is in ON state, the voltage will energized the coil
and the Common terminal comes into contact with the Normally Opened
terminal. This will activate the relay rly1, which is turn switch ON the motor
M1.
In the relay, a diode D15 is connected across the relay coil, which is used
to protect the transistors and IC2 (chips) from the brief high voltage ‘spike’
Indications:
Buzzer:
We can also use buzzers with different beep routines for indication of
different levels of fluid both at sub tank and main tank.
The pin number 12 is provided with a micro switch to select the mode
of working such as open loop and closed loop. Open loop is considered as
the mode A and the closed loop is considered as the Mode B.
The ports A, B, C, D, E, F and G are taken as the sensing points to sense the
levels in the overhead, sump and for dry run case of the liquid.
In the case of open loop, we consider only the sub-tank as the source
of the liquid. Here the three inputs sump high, sump low and overhead low
at ports, C,D and B respectively are triggered as per the transistor action.
If the liquid at the sump is sufficient, then ld6 and ld7 will be in ON
state. If the liquid at the over head tank is not sufficient, this is indicated by
the ld4. then liquid flow has to be taken place from sump to over head tank.
So the sump relay rly1 is activated. This is turn switch on the sump motor
which will remain in the ON state until the dry run at the port G is detected.
This case is indicated by the ld7.
In this condition, the sump relay gets deactivated if the liquid does not
reach the over head tank within the specified time. The reasons fro dry run
may be any kind of breakage or the blockage in the pipe connecting the sump
and overhead tank.
As the liquid at the sump is motored to the overhead tank, it gets filled.
When the liquid level at this tank reaches a high level, is sensed by the sensor
provided at the port A. this will turn ON the ld3. then the sump relay is
deactivated and this in turn switches OFF the sump motor.
When the liquid at the sub-tank is not sufficient then the mode B
comes into picture. Here an alternate source of liquid is considered along
with the sub-tank. This can be done by pressing he mode switch provided to
change the mode.
If the liquid at the sub-tank is sufficient and at the overhead tank is not
sufficient then liquid flows from sub-tank to the overhead tank if there is no
dry run and the power supply is in the normal range.
The sump motor will turn off when the liquid at the main tank reaches
the reserved level. When the liquid at the sub-tank is not sufficient then we
have to switch for the alternate source of the liquid.
The alternate source of liquid is needed only when the sump becomes
dry or the liquid in the sub-tank goes below the low level. In this case the ld6
will be in the ON state.
When this stage is reached, the alternate relay rly2 is activated and it
has to wait for some time to check whether the liquid is flowing or not. It is
sensed at the SUMP DRY fixed at sub-tank. If these is no flow of liquid,
after waiting for some time, the sump motor will get switched OFF.
Once the sub-tank is filled, the mode of operation is same as that of the
mode A.
Auto/Manual switch:
Reset switch:
Mode switch:
ALGORITHM
i. The input power supply voltage should be checked once. If the input
Voltage is beyond the range of 170V-240V, relay should be inactivated
In turn it switches of the sump motor.
ii. Liquid at the sub-tank is sufficient and if the liquid at the main-tank is
Not sufficient, i.e., fluid level goes below a reserve level then the sump
Relay is activated and the sump motor will be switched ON.
iii. If the liquid does not reach the outlet at the main-tank within the
Specified time, then sump motor will remains in the switch OFF state.
iv. When the liquid reaches the maximum preset level in the main-tank,
Then the sump motor will switch OFF automatically.
v. If the liquid at the sub-tank is not sufficient then the alternate source is
Considered.
vi. If the liquid at the main-tank is not sufficient then the alternate motor is
. switched ON to fill the sub-tank. Then the sump motor the fluid flows
to the main-tank.
vii. If the liquid at the sub-tank reaches the reserved level then the motor
is switched OFF automatically.
FLOWCHART
START
Voltage
Within the NO
Range170V
-240V
YES
Liquid at
Overhead
Tank is B
YES sufficient NO
Switch ON the
Motor M1
YES
NO
C
END
Voltage
Within the
Range
170V-
240V
E
NO
YES
gege
Dry YES
run
Detect
NO
E
Switch OFF the motor
M2
SIGNIFICANCE
And also in the case of Chemicals and Petroleum Products, which can
be automatically maintained at the main tank depending on the requirements.
• Evening start
• Start delta
• Any fluid level can be monitored. Depending on the fluid, the sensors
are chosen. For example, to monitor the level of petroleum products
like petrol, diesel or kerosene, we can use magnetic float switches to
sense the fluid level.
System Requirements:
PIC 16C72 Microcontroller
System Frequency:-4MHz
Memory: - 2KB
Resistors
R = 4.7K ohms
R0 = 10K ohms
R1 = 1K ohms
R2 = 8.2K ohms
R3 = 1K ohms
R4 = 330 ohms
Presets
pr1 = pr2 = 2K ohms
Capacitors
C = 0.1 Micro Farads
C0 = 5.6 Pico Farads (crystal)
C1 = 4.7 Micro Farads (relays)
C2 = 0.1 Micro Farads
Diodes
D1 = D2 = 4148
D = 4148
Transistors
T = 2N2222
Tr = SL100
BIBILOGRAPHY