Xdesign and Implementation of Microcontroller Based
Xdesign and Implementation of Microcontroller Based
net/publication/323178259
CITATIONS READS
4 1,571
6 authors, including:
Chukwuemeka Obasi
Edo University Iyamho
4 PUBLICATIONS 4 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Investigating the effect of Sun Tracking on PV Voltage in Solar Installation using Microcontroller Prototype Model View project
All content following this page was uploaded by Chukwuemeka Obasi on 29 March 2020.
1. Introduction
The role of electric power in everyday need of individuals and nations cannot be overemphasized, especially in
this era of the proliferation of consumer electronics and electrical appliances for both home and industrial use.
The need is quite obviously on an ever increasing demand.
The global economy depends largely on constant supply of electricity for growth, so nations with poor or
epileptic supply of electricity may not develop in this 21st century.
While the era of fluctuation of supply of electricity is long forgotten in many industrialized nations of the world,
many developing countries still suffer setbacks arising from incessant power failures. The provision of
alternative power source (generators) has no doubt brought succour but not without an attendant challenge
associated with manual operation of the changeover (Agbetuyi, Adewale, Ogunluyi, Ogunleye, 2011).
2. Related Works
The related research works are not limited to:
a. Design and Implementation of a 3-Phase Automatic Power Change-over Switch (Roy, Newton &
Solomon, 2014). The paper deals with the design and development of 3-phase automatic changeover. The
authors designed a system that could detect phase failure and automatically select and switch to a phase that has
supply.
b. Design and Simulation of Microcontroller Based Electronic Calendar Using Multisim Circuit Design
Software, (Ezeofor & Okafor, 2014). They were able to simulate the use of microcontroller in the development
of electronic calendar.
c. Construction of Microcontroller Based Digital Voltmeter (Jony & Rahman, 2014). In their study, the
authors developed a digital voltmeter using PIC microcontroller that could measure and display up to 220 V on a
7-segment.
The work according to Agbetuyi et al. (2011) however attempted to solve the problem with the manual
changeover between the public supply and the secondary supply with an automatic changeover.
Automatic power changeover, according to Roy, Newton and Solomon (2014), is meant to identify fluctuation on
the public supply line, start the generator and switch the load to the generator’s output. It is also meant to
identify when power is restored on the public supply line again, switch to it and turn off the generator.
51
Computer Engineering and Intelligent Systems www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol.6, No.12, 2015
Yet again, some problems are being envisaged with the performance of the automatic power changeover. Users
of the automatic power changeover may want to regulate the use of the generator based on some conditions, such
as how long the generator should stay on and what time of the day the generator should be used or not used. In
places where power outage lasts for a long time (days or weeks), this becomes necessary in order to limit the
utilizations of the generator’s utilities like fuel and reduce maintenance cost.
Hence the concept of the design and implementation of microcontroller based programmable power changeover
is presented in this paper. This aims to use the power of microcontroller in the design of control logic that will
perform the duties of detecting power failure, switch between lines and also provide the programmability
functionality by deploying the input/output and storage feature of the microcontroller.
3. Methodology
Modular division methodology was adopted in the design and construction of the system. The following
modules were implemented:
Figure 1 shows the block diagram of the system. The control logic unit consists of the microcontroller and the
control program running in its memory. The mode select switches block represents the switches used for
selecting the mode of operation of the system. The changeover actuator block represents the relay that does the
switching over between the generator line and the mains line. The main supply monitor block represents the
circuit that monitors the presence or absence of power on the main supply line. The feedback block performs the
function of monitoring the output to ensure that proper switch over was done. The LCD is a display unit that
shows the activities of the user during operation. The kick start actuator switches kick start of the generator to
turn it on.
52
Computer Engineering and Intelligent Systems www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol.6, No.12, 2015
necessary circuitry must be installed. These include the reset circuit and the clock circuit. Fig. 2 shows the
microcontroller pin configuration and reset and clock circuits. The reset pin (Pin 9) is connected to Vcc through
C1 capacitor. This implements a power up reset of the microcontroller. Pin 31 is connected to Vcc to enable the
chip execute program instructions from the internal ROM. Pins 18 and 19 connect 11 MHz crystal through two
30pf capacitors in parallel to provide clocking trigger. The value of the crystal determines the operations cycle
of controller (that is time spent in computation of 1 instruction) and is given by 4T [4], where T is the period.
Therefore, for 11MHz crystal,
C1 12 P1B0T2 VCC 40
39
P1B1T2EX P0B0AD0
10µF 3 P1B2 P0B1AD1 38
4 P1B3 P0B2AD2 37
5 P1B4 P0B3AD3 36
6 P1B5MOSI P0B4AD4 35
7 P1B6MISO P0B5AD5 34
8 P1B7SCK P0B6AD6 33
9 32
10
RST U1 P0B7AD7
31
P3B0RXD EAVPP
11 P3B1TXD ALEPROG 30
12 P3B2INT0 PSEN 29
13 P3B3INT1 P2B7A15 28
14 P3B4T0 P2B6A14 27
15 P3B5T1 P2B5A13 26
16 P3B6WR P2B4A12 25
17 P3B7RD P2B3A11 24
18 23
19
XTAL2
XTAL1
8052 P2B2A10
P2B1A9 22
20 GND P2B0A8 21
X1
C3
30pF 30pF
HC-49/U_11MHz C2
53
Computer Engineering and Intelligent Systems www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol.6, No.12, 2015
VCC
5.0V
S1 R1
10kΩ
P1.0
VCC 5.0V
S2 R2
10kΩ
P1.1
5.0V
VCC
S3 R3
10kΩ
P1.2
VCC 5.0V
S4 R4
10kΩ
P1.3
= (2)
ℎ =
54
Computer Engineering and Intelligent Systems www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol.6, No.12, 2015
∴ℎ = (3)
−
=
∗ !" #
= (4)
$ % &
Hence, RB = 100 * 400 (5-0.6)/12-0 = 14666.67 Ω
55
Computer Engineering and Intelligent Systems www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol.6, No.12, 2015
References
Agbetuyi, A. F., Adewale, A. A., Ogunluyi, J. O., Ogunleye, D. S. (2011). Design and Construction of an
Automatic Transfer Switch for a Single Phase Power Generator, International Journal of Engineering
Science.
Roy, A. A., Newton, F. G., Solomon, I. A., (2014), Design and Implementation of a 3-Phase Automatic
Power Change-over Switch, American Journal of Engineering Research, 07-14.
Ezeofor, J. C. and Okafor, E. C., (2014), Design and Simulation of Microcontroller Based Electronic
Calendar Using Multisim Circuit Design Software, International Journal of Engineering Trends and
Technology,396 – 400.
Jony, I. H., Rahman, M., (2014), Construction of Microcontroller Based Digital Voltmeter, International
Journal of Science and Research, 84 – 87.
56