Beruflich Dokumente
Kultur Dokumente
ABSTRACT
To protect electric and electronic device against voltage drop,
overshoot, and fluctuation of the main supply, a
microcontroller-based circuit is designed. The circuit will
keep monitoring the power supply and ensure the main
voltage connected to the board feeding the controlled devices
connected if it measures within a required voltage range
(RVR). If the voltage falls below or above the RVR then the
main supply would be disconnected from the feeding board.
The circuit then will keep monitoring the voltage and
reconnect it to the feeding board once its amplitude falls back
stable in the required voltage range. The design was simulated
successfully using Proteus software.
Keywords
Microcontroller, Proteus, Monitoring, Protection, Recovery,
1. INTRODUCTION
All countries suffer from grid voltage instability at above or
under voltage standards that cause home or office electric
appliances damage, like computers, refrigerators, TV sets, or
other equipment[1]. This paper aims for the design of an
embedded system using a microcontroller to monitor the
amplitude of the main voltage and interrupts the supply when
it increases or decreases from a programmed range.
Furthermore, the system will enable the recovery of the
supply if already disconnected, when the voltage assumes
again the required range. The microcontroller is a specialized
microprocessor that houses much of the support circuitry
onboard, such as ROM, RAM, serial communications ports,
ADC, etc [2]. Microcontrollers have become the heart of the Fig 1: Microcontroller System
new technologies that are being introduced daily. A
microcontroller is mainly a single chip microprocessor suited 2. PROTEUS VSM SOFWARE
for control and automation of machines and processes. Today, Proteus software is from British Labcenter Electronics
microcontrollers are used in many disciplines of life for Company. It is widely used globally. Besides the function
carrying out automated tasks in a more accurate manner [3-4]. other EDA tools have, like principle layout, PCB automatic or
The block diagram of the microcontroller system is shown in artificial wiring and the SPICE simulation, its revolution
Fig 1. feature is circuit simulations interactive [7].
Microcontroller essentially consists of Central Processing Proteus Virtual System Modeling (VSM) combines mixed
Unit (CPU), timers and counters, interrupts, memory, mode SPICE circuit simulation, animated components and
input/output ports, analog to digital converters (ADC) on a microprocessor models to facilitate co-simulation of complete
single chip [5]. With this single chip integrated circuit design microcontroller based designs. For the first time ever, it is
of the microcontroller the size of control board is reduced and possible to develop and test such designs before a physical
power consumption is low [6]. prototype is constructed [8].
This paper presents the design and simulation of the Proteus simulation environment includes ISIS and ARES. In
microcontroller based system for voltage monitoring, the ISIS environment, electronic circuit can be directly
protection, and recovery using PIC877A microcontroller stimulated in the stage of schematic. It also provides virtual
simulated on Proteus VSM Software. machines, simulation of the input signal which makes a
convenient simulation. ARES is mainly used for PCB (Printed
Circuit Board-PCB) design. The device library provides
schematic device and its package. It can design printed circuit
board in this environment [9].
1
International Journal of Computer Applications (0975 8887)
Volume 118 No. 3, May 2015
3. DEVELOPMENT TOOLS and The circuit diagram of the design is shown in Fig 3.
EXPERIMENTAL RESULTS
3.1 System Design
System is constructed and implemented as shown in Fig 2.
2
International Journal of Computer Applications (0975 8887)
Volume 118 No. 3, May 2015
3
International Journal of Computer Applications (0975 8887)
Volume 118 No. 3, May 2015
TR1
0.7
ADC1 U2 4063
S0 S0 10
VIN D0 A0
S1 S1 12
VREF+ D1 A1
S2 S2 13
VREF- D2 A2
S3 S3 15
HOLD D3 A3
S4 R0 9
CLK D4 B0
0.7 S5 R1 11
D5 B1
TRAN-2P2S S6 R2 14
D6 B2
S7 R3 1
D7 B3
GND 4 5 A>B
OE A>B QA>B
VCC 3 6 A=B
A=B QA=B
ADC_8 GND 2 7 A<B
A<B QA<B
S4 10
U75 A0
S5 12
A1
13 33 IN0 S6 13
OSC1/CLKIN RB0/INT A2
14 34 IN1 S7 15
VCC
OSC2/CLKOUT RB1 A3
IN2
GND
35 R4 9
RB2 B0
2 36 R5 11
RA0/AN0 RB3/PGM B1
3 37 R6 14
RA1/AN1 RB4 B2
4 38 R7 1
RA2/AN2/VREF-/CVREF RB5 B3
5 39 A>B 4 5 IN1
RA3/AN3/VREF+ RB6/PGC A>B QA>B
6 40 A=B 3 6 IN2
RA4/T0CKI/C1OUT RB7/PGD A=B QA=B
7 A<B 2 7 IN0
VCC
GND
RA5/AN4/SS/C2OUT A<B QA<B
VCC
15 R0
RC0/T1OSO/T1CKI
8 16 R1 4063 U3
RE0/AN5/RD RC1/T1OSI/CCP2
9 17 R2
RE1/AN6/WR RC2/CCP1
10 18 R3
RE2/AN7/CS RC3/SCK/SCL
23 R4
RC4/SDI/SDA
1 24 R5
MCLR/Vpp/THV RC5/SDO
25 R6
RC6/TX/CK
26 R7
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
RD2/PSP2
21 Q1
22 2N1893
RD3/PSP3
27 RL1
RD4/PSP4 4V
28
RD5/PSP5
29
RD6/PSP6
30
RD7/PSP7
PIC16F877A
D_1 D2 D3
LED-GREEN LED-YELLOWLED-RED
R1 R_2 R3
330 330 330
D4
LED-BLUE
TR1
Fig 7: File (Editor ) window 0.7
ADC1 U2 4063
S0 S0 10
VIN D0 A0
S1 S1 12
VREF+ D1 A1
S2 S2 13
VREF- D2 A2
S3 S3 15
HOLD D3 A3
S4 R0 9
CLK D4 B0
0.7 S5 R1 11
D5 B1
TRAN-2P2S S6 R2 14
D6 B2
S7 R3 1
D7 B3
GND 4 5 A>B
OE A>B QA>B
VCC 3 6 A=B
A=B QA=B
ADC_8 GND 2 7 A<B
A<B QA<B
S4 10
U75 A0
S5 12
A1
13 33 IN0 S6 13
OSC1/CLKIN RB0/INT A2
14 34 IN1 S7 15
VCC
OSC2/CLKOUT RB1 A3
IN2
GND
35 R4 9
RB2 B0
2 36 R5 11
RA0/AN0 RB3/PGM B1
3 37 R6 14
RA1/AN1 RB4 B2
4 38 R7 1
RA2/AN2/VREF-/CVREF RB5 B3
5 39 A>B 4 5 IN1
RA3/AN3/VREF+ RB6/PGC A>B QA>B
6 40 A=B 3 6 IN2
RA4/T0CKI/C1OUT RB7/PGD A=B QA=B
7 A<B 2 7 IN0
VCC
GND
RA5/AN4/SS/C2OUT A<B QA<B
VCC
15 R0
RC0/T1OSO/T1CKI
8 16 R1 4063 U3
RE0/AN5/RD RC1/T1OSI/CCP2
9 17 R2
RE1/AN6/WR RC2/CCP1
10 18 R3
RE2/AN7/CS RC3/SCK/SCL
23 R4
RC4/SDI/SDA
1 24 R5
MCLR/Vpp/THV RC5/SDO
25 R6
RC6/TX/CK
26 R7
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
RD2/PSP2
21 Q1
22 2N1893
RD3/PSP3
27 RL1
RD4/PSP4 4V
28
RD5/PSP5
29
RD6/PSP6
30
RD7/PSP7
PIC16F877A
D_1 D2 D3
LED-GREEN LED-YELLOWLED-RED
R1 R_2 R3
330 330 330
D4
LED-BLUE
TR1
0.7
ADC1 U2 4063
S0 S0 10
VIN D0 A0
S1 S1 12
VREF+ D1 A1
S2 S2 13
VREF- D2 A2
S3 S3 15
HOLD D3 A3
S4 R0 9
CLK D4 B0
0.7 S5 R1 11
D5 B1
TRAN-2P2S S6 R2 14
D6 B2
S7 R3 1
D7 B3
GND 4 5 A>B
OE A>B QA>B
VCC 3 6 A=B
A=B QA=B
ADC_8 GND 2 7 A<B
A<B QA<B
S4 10
U75 A0
S5 12
A1
13 33 IN0 S6 13
OSC1/CLKIN RB0/INT A2
OSC2/CLKOUT RB1 A3
IN2
GND
35 R4 9
RB2 B0
2 36 R5 11
RA0/AN0 RB3/PGM B1
3 37 R6 14
RA1/AN1 RB4 B2
4 38 R7 1
RA2/AN2/VREF-/CVREF RB5 B3
5 39 A>B 4 5 IN1
RA3/AN3/VREF+ RB6/PGC A>B QA>B
6 40 A=B 3 6 IN2
RA4/T0CKI/C1OUT RB7/PGD A=B QA=B
7 A<B 2 7 IN0
VCC
15 R0
RC0/T1OSO/T1CKI
8 16 R1 4063 U3
RE0/AN5/RD RC1/T1OSI/CCP2
9 17 R2
RE1/AN6/WR RC2/CCP1
10 18 R3
RE2/AN7/CS RC3/SCK/SCL
23 R4
RC4/SDI/SDA
R5
D_1 D2 D3
than low voltage (215 volt) and less than upper voltage (230 LED-GREEN LED-YELLOWLED-RED
R1 R_2 R3
4
International Journal of Computer Applications (0975 8887)
Volume 118 No. 3, May 2015
This simulation used a range of RVR of 215- 230 volt as Proceedings of the International conference on ICIEV,
boundary of normal voltage; a keypad is recommended in the May- 2012,pp. 1085-1090.
design to input the RVR by user. Keypad gives the advantage
of picking any voltage range (110 V supply for example). [5] Xiaodong Xia, Based on Single Chip Microcomputer
Embedded system technique, which based on microcontroller Remote Wireless Control System Design. Coal Mine
is intelligent system which in case of use it as voltage Machinery, vol. 32 (8), 2011, pp. 202-204.
monitoring to protect home or office electric appliances will [6] T. R. F Fulford-Jones, W. Gu-Yeon, and M Welsh, "A
provide more and more of valuable devices so this technique portable, low power, wireless two-lead EKG system,"
is favorable and useful. Proceedings of the 26th Annual International Conference
of the IEEE Engineering in Medicine and Biology
5. REFERENCES Society (EMBC-04), 1-5 Sept. 2004 , pp.2141-2144.
[1] Mohammed Y.M Alnaham. June 2012. "Microcontroller
based System for Voltage Monitoring, Protection and [7] Xu Xiumei; Pan Jinfeng; , "The simulation of
Recovery", Master thesis, Under Supervisor Associate temperature and humidity control system based on
Professor Mamoun M.A Suliman. Sudan University of PROTEUS," Mechatronic Science, Electric Engineering
Science and Technology and Computer (MEC), 2011 International Conference on
Khartoum, Sudan Jilln, China , vol., no., pp.1896-1898, 19-22 Aug. 2011
doi:10.1109/MEC.2011.6025856
[2] Paul Scherz [2000], Practical Electronics for Inventors, URL:http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arn
The McGraw-Hill Companies, ISBN-13: 978- umber=6025856&isnumber=6025381.
0070580787, 1st Ed, April 15, 2000.
[8] Lab center Ltd, Proteus Introduction,
[3] T.-H Hsu, J.-F. Liu, P.-N Yu, W.-S. Lee, and J.-S. Hsu, http://www.labcenter.com.
"Development of an automatic parking system for
vehicle," in Proc. of the International Conference on the [9] Ding Yanchuang; Guo Jinying; , "LED Display Screen
IEEE Vehicle Power and Propulsion, Sept. 3-5 Harbin, Design and Proteus Simulation Based on Single-Chip
China, 2008, pp. 1-6. . Microcomputer," Information Engineering and Computer
Science (ICIECS), vol., no., pp.1-4,25-26Dec.2010
[4] Md. M. Islam, F. H. Md. Rafi, A. F. Mitul and M. doi:10.1109/ICIECS.2010.5677762
Ahmad, "Development of a Noninvasive Continuous URL:http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arn
Blood pressure Measurement and Monitoring system", umber=5677762&isnumber=5677633.
IJCATM : www.ijcaonline.org 5