Microcontroller-Based Automatic Transfer Switching PDF
Microcontroller-Based Automatic Transfer Switching PDF
Microcontroller-Based Automatic Transfer Switching PDF
Amuzuvi, C. K. and Addo, E. (2015), “A Microcontroller-Based Automatic Transfer Switching System for a
Standby Electric Generator”, Ghana Mining Journal, Vol. 15, No. 1, pp. 85 - 92.
Abstract
Unreliability in electric power supply has occasioned the proliferation of standby generators especially in developing
countries. However, the methods and equipment employed to effect power supply changeover remain fraught with
challenges ranging from inefficiency to cost. Most industries still employ the manual method of power supply changeover,
which is beset by a myriad of setbacks including: time wastage, strenuous operation, susceptibility to fire outbreak and high
maintenance frequency. This paper presents a Microcontroller-Based Automatic Transfer Switching System (MBATSS),
which eliminates the challenges of a manual changeover system. A voltage sensing circuit, a Hall Effect current sensor,
relays, LEDs and an LCD were all coordinated using a PIC16F877A microcontroller. A system flow chart was developed for
the firmware and the microcontroller programmed using GCG BASIC programming software. The simulation of the
designed circuitry was conducted using proteus design suit software. The simulation results vindicated the method used,
thus, confirming the workability of the proposed design. Duration analysis yielded excellent results, as approximately 20
seconds elapses during the entire process of power supply changeover. The timely restoration of power and ease of operation
are some of the advantages attributable to the design.
1 Introduction
Indeed, the ravages of power instability have
Reliable and secure uninterruptible power supply is equally necessitated automation of the switching
a sine qua non for virtually all industrial system between national grid energy system and
operations. The reality, however, especially in most standby generators used as backup. In the last
developing countries, is that energy resources are decade, different equipment and configurations
simply inadequate. Most manufacturing industries have been used in order to cope with this problem
and firms have to contend with insecure and (Aguinaga, 2008). An automatic changeover
unreliable power supply coupled with its attendant system makes use of sensors and transducers to
negative impacts on productivity and cost of realise the changeover in a shorter time while
production. eliminating human interference and its attendant
errors (Chukwubuikem, 2012).
The quest for secure and reliable power supply
remains a dream yet to be attained, especially in The main problems associated with a manual
most developing countries. This is as a result of switching system are as follows: interrupted power
population growth, industrialisation and supply, device damage due to frequent
urbanisation (Aguinaga, 2008; Akparibo, 2011; commutations, possible causes of fire outbreak due
Fuller, 2007; Kolo, 2007) and improper planning to switching sparks and frequent high maintenance
by service providers and governments. Most cost due to changeover action and wear and tear of
manufacturing industries, firms and institutions mechanical parts. In this paper, we demonstrate
such as hospitals and healthcare facilities, financial how to surmount these problems by the design of a
Microcontroller-Based Automatic Transfer Switching
institutions, data centres and airports to mention
System (MBATSS). We have also performed a
but a few require constant power supply all year
simulation to test the workability of the controller
round. Power instability generally retards
using appropriate simulation software.
development in public and private sectors of any
economy (Kolo, 2007; Anon., 2010;
Chukwubuikem, 2012). Any instance of power 2 Materials and Methods Used
failure could lead to prohibitive consequences
ranging from loss of huge amounts of money to life The materials and methods used to integrate the
casualties (Aguinaga, 2008). The spate of frequent electric generator as an alternative power source to
power outages without an effective back-up system the grid is very important in determining how
is truly a disincentive to investors in any secure and reliable the power supply to load can be.
developing economy like Ghana (Kolo, 2007). The switching system could be manual, where a
Rf
Stator generator back to the utility within a threshold time
Anon. (2012a).
Prime R
Mover
Slip
When the generator is disconnected, it goes
Y
through a cool-down process and then
automatically shuts down (Chukwubuikem, 2012).
Fig. 2 shows a schematic diagram of a typical
Alternator
DC Exciter transfer switch. Transfer switches could be
installed between two generators, a generator and a
utility supply or between alternate utility providers
Fig. 1 A Practical Three-Phase Alternator Anon. (2012b).
ATS
2.2 Standby Generators Source 1 Source 2
(Primary, Normal)
(Secondary, Emergency)
Standby generators Anon. (2011) also known as Utility Power Generator Set
backup or alternate generators, are secondary
sources of electric power usually kept at the
premises of consumers to provide electrical power
in the event of failure of power supply from a Electrical Load
power service provider. Standby generators are
installed at the consumer’s premises and run in
parallel with the utility power supply in order to Fig. 2 Schematic Diagram of a Typical Transfer
augment the utility supply, when power is lost Switch
Anon. (2012a).
2.4 The Proposed Switching System
There are other electric generator switching
automation systems using electromechanical relays, In general, a switch control mechanism could be
contactors and timers which comes with some done electromechanically or solid state-based. Both
shortcomings, notably: poor sensing ability to methods come with corresponding trade-offs
fluctuations due to the fact that relays do not ranging from efficiency to cost. The methods of
function optimally at very low voltages; and slow switching on standby generators can also be
switching time in the event of mains power supply categorised mainly into two modes: Open
Engine B
Co i-dire
mm cti
un ona
i ca l
Electrical and tion
Mechanical
Connection
Generator AC Transfer AC
Generator Distribution
Switch to
Board
Loads
AC
ins
Ma
Service
Entrance
Cable
Change
Breaker
Relay
Mains AC Load AC
Generator AC
Control Section
Display Unit
AC
Load AC Current MAINS ON
Sensor
Mode
Switch
GEN ON
DC +v +v Battery
Power Charging
Supply FAULT Circuit
R1 Diode 1.5961 V
Mains_Live_Sense
10 kΩ To MCU ADC pin
R2 C1
1.13 V
240 V AC 3.40 V AC AC 5 kΩ 1 uF
Neutral
Schematic Diagram of the Hardware Design and synchronous operation of all circuits of the
microcontroller. The oscillator module is usually
The circuit diagram of the hardware design of the configured to use quartz crystal or ceramic
ATS is shown in Fig. 6. The microcontroller resonator for frequency stabilisation.
receives its power from a MAX610 AC to DC
converter through a 10 kΩ resistor. Evenly spaced
pulses coming from the oscillator enable harmonic
10 kΩ
1 40
GND MCLR/Vpp/THV RB7/PGD LCD7
2 39
FAULT RA0/AN0 RB6/PGC LCD6
3 38
RA1/AN1 RB5 LCD5
4 37
RA2/AN2/VREF-/CVREF RB4 LCD4
5 36
RA3/AN3/VREF+ RB3/PGM LCD3
6 35
GND
PIC16F877A
Proteus Design Suit programming of the hardware was done using GCG
Basic programming software. The proposed circuit
The Proteus design suit is a professional printed was successfully simulated using the proteus
circuit board (PCB) design software with integrated design suite software. This was done to ascertain
shape based auto-router. It was used for the circuit the workability of the proposed design. The results
simulation, schematic capture, and the PCB design. indicated that, the ATS responded appropriately to
It is developed by Labcenter Electronics Anon. power outages, voltage dips and swells, over and
(2013b). The method adopted in this paper cover under-current conditions and restorations. A screen
the system flow chart, programming the shot of the simulated designed circuit is as shown
microcontroller and simulation of the circuitry of in Fig. 8. The power source changeover was
the proposed design. initialised once the utility source became
unavailable or experienced a voltage dip or swell or
System Flow Chart dangerous a surge in current. Fig. 9 (a), (b), (c) and
(d) respectively show the system responses
The flow chart for the firmware development is indicated.
presented in Fig. 7.
Start No Is 200 < Mains Voltage < 260? Yes Close Mains
Gen Is 9 < Mains Current < 16 Relay
Close Gen
Relay
Yes No
Is 200 < Gen Voltage < 260? Activate LED and
Is 9 < Gen Current < 16 Display State on LCD
(c) (d)
Fig. 9 System Response to Power Outages and Restorations: (a) Mains Supply Normal, (b) Supply from
Generator, (c) Voltage Surge on Mains and (d) Loss of Mains Supply