Professional Documents
Culture Documents
Design and Performance Evaluation of 2kva Microcontroller - Based Stabilizer
Design and Performance Evaluation of 2kva Microcontroller - Based Stabilizer
Design and Performance Evaluation of 2kva Microcontroller - Based Stabilizer
net/publication/299845532
CITATIONS READS
0 1,055
2 authors, including:
Ayodeji Okubanjo
Olabisi Onabanjo University
26 PUBLICATIONS 18 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Development of a Hybridized Model for Predicting the Life Span of Power Transformers View project
All content following this page was uploaded by Ayodeji Okubanjo on 07 April 2016.
Servo-motor based or tap-switching stabilizer which is used in countries (such as Nigeria) with
inadequate infrastructure and resources had failed to match pace with the requirements of the
sophisticated electronics it protect. It is not dependable and reliable in performance due to its low
response time and inherent performance limitation. However, a microcontroller –based stabilizer is
suitable in countries (like Nigeria) with inadequate infrastructure for the generation and distribution of
alternating current (A.C) because of its high response time and cycle-by-cycle voltage regulation without
interrupting the load current.
A microcontroller based stabilizer was designed and constructed to protect the household appliances,
such as electrical / electronic appliances from fluctuation of line voltage. This device was tested under
low voltage, very low voltage, extremely low voltage, high voltage, Very high voltage and normal supply
voltage (220 – 240V in Nigeria) and with overload current up to 12A. The voltage sensor’s output was
monitored by the PIC16F877A microcontroller and used analog to digital converter. A computer
program was developed to control the function of microcontroller.
Keywords: microcontroller, line voltage, fluctuation, stabilizer and electrical and electronics
appliances.
1.0 INTRODUCTION
A stabilizer is a device that regulates voltage. It contact points of the relays (P.C. Sen, 1987).
guides against electrical fluctuation and aim to Solid state electronic device stabilizer can
attain a normal voltage level (M.C Sharma, overcome most of the above problems; as they
1987). do not use any moving part and the output can
It has been acknowledge that a typical vary from cycle to cycle (A.Ahmed, 1999,J.M.
convectional stabilizer, switching is done by Jacob,2002). Study has shown that
electromagnetic relays, or servomotors, or microcontrollers have proven abilities to
electronic device, which automatically selected perform well in a wide range of applications
taps in the transformer to get the required (J.B.Peatmann, 1998, R.A.Penfold, 1997).
voltage to boos (add) or buck (subtract) the input The fluctuation of the line voltage in Olabisi
voltage. As one of the required element of a Onabanjo University, College of Engineering
stabilizer the relay tap-changers are noted for and Environmental Studies in Ibogun, Ifo Local
power lost momentarily during relay change Government Area, Ogun State, Nigeria often
over, unstable output and relay contact damages. impose serious damages to sophisticated
Also servo motor has low life in relation to electrical and electronic equipment and also
hampered commercial and Institutional activities
in that area. Research conducted among the 2.0 OVERVIEW OF THE
PROPOSED SYSTEM DESIGN
students in the College of Engineering and
Environmental revealed that the poor The basic building blocks for this design include
performance of the students during examination a DC voltage power supply, auto-transformer,
period was attributed to erratic and fluctuation in microcontroller unit (control unit), switching
power supply by the power holding company of circuit and delay circuit. In this unit, an
Nigeria (PHCN). It was observed that the line alternating voltage source (220V) was applied
voltage of some phases go down to a low at the input of a step- down transformer that
voltage and remain at that level for several supplied 12V output and was further fed to four
hours, sometimes a couple of days until some diodes IN5408 (A bridge Rectifier) that gave
corrective measures are taken by the PHCN 12V DC output with a ripple free effect by the
authority. use of filter capacitor. This filtered 12V DC was
Under such erratic conditions of line voltage, in fed to a switching relay unit for its effective
study area re-wireable fuse or miniature circuit operation. The microcontroller (PIC16F877A)
breaker are normally used to protect different required 5V for its operation, for this purpose
households from under and over- voltage LM371 – IC1 and IC2 (3- terminal voltage
condition. (M.S.Islam and M.A. Zulquarnain, regulator) were used to obtain the +12V and 5V
1991). Considering this factor, M.S.Islam and needed by the regulator. Also the 5V DC voltage
M.Kamruzzaman, 1992, affirmed that a across the LM371 – IC2 were fed at pin 1, 13
protective device like over- voltage and over- and 32 of the PIC16F877A microcontroller as a
current with delay unit has been developed for supply voltage. Pins 33, 34. 35, 36 and 37 of the
ensuring a dependable and an effective microcontroller were switching circuit which
protection to small households. was responsible for driving the relays connected
The convectional stabilizer is op-amp based, to auto-transformer. However, the
which compare the incoming voltage and a microcontroller cannot withstand the current
reference voltage; because of the nature of demand of the coils of the switching relays, thus
analog signals, it introduces inherent errors in a buffer circuit was coupled with the switching
the comparison process. Microcontroller based circuit.
stabilizer has replaced the op-amp based, which A resistance of 4.7 KΩ was soldered between
is more effective and reliable to withstands pin1 and 5V supply which was denoted by R5
fluctuation in the line voltage. Therefore, this and R6. LED1, LED2, LED3, LED4, LED5,
paper explained the design and construction LED6 indicated 103-122V, 123-146V, 147 -
process of a microcontroller based stabilizer to 175V, 176 -209V, 210 -250V and overvoltage
compensate for the erratic power supply and respectively. The display LED in the
fluctuation in the line voltage microcontroller was connected to pins 15,
16,17,18,23 and 24 of the microcontroller. The
block diagram of the system is depicted in figure
M A IN S Autotransform er
AC
LED D isplay
= − . ….. 1 $ ∗ 3.08
1' =
0.01
Where the d.c voltage is Vo
0.35'
= √2 … … … … … … 2) $ = 0.01 ∗
3.08
Where Vin = 15 $ = 1136(& 1000 ) *
= √2 ∗ 15 = 21.21 The working voltage of a filter capacitor must
The values of the capacitor used with a 50Hz always be more than 1.414 times the expected
supply range from 100μf – 30,000μf secondary voltage of the step-down transformer.
Depending on the load current and the degree For this design 1000μf, 63V is used for C1
of smoothening required.
In selecting capacitors, the ripple voltage D. Regulator
required is 10% of the peak value, thus: Regulator is a device which provides constant
=2∗ …….. 3 output voltage with varying input voltage. There
POWER
12A FUSE SWITCH
L
LM317 TIP41C
Q1
IC1
220?
N R1
D1 – D4
R2 4.7K
240V/30V
2000mA
T1
LM317
1000uF IC2 100nF
C1 C2
R4 R3
4.7K
; = 176
Where, It thus means that 176 – 209V on winding A
Eoutput = Maximum expected induced voltage (171 turns) produced 210 – 250V on the output
on output winding = 250V winding (204 turns).
Bmax = Maximum linear flux density of the Similarly, 175V on winding B produced 250V
magnetic core (1.3 Tesal) and the corresponding turns required will be:
f = supply frequency = 50Hz 250 204
= … … . . 11
A = cross-sectional Area required for a 2KVA 175 .-
2000 5V.
# *, > ) = … … . . 19
0.9
5V
10 uF
C3
R5
L IN P U T 4.7k
R7 32
150 K, 1W R6
4.7k 1
1N 4007
D5
13
100 uF R 22 pF 37
8
C5 10 K C4
36
4.7V P IC 16F 877 A 35
D6
2 34
1 N 4148 33
D7
N
12 31
L OUTPUT
R9
150K , 1W
1N 4007
D8
100 uF R
10
C5 10 K
4.7 V
D9
1N 4148
D 10
N
N
D1 – D4
4.7K
240V/24V
2000mA
T1
LM317
1000uF IC2 100nF 10uF
C1 C2 C3
4.7K 4.7k
20
4.7k
1 27
9 26
150K, 1W 22pF 25
C4
1N4007
24
D5 PIC16F877A 23
100uF 2 22
C5 10K
To
transform
150K, 1W 21
er output 4.7V 100nF
1N4007 C6
3
D6
D5
100uF 1N4148 8 19
C5 10K D7
4.7V 100nF
D6 C6
1N4148
D7
ULN2003
3.6 Software Implementation for the Control Unit
'Select Chip
#chip 16f877A, 4 'PIC 16F877A running at 4MHz
'Hardware Configuration
#config RC_OSC, WDT_OFF, LVP_OFF, CP_OFF
'Set Port Directions
Dir PORTA.0 in 'Set PORTA pin 0 as an input pin
Dir PORTB out 'Set PORTB pins as output
Start:
POKE(6, 0) 'Initialise all PORTB pins to zero
Main:
if ReadAD(AN0) > 0 then set PORTB.0 on 'Turn on LED on PORTB pin 0 if value on PORTA is > 0
if ReadAD(AN0) = 0 then set PORTB.0 off 'Turn off LED on PORTB pin 0 if value on PORTA is = 0
if ReadAD(AN0) > 51 then set PORTB.1 on 'Turn on LED on PORTB pin 1 if value on PORTA is > 51
if ReadAD(AN0) <= 51 then set PORTB.1 off 'Turn off LED on PORTB pin 1 if value on PORTA is <= 51
if ReadAD(AN0) = 0 then set PORTB.0 off 'Turn off LED on PORTB pin 0 if value on PORTA is = 0
if ReadAD(AN0) > 103 then set PORTB.2 on 'Turn on LED on PORTB pin 2 if value on PORTA is > 103
if ReadAD(AN0) <= 103 then set PORTB.2 off 'Turn off LED on PORTB pin 2 if value on PORTA is <= 103
if ReadAD(AN0) <= 51 then set PORTB.1 off 'Turn off LED on PORTB pin 1 if value on PORTA is <= 51
if ReadAD(AN0) = 0 then set PORTB.0 off 'Turn off LED on PORTB pin 0 if value on PORTA is = 0
if ReadAD(AN0) > 154 then set PORTB.3 on 'Turn on LED on PORTB pin 3 if value on PORTA is > 154
if ReadAD(AN0) <= 154 then set PORTB.3 off 'Turn off LED on PORTB pin 3 if value on PORTA is <=154
if ReadAD(AN0) <= 103 then set PORTB.2 off 'Turn off LED on PORTB pin 2 if value on PORTA is <=103
if ReadAD(AN0) <= 51 then set PORTB.1 off 'Turn off LED on PORTB pin 1 if value on PORTA is <= 51
if ReadAD(AN0) = 0 then set PORTB.0 off 'Turn off LED on PORTB pin 0 if value on PORTA is = 0
if ReadAD(AN0) > 205 then set PORTB.4 on 'Turn on LED on PORTB pin 4 if value on PORTA is > 205
if ReadAD(AN0) <= 205 then set PORTB.4 off 'Turn off LED on PORTB pin 4 if value on PORTA is <=205
if ReadAD(AN0) <= 154 then set PORTB.3 off 'Turn off LED on PORTB pin 3 if value on PORTA is <=154
if ReadAD(AN0) <= 103 then set PORTB.2 off 'Turn off LED on PORTB pin 2 if value on PORTA is <=103
if ReadAD(AN0) <= 51 then set PORTB.1 off 'Turn off LED on PORTB pin 1 if value on PORTA is <= 51
if ReadAD(AN0) = 0 then set PORTB.0 off 'Turn off LED on PORTB pin 0 if value on PORTA is = 0
goto Main 'Go back to label "Main" and repeat the process again indefinitely.
4.0 Performance Evaluation
The system was successfully designed and its >> LV = [103 123 146 175 180 190 210 230
performance was evaluated using MATLAB. 240 250]; % line voltage to the system
The system is effective in terms of operation and >> MOV = [5 5 5 5 5 5 5 5 5 5]; %
it is highly reliable when subjected to fluctuation microcontroller output @ different line
of line voltage. The system employed a local, >> SOV = [210 215 215 218 220 220 218 220
low cost >#$16D877' microcontroller. To 220 220];
avoid the complex comparator and A/D >> % output voltage of the microcontroller-
converter circuit, a microcontroller with an in- based stabilizer
built comparator and A/D converter was used. >> figure(1)
The low voltage power supply unit was designed >> plot(LV,MOV,'b',LV,SOV,'r--')
for highly regulated output to bias the >> grid on
microcontroller. In this design, the input a.c >> xlabel('Line voltage [volt]')
voltage varied from 103 volt to 220volt while >> ylabel('output voltage [volt]')
the output of the microcontroller remains >> axis([103 250 0 240]))
constant at 5 volt DC. The output of the system >> title(' output of the low-power supply &
over variation of input line voltage is depicted in micro microcontroller-based stabilizer')
figure 1.0. >> legend(‘output of the low-power
4.1 MATLAB Commands supply'),('microcontroller-based stabilizer
output'
>> % MATLAB script to generate the output of DC output of the low-power supply & microcmicrocontroller-based stabilizer
150