Low Voltage Alarm System

In this lesson, we will be discussing about Low Voltage system with load Isolator using LM358, AT89C2051 micro-controller.

The power line fluctuations and cut-offs or power failure causes damages to electrical appliances connected to the line. It is more serious in the case of domestic appliances like fridge and air conditioners. If a fridge is operated on low voltage, excessive current flows through the motor, which heats up, and get damaged. Low voltage monitor is designed to protect electrical appliances from under voltage issues. The under voltage monitor circuit with alarm system and isolator presented in this work is a low cost and reliable circuit for protecting such equipment's from damages. Whenever the power line is switched on it gets connected to the appliance only after a delay of a fixed time. If there low fluctuations beyond sets limit the appliance get disconnected. The system tries to connect the power back after the specific time delay, the delay being counted from the time of disconnection. 


Block Diagram of Protection System [1]

Working AC supply is stepped down to 12 V by using a step down transformer. The AC supply is converted to DC supply through bridge rectifier. The supply is then filtered by capacitors connected across rectifier to reduce harmonics. Then the unregulated supply is then fed to voltage regulator whose output is given to the comparators IC LM358 and relay as supply. The unregulated supply from bridge rectifier is fed to preset 1 and preset 2 as input. The preset 1 and preset 2 are potentiometer ckt.1 and potentiometer ckt.2 respectively connected to comparators IC LM358 as command or input. The Preset conditions can be adjusted. Further, the comparators are connected to the relay and load is connected to relay. Whenever there is under voltage the comparators analyze the preset conditions and give the signal to the micro-controller and the controller will drive the relay and relay trips and the load get switched off. Thus protects the electrical appliance.



Under Voltage Protection

1.       When the line voltage is below 180V, the voltage at the inverting terminal (pin 6) of operational amplifier N2 is less than the voltage at the non-inverting terminal (6V). Thus the output of operational amplifier N2 goes high and it energizes the relay through transistor T1. The AC supply is disconnected and electrical appliances turn off.

2.       Thus the appliances are protected against under-voltage. IC1 is wired for a regulated 12V supply.

3.       The relay energizes in two conditions: first, if the voltage at pin 3 of IC2 is above 6.8V, and second, if the voltage at pin 6 of IC2 is below 6V.

4.       under-voltage levels can be adjusted using presets VR1.


Below is the code in Assembly Language

org 00h
port equ p1
rs bit p3.4
rw bit p3.3
en bit p3.7
sensor bit p3.5
buzzer bit p3.0
load bit p3.1

start:
mov tmod,#01h
mov r4,#10
clr buzzer
clr load

main:
call init_lcd
call text1
call line2
call text2
call delay3
call clear
call text3
call line2

loop:
jb sensor,low_volt_subroutine
call line2
call text4
setb load
jmp loop

low_volt_subroutine:
call line2
call text5
clr load
jb sensor,alarm
jmp loop
alarm:
setb buzzer
call delay1
clr buzzer
call delay2
djnz r4,alarm
mov r4,#10
jmp loop
;---------------------------------------------
;---------------------------------------------
init_lcd:
mov a,#38h
call cmd
mov a,#80h
call cmd
mov a,#0ch
call cmd
mov a,#06h
call cmd
clear:
mov a,#01h
call cmd
ret
cmd:
mov port,a
clr rw
clr rs
setb en
call delay
clr en
ret
screen:
mov port,a
clr rw
setb rs
setb en
call delay
clr en
ret
line2:
mov a,#0c0h
call cmd
ret
;---------------------------------------------
;---------------------------------------------
text1:
mov dptr,#label1
call display
ret
text2:
mov dptr,#label2
call display
ret
text3:
mov dptr,#label3
call display
ret
text4:
mov dptr,#label4
call display
ret
text5:
mov dptr,#label5
call display
ret
;---------------------------------------------
;---------------------------------------------
display:
clr a
movc a,@a+dptr
call screen
call delay
call delay
jz next
inc dptr
sjmp display
next:
ret
;---------------------------------------------
;---------------------------------------------
delay:
mov r3,#255
ad: mov r1,#4
ad1: djnz r1,ad1
djnz r3,ad
ret
delay3:
mov r2,#45
call count
ret
delay1:
mov r2,#15
call count
ret
delay2:
mov r2,#6
call count
ret

count:
mov th0,#00h
mov tl0,#00h
setb tr0
wait: jnb tf0,wait
clr tr0
clr tf0
djnz r2,count
ret
;---------------------------------------------
;---------------------------------------------
label1:
db " Low Voltage       ",0
label2:
db " Alarm System      ",0
label3:
db " The Load is       ",0
label4:
db "     Safe          ",0
label5:
db "    UnSafe         ",0

end




Share:

No comments: