Development of A Low Cost Microcontroller Based Under and Over Voltage Protection Device
Development of A Low Cost Microcontroller Based Under and Over Voltage Protection Device
Development of A Low Cost Microcontroller Based Under and Over Voltage Protection Device
(ISSN : 2277-1581)
1 Sep 2014
I.
Introduction
IJSET@2014
II.
Ac Input
Power
Supply
Regulator
LM7805
Relay
Relay
Driver
Input Voltage
Set Voltage
Monitor
Input
PIC16F877A
Micro-controller
Liquid Crystal
Display Unit
Load
Page 1225
(ISSN : 2277-1581)
1 Sep 2014
to the relay contacts in the device which connects the load to the
supply when the supply is within 200V 240V range.
(2) Power Supply: The power supply uses a step down
transformer to step down the input mains voltage to a voltage
level suitable for the electronics within the device. A centre
tapped transformer, with two diodes for full wave rectification
is used to convert the ac voltage to a pulsating dc voltage
followed by a filter, comprising of a capacitor to filter out
(smooth) the pulsation (Close and Yarwood, 1979; Maddock
and Calcuta, 1994; Ian, 2000).
After the rectification and smoothening, a sample of the output
voltage is fed to the microcontroller through a potentiometer.
This voltage is unregulated and therefore varies as the input
mains voltage varies. The output voltage is also passed to an
LM7805 positive voltage regulator to provide a regulated +5V
supply for the micro-controller. The regulator served to reduce
further the ripple and noise in the regulated supply to the
microcontroller. The regulator also provides current limiting
and protects the power supply and attached circuit from over
current (Paul and Winfield, 1989; Delton, 1989). Since the
system is to prevent against over and under voltage, the
transformer was designed and the windings were so selected for
the device to be able to sense and withstand input mains voltage
up to 600Vac.
(3) PIC 16F877A Micro-Controller: The PIC16F877A
microcontroller, performs the major functions of decision and
control. The input voltage monitor is connected to the microcontroller which provides a sample of the input supply voltage
to the microcontroller for comparison with the programmed set
values in the microcontroller. The PIC16F877A microcontroller
was used in the design in order to reduce the complexity of the
design and to ensure an easy interface with a liquid crystal
display.
(4) Input Voltage Monitor: This provides a sample of the
unregulated dc supply voltage through a potentiometer to feed
the microcontroller. It helps the microcontroller to monitor the
supply voltage, as the value of this voltage varies as the input
mains voltage varies. The unregulated dc supply voltage is
scaled down by the potentiometer to values suitable for the
micro-controller. Input mains voltage up to 600Vac can be
monitored.
(5) Liquid Crystal Display (LCD): This displays the supply
voltage as well as some information at switch on or when the
supply voltage is out of range of the desired pre-set range of
values. The LCD used is LM016L having a 2 x 16 display. The
picture of the LCD is shown in Figure 2.
IJSET@2014
IC
IB
(1)
where IC is the collector current (through the relay coil), and
IB is the base current.
Page 1226
IB
I CSAT
(2)
IB = 100/100 =1mA.
The actual base current flowing, IBSAT must be higher than
the calculated base current IB to ensure base saturation. The
base resistor, R1 must be able to provide this saturating base
current.
Using a 1K resistor would ensure that the transistor is fully
ON when current passes out from the micro-controller 5V
source, i.e.
I BSAT
Vo VBE
R1
(ISSN : 2277-1581)
1 Sep 2014
(3)
= (5 0.7)/1x103
= 4.3mA which is >1mA.
C.
IJSET@2014
III.
A.
Construction
The design and the programming was simulated several
times on Proteus software until the code for the design
worked satisfactorily before the final programming of the
microcontroller and assembly of the components (Martin,
2008). The microcontroller is shown in Figure 5(a); the type
Page 1227
(ISSN : 2277-1581)
1 Sep 2014
Switch
LCD Display
Potentiometer
LED Switch
5.1cm
(a)
LCD Display
14.5cm
Toggle
Potentiometer
LED Switch
16.8cm
Terminals for
connection To Load
(a)
Input
Mains
Supply
Terminals
Load
Terminals
(b)
Testing
There are two types of test carried out on the developed
device, they are Manual Test and Calibration.
1) Manual Test
During the process of carrying out this test, the toggle
switch was put on the Manual test position. Then, the
voltage protection device was turned ON, and it initially
displayed Please wait on the LCD unit, before the pre-set
input voltage (200-240 volts) was finally displayed. The
potentiometer was varied until mains voltage is supplied to
the load. The purpose of the manual test is to verify the
functionality of the microcontroller.
2)
Calibration
With the switch in Calibration position, the
potentiometer was adjusted to divide down the voltage being
monitored by the microcontroller to a safe value. Also, as the
input mains supply voltage is varied using a variac, the
potentiometer was used to set the threshold for tripping of the
relay. Immediately the output set voltage is reached, the load
received mains supply without any problem.
The completed device was tested with 200W
incandescent bulbs and house appliances such as television,
DVD players, refridgerator, and single phase surface pump;
and the performance was satisfactory. The condition for
output triggering was stable after several testing. The output
set voltage of 200-240 volts was maintained throughout the
test period.
IV.
IJSET@2014
Conclusion
Page 1228
IJSET@2014
(ISSN : 2277-1581)
1 Sep 2014
Page 1229