Design and Implementation of FPGA Based and Microcontroller Based Current Relay
Design and Implementation of FPGA Based and Microcontroller Based Current Relay
Current Re1ay
Khaled Shehata , Ahmed Bahaa, Karim Morad, Ahmed Shard
Modem Science and Arts University, Giza, Egypl
ix 6~7hnlJ(Ct.llI,rlrlzcr
Abstract:
This paper presents a design and implementation of Presoiit day, solid state analog relays are technically
two current relay prototypes. The first one is based outdated because they are missing a number of
on FPGA. it protects against over-current, phase additional features on demand today. Sonie of i t s
loss and locked rotor. This dcsigi is iniplctnentcd, problems are: Lack of flexibility, limited accuracy
dowiloaded and tested 011 Altcra Flcx 10klOLC84-4 atid limited dynamic range, metering and c w w ,
device. The second prototype is microcontroller coniiiiunication impossible, large size and difEctil1
based Multi Function Relay, it protccts against over to find tiecessary coiiiponeuts. Due to these
current, utidercurret~t, phase loss, locked rotor, disadvantages, Digital relays were employed to
phase unbalance and groiind fault. This design is dovelop new products with improved flexibility to
implemented and tested on Atmet microcontroller meet specific customer requirements [5].
ATMegal6PC035 11. Digital Relays are based on digital signal
Finally, both prototypes specifications wore processing, the voltage and current are converted to
referenced to SMWAIlA EOCR-Schueidcr Electric discrete data aid then relevant algorithm are used to
protection relays EOCR-SS and EOCR-3EZ calculate the result for protection. In order to detect
respectively according to the European and Korean and isolatc the fault accurately and quickly, voltage
standards. and currcnt data need to be acqttired at high speed
on large nuniber of input data in real time [4].
Most of the digital protection relays designers
concerned about the trade of in using FPGA based
1. Introduction: or microcontroller (MC) based rcloys. Althoogh
FPGA based offers better cost aver performance
All power system components must hc protectcd ratio in the same time tiiicrocontraller based offers
during opemation. When a fault occurs in power better price with acceptable perrormance. Therefore,
system the faulted component or parr d t h c network the paper explains the design aiid imp~ernentalionof
ninst be diswnnected quickly to eficiently reduce both prototypes.
danger for people or equipment damage. On other Section2 shows the feahires of thc two prototypes.
hand, blackouts in fully fiinotiotial systems are In section3 architecture of both designs are
uiiacceptablo. For these reasons protective relays presented. Filially Section 4 and 5 presetit the
play a cnicial role [ 5 ] . hardware test results arid the conclusion.
T Electla-
~nechauicaL
Relays
b r l y 2 0 ' ~centriry
Solid-
state
Relays
1960's
Digital
Relays
1980's
2. Work Done:
2.1 FPGA Based Current Rehy
TABLE I
FPGA Based Relay Feahrres
To 'r TO
Protected Item Time characteristic
Present day 1980'6 Present day
Over Current Definite time curve
Fig,1: Protection Relays Evoluflons Phase loss Trip within 1 sec
Historically, the hardware evolution of protective
relays experienced three tecliiialogies as shown in
Fig.1 [Z].
Electromechanical relays work on the priticiple o f
iiiagtietic fields revolving the intenial disks in the Item Adjusting Rnnge
relay. If the current was high e~ioughfor specific
period of time the disks would rotatc to trip the Current Sett. (Ioc) 0.5-3A (6-960A with
circuit. Although this was an effmtive relay it had external CT)
some drawbacks since, it was susceptible to Delay Time (D-Time) 1-255sec-OFF
mechanical failure and trip time were determined by
the physical properties of the disk which are size, Over-current Trip Time 0.5 / 1-30 sec & 0.5/1-
weight atid resistance, These drawbacks prevent the (0-Time) 10 sec
relay reproducibility atid suitability for all
applications [GI. Therefore, the solid state analog Locked Rotor h a d current > Ioc just
relays were introduced solving these drawbacks of after U-time or
the electromechanical relays and it was tho first to load current > 1.8 % *
offer inore accuracy aid adjustable specificationsto Ioc
be able to tit in any application
783
Authorized licensed use limited to: Birla Institute of Technology & Science. Downloaded on January 31,2024 at 04:13:27 UTC from IEEE Xplore. Restrictions apply.
Capabilities: changc status when (OCIIICIPULR) Fault
occurs.
Easy adjusting & troubleshooting with the - One output contact NO change status
aid of LEDs when ground fault occurs.
- Red LED indicates over current fault - One output contact NO change sfatus
- Green LED indicates phase loss fault when alert condition occurs
- Yellow LED indicates locked rotor
fault 3. Design & Integration
b Reset: manual /electrical (remote)
b Output Terminah: 3.1 FPGA Based Relay
Two output contact 1 nomially open (NO)
and the other is normally closed (NC) change
status when (OCIPLILR) Fault occurs.
Authorized licensed use limited to: Birla Institute of Technology & Science. Downloaded on January 31,2024 at 04:13:27 UTC from IEEE Xplore. Restrictions apply.
harmonic and above. Output of this filter is shown 3.2 MC Based Relay
in Fig.4.
Fig.8 shows simulation of the fault signal after I)- Fig. I ] : Flaw Chart of the AdCModuie
tinier finished. As show fault signals is clocked
with duty cycle 10% indicating an over current. Fig. 11 shows the flow of the written assembly code
Therefore, 0-timer is enabled and after it reaches in the microcontroller. After checking the status of
the adjusted value the internal relay trips the motor the motor, the first executed subroutine is t h e delay
and illuminate the corresponding LED. timer. It resets and enables Dtimer. Delay flag is set
once when motor starts to run. Then phase loss,
Fig.9 also shows siniulation of the fault signal after Unbalance, ground fault protections will be tested as
D-tinier finished. As shown fault signals is clocked follow.
with duty cyclc 30% indicating P locked rotor. Phase Loss: if only one of the three-phase currents
Therefore. the internal relay trips the motor is zero therefore phase loss occurs. More
iniinediately and illuniinate the corresponding LED.
785
Authorized licensed use limited to: Birla Institute of Technology & Science. Downloaded on January 31,2024 at 04:13:27 UTC from IEEE Xplore. Restrictions apply.
cotisideration tnust be done to be sure that tlie motor Under Current Trips according to adjusted
is sot starting or shutting down. value with accuracy =k 8%
Unbalance: Satisfies eauation I I) Phase Loss Trips in (3-5) Sec. which
doesn't nieet specifications
Alarm: if load current value statisfies equation (2) The proposed design is simulated using Atmel AVR
the internal alarni relay is enabled Studio 3.56 and showed a successhl operalion. Tlic
I (ninx ) 2 [I(setring * a/unir (setting ph
+ (2) impleiiicntation of the design i s performed on Atinel
microcontrolIer ATMcgal6PC035 11. Hardware tests
were dono and give acceptable accuracy as showi in
Frequency morsurcmcnt: eaemal interrupt will be
table VI exccpt phase loss wliicli doesn't meet
cxecuted when the zero crossing o f the signal siiie
specifications therefore it was dclayed for future
wave is detected (faIling edge). The internipt
subroutine will calciilate the frequency using work.
Fitially, both designs are flexible and rrpgradeablc
equation (3).
F = [ I ]
* 1000 3 ( 3 )
for Blure work.
CQUtltfV
6. References
4. Hardware Test Results: [l] Heavy Patrick, Whishiey Clint, "RMS
Mcasuring Principles in the Application of
Modificntioiis were made oii the final prototypes by protective relaying and metering", 30th annual
connecting thcm to stop watch and clamp ammeter westcm protective relay conference, Oct. 21-23,
to be able to measure smaIl climges in time also, to 2003
hold the value of current when device trips. [2] J. Wilks Dip EE, 0.Dip MS, "Developmeiits in
Test was made using three phase motor with power systenis protection", Anniial Conference of
nominal current 1.8 Amp, Every fault was exerted electric Energy Association of Austria, Canberra,
more than ten titnes in different enviroiiinetital August 2002.
conditions. [3] Feng Tao, Zhaiig Giiiqing, Waiig Jianhua, Geng
Yingsan, Zhaiig Hang, A FPGA based,
"Iri~pleinentation and Processing for Digital
Protective Relays, ASIC 2001, Proceedings. 4th
Phase Loss Satisfies reqniremcnts according Ktitcniational Conference on 23-25 Oct.200 1
to Table. I [4] M.A Manzoul, "Over-current Relay on a PPOA
Over Current Trips accordiiig to adiusted value Chip", Microelectronics IZeliability on a FI'GA
. with ilcc;racy i12% Chip, Microelectronics Reliability, 35, 7,
LookedRotor I Trips in 0.5 Sec. (5 20%) 1027( 1995)
[SI Cojocaru Andrea," PPGA based digital
TABLE VI protection in power system", University of westmi
MC hnsed relav Test Results Ontario
I Over Current I Trips according to adiusted I [6] Semsdini Ysni, "Micro-Processor Algoritlims for
over current Relays"
786
Authorized licensed use limited to: Birla Institute of Technology & Science. Downloaded on January 31,2024 at 04:13:27 UTC from IEEE Xplore. Restrictions apply.