Professional Documents
Culture Documents
LOCATION
A Thesis Submitted in Partial Fulfillment of the Requirements for the
award of the degree of
Bachelor of Science in Electrical and Computer Engineering
(Electrical Power Engineering)
by
Name of Students ID
ISRAEL ZEKARIYAS ETS 0640/10
YOHANNES SOLOMON ETS 1285/10
ZERIHUN PAULOS ETS 1334/10
Under the guidance of
Mr. YARED T.
ii | P a g e
Associate Dean for
Under Graduate Programs: _____________________ ___________ ___________
iii | P a g e
ADDIS ABABA SCIENCE AND TECHNOLOGY
UNIVERSITY
COLLEGE OF ELECTRICAL AND MECHANICAL ENGINEERING
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING
Certificate
This is to certify that the thesis entitled “Underground Cable
Fault Detection” is submitted by ISRAEL ZEKARIYAS, YOHANNES
SOLOMON and ZERIHUN PAULOS for the award of the degree of
Bachelor of Science in Electrical and Computer Engineering (Electrical Power
Engineering), Addis Ababa Science and Technology University is a record of
original work carried out under my supervision and they fulfils the
requirements of the regulations laid down by the University and meets the
accepted standards with respect to originality and quality.
The results of the thesis have neither partially nor fully been submitted to
any other University or Institute for the award of any Degree or Diploma.
ACKNOWLEDGEMENT
We would like to express our deep gratitude to the head of department Mr. Fiseha A.
and all of the Electrical and Computer Engineering department staffs, instructors, laboratory
technicians for helping us through this long journey to acquire knowledge in Addis Ababa
Science and Technology University. We would also like to thank Mr. Yared T., for helping
us as our advisor and assistance in keeping our progress on schedule.
Finally, we wish to thank our parents for their support and encouragement
throughout our study. No one walks alone on the journey of life. Just where we start to thank
those that joined us, walked beside us, and helped us in many aspects. We would like to
express our sincere thanks to who directly and indirectly involved in successful completion of
this project work.
Project Associates
1. Israel Zekariyas
2. Yohannes Solomon
3. Zerihun Paulos
v|Page
ABSTRACT
In the past decade, electricity demand has increased rapidly in metropolitan areas. All
over the world, large scale underground power cable installations networks are replacing
overhead transmission lines due to environmental concerns in densely populated areas.
Underground cable systems are manufactured to have long life with reliability. However, the
useful life span of these cables is not infinite. The increase in failure rates and system
breakdowns on older underground power cables are now adversely impacting system
reliability and many losses involved; therefore it is readily apparent that necessary action has
to be taken to manage the consequences of this trend. In this paper an appropriate method of
fault detection and classification of power system transmission line using discrete wavelet
transform is proposed.
The detection is carried out by the analysis of the detail coefficients energy of phase
currents. Discrete Wavelet Transform (DWT) analysis of the transient disturbance caused as
a result of occurrence faults is performed. The work represented in this paper is focused on
classification of simple power system faults using the maximum detail coefficient, energy of
the signal of each type of is used for distinguishing fault types.
Index Terms – Transmission line faults, wavelets transform.
vi | P a g e
Organization of the thesis
Generally this project report is divided into five chapters, each chapter having its own
importance and they are:
Chapter 1 Defines a complete overview of the project, the problem statement, objective and
scope of the project.
Chapter 2 In this chapter we reviewed all the literatures that have been done about our
project
Chapter 3 Discuss about the methodology that are adopted for this project work and which
basically defined the planning process flow. Principles that are essential guides
to produce a well planning project are also described.
Chapter 4 Discusses the project testing and findings.
Chapter 5 Concludes all the works that had been presented in previous chapters and all the
results of the project. This is followed by recommendations for the future study
work
vii | P a g e
TABLE OF CONTENTS
Contents
EXAMINING COMMITTEE APPROVAL SHEET...........................................................ii
Certificate................................................................................................................................iii
ACKNOWLEDGEMENT......................................................................................................iv
ABSTRACT..............................................................................................................................v
Organization of the thesis.......................................................................................................vi
LIST OF FIGURES.................................................................................................................x
LIST OF TABLES................................................................................................................xiii
CHAPTER 1.............................................................................................................................1
1. INTRODUCTION............................................................................................................1
1.1 Background.....................................................................................................................1
1.2 Statement of the Problem..............................................................................................2
1.3 Objectives........................................................................................................................3
1.3.1 General Objective......................................................................................................3
1.3.2 Specific Objectives....................................................................................................3
1.4. Significance of the Project............................................................................................3
1.5 Scope and Limitation of the Project.............................................................................3
CHAPTER 2.............................................................................................................................4
2. LITERATURE REVIEW................................................................................................4
2.1. Introduction...................................................................................................................4
2.2. Ageing phenomenon of underground cables...............................................................5
2.3. Underground cable faults.............................................................................................6
2.4. Types of underground faults........................................................................................7
2.4.1 Short Circuit and Earth Faults................................................................................7
2.4.2 Open Circuit Faults..................................................................................................9
2.5. Fault detection techniques............................................................................................9
CHAPTER 3...........................................................................................................................11
3. METHODOLOGY.........................................................................................................11
3.1 Identification of Fault...................................................................................................11
3.1.1 Wavelet Transform..................................................................................................11
3.1.2 MATLAB Functions...............................................................................................13
3.1.3 Comparison between Fourier transform (FT) and Wavelet transform (WT)......14
viii | P a g e
3.1.4 System Design with Block Diagrams.....................................................................14
3.1.5 Description of Block Diagrams..............................................................................15
3.2 Localization of underground cables using Proteus...................................................16
3.2.1 System Descriptions of the Project.........................................................................16
3.2.2 Working...................................................................................................................16
3.3 System components and operation..............................................................................17
3.3.1 Light Emitting Diode (LED)...................................................................................17
3.3.2 Arduino....................................................................................................................17
3.3.3 Relay........................................................................................................................19
3.3.4 Relay driver circuit ULN2003................................................................................20
3.3.5 Liquid Crystal Display (LCD).................................................................................21
3.3.6 Buzzer......................................................................................................................23
3.3.7 Resistors...................................................................................................................23
3.4 Theory of Operation.....................................................................................................24
3.4.1 Ohm’s law................................................................................................................24
3.4.2 Power dissipation....................................................................................................24
3.5 Overall operation of the Project..................................................................................25
3.6 Murray Bridge Loop Method......................................................................................26
CHAPTER 4...........................................................................................................................28
4. RESULTS AND DISCUSSIONS...................................................................................28
4.1 Basic System Model......................................................................................................28
4.2 List of Components with their specifications.............................................................28
4.3 Simulation Diagram.....................................................................................................29
4.3.1 Test Results for No-Fault.......................................................................................29
4.3.2 Test Results for Single Phase Faults......................................................................31
4.3.3 Test Results for Double Phase Faults....................................................................34
4.3.4 Test Results for Double Phase to Ground Faults..................................................38
4.3.5. Test Results for Three Phase Fault.......................................................................42
4.3.6. Test Results for Three Phase to Ground Fault.....................................................44
4.4 Simulation Results and their interpretations.............................................................45
4.5 Software Simulation Results and Discussions for Proteus Design...........................45
CHAPTER 5...........................................................................................................................48
5. CONCLUSIONS AND SCOPE FOR FUTURE WORK...............................................48
5.1 Conclusions...................................................................................................................48
5.2 Scope for Future Work................................................................................................49
ix | P a g e
REFERENCES.......................................................................................................................51
APPENDIX.............................................................................................................................54
I. Code For Underground Cable Fault Detection........................................................54
II. Code For Locating Short Circuit Faults...............................................................57
x|Page
LIST OF FIGURES
xi | P a g e
Figure 4.6 Detail Coefficients during A-g Fault----------------------------------------------------32
Figure 4.25 Three phase current during three phase to Ground fault-----------------------------44
xii | P a g e
Figure 4.27 Simulation of Resistor and Switch Part------------------------------------------------46
xiii | P a g e
LIST OF TABLES
Table 4.11 Maximum coefficient of each phase During Three phase fault----------------------44
Table 4.12 Maximum coefficient of each phase During Three phase to ground fault---------45
xiv | P a g e
CHAPTER 1
1. INTRODUCTION
Underground cable fault classification and location has been one of the primary
concerns of power industry. Many researchers has suggested techniques for fault type
detection. These techniques depends mainly on studying the pattern of the voltage and current
waveforms associated with the fault. Among these are Kalman filtering based algorithms,
Fourier analysis based algorithms and FIR filtering based protection. Recently a new
technique is presented for wave analysis which is wavelet analysis [1] Wavelet analysis
allows the decomposition of a signal into different levels of resolution.
The basic function (mother wavelet) is dilated at low frequencies and compressed at
high frequencies, so that large windows are used to obtain the low frequency components of
the signal while small windows are used to obtain reflect discontinuities [2]. Some
applications of the wavelet analysis are used for modeling the power system transients [3]
power quality and power system relaying [4]-[5]. The basic system under consideration for
wavelet based fault classification is presented in [6]. The DWT based fault classification
taking current signal as reference is presented in [7].
1.1 Background
During the early years, long transmission lines and overhead lines were an
“indissoluble binomial” for the AC Power Systems [8]. Faults are considered as the total
breakdown or loss of synchronism of power system network which does not exclude the
environmental hazards such as electrocution and a devastating fire outbreak [9]. This means
that the general belief as at the time was purely of the reliance on overhead lines for
transmission of signals. This left the use of High Voltage (HV) and Extra High Voltage
(EHV) insulated cables to be dedicated to DC submarine links. Faults are however meant to
be located and cleared as fast as possible to forestall further loss of revenue and discomfort
from the customer end [10].
The underground cable system was first considered in Northern Germany as early as
1870 and was implemented on the telegraph system [11]. This was generally as a result of a
heightened regard for environmental conditions, the increasing hindrances encountered on the
overhead lines, and increased reliability on the high-quality extruded insulations among other
reasons.
1|Page
The replacement of these overhead cables and lines by underground ones or
inculcating a hybrid system (i.e. merging of the overhead lines and the underground cables)
has been considered by power systems operators in the power sectors in various countries.
The underground cable system installations are mostly carried out for economic
reasons amongst others. Some of the advantages of its installation are highlighted below.
1. A greatly reduced probability of damage from weather conditions e.g. lightning,
winds, freezing, among others.
2. Underground cable system provides a reduced range of Electromagnetic Fields (EMF)
emission [11].
3. Less components are installed alongside the underground cables. This is the opposite
in the use of overhead lines as more components are installed alongside for safety,
maintenance or repair.
4. Underground cable system reduces the probable hazard that could have been imposed
on flying aircraft and wildlife.
5. There are reduced chances of conductor theft, sabotage and illegal connections [12].
6. In environmental conscious countries, underground cable system provides spaces for
large trees to be planted and grow freely.
The advantages of underground system process can, in some cases, outweigh its
disadvantages generally. One of the most observed and more practical disadvantage of
underground system process is the fault detection and location difficulty whenever it occurs.
2|Page
In order to locate the fault we must know the type of fault occurring on the line. So
we first have to design a method to classify the type of fault that may occur. This research is
aimed at designing and constructing an underground cable fault detector to solve the problem.
1.3 Objectives
1.3.1 General Objective
The main objective of this project is to identify types of faults using Matlab and detect
the location of fault in underground cable lines from the base station in kilometers using an
Arduino board.
1.3.2 Specific Objectives
To identify all types of short circuit using Matlab.
3|Page
4|Page
CHAPTER 2
2. LITERATURE REVIEW
2.1. Introduction
Unlike the overhead cables, the underground cables are made to curb electromagnetic
induction and to withstand various soil conditions. In order to serve its purpose, the
underground cables are manufactured in thick protective layers, and with varying diameters
depending on the depth of earth it is buried, and its volts-amp rating. Generally, underground
cables for transmission are of less diameter than those for distribution. The anatomy of
underground cables is shown below in fig. 1
The main part of the underground cable is the core conductor, which transmits the
electrical energy from the source point to the load. Underground cables have now been made
for different applications and at different voltage levels and are still under research and
development. The selection of conductor is relative, depending on manufacturer’s discretion.
It could either be aluminum or copper in solid or stranded form. Also, its application could
influence the choice of conductor, based on its flexibility, economics, physical property,
5|Page
shape, voltage, ampacity and other factors [13]. Conductors are made to carry current under
various conditions and withstand pulling stresses during cable laying [14].
In order to prevent electrical field concentration, a semiconductor interface is
provided between the conductor and the insulation. This is usually black in color. This is the
conductor screen (or shield). It works synergistically with the insulation shield to make for a
uniform cylindrical surface for even distribution of electrical stress [15].
There are different types of insulations for underground power cables, such as
Ethylene Propylene Rubber (EPR), Cross-Linked Polyethene (XLPE), paper insulated and
TreeRetardant Polyethylene (TRPE) compounds. The insulation is used to insulate a high
voltage working conductor from the shield, when working at earth potential [14]. The
insulation has to be able to insulate electrical field under rated voltages, and during
overvoltage. This therefore implies that the size of insulator varies directly as voltage rating.
The insulation screen is also a semiconductor. Apart from aiding of even distribution
of electrical stress, the insulator screen borders electric field within the cable, reduce dangers
arising from shocks, curb radio interference and protect voltage induced by cable when
connected to overhead lines [16]. The outer part of the shield is usually connected to ground
at one point. It is either metallic or non-metallic; drain wires or concentric neutral wires. The
metallic sheath (or concentric neutral conductors) is the metallic part of the insulation screen
and serves as a conduction path for neutral return current [17].
The conductive tape and water tight tape work simultaneously to ensure an
improvement in electrostatic shield and serves as a moisture barrier. The outermost layer and
the first point of protection for the cable is the cable jacket. It provides thermal, mechanical,
environmental and chemical protection. The outer jacket could be made of different
compounds like polyethene, nylon, and a number of other plastics. Some cable manufacturers
prefer the use of sheath or armor instead of a jacket, as this provides better protection than a
jacket.
6|Page
of the material used for insulation. On the other hand, extrinsic aging occurs when the aging
mechanism causes degradation of the cable [15]. This degradation comes about by the
persistent presence of defects, contaminants, protrusions or voids and their intercourse with
any of the aging mechanisms [20].
Electrical stresses tend to be the most dominant ageing factor. Consequently, this
stress causes the underground cable to fail via partial discharge or water treeing mechanism
(that is, heightened by the presence of moisture) [15]. Water treeing activities is the major
and the worst cause of cable failures in organic extruded dielectric and cross-linked
polyethene, in particular. The cable encounters damages in its insulation in which the path of
deterioration resembles a tree. In dry insulators, the main cause of treeing is the presence of
partial discharge under high electric stress and water (or moisture) at low electrical stresses.
In laminated cables, treeing is caused by drying of oil and burning of the insulating papers,
leaving carbon deposits (carbon treeing). This forms a conductive path through the dielectric
material leading to cable failure.
Generally, they are formed by the presence of moisture, impurities, contamination and
electric field over time [21]. Treeing occurs in two forms: -
1. Bow-tie treeing
2. Vented treeing.
Bow-tie trees grow from the insulation outwards towards the surface; the growth is in
the direction of the electric field and in the both directions towards the two electrodes. They
exhibit faster initial growth rate, but don’t grow so large enough to cause failure in insulation.
Vented trees grow from the surface of the polymer inwards towards the dielectric system.
They also grow in the direction of the electric field. However, they exhibit lower initial
growth rate and can grow right through the entire dielectric thickness. This type of trees tends
to cause more damage and, if not checked, lead to cable failure.
Nevertheless, reoccurring cable failures are caused by thermally aged insulation
breakdown. This is mostly observed in the paper insulated cables. Insulation losses are
increased by presence of moisture. This causes heat localization which gradually degrades the
paper insulation [17].
7|Page
Faults also cause instability of the power system, causing three-phase equipment to operate
abnormally. Faults are also liable to cause dangers to personnel and could also start a fire
[22]. Therefore, it is expedient that a fault be disconnected or cleared as soon as it occurs, in
order to maintain normal working conditions of the rest of the system.
Lengthy transmission lines are victims of environmental topography, giving it an
increased fault probability. These faults are broadly classified to shunt and series faults.
Shunt faults, however, have higher chances of occurrence (e.g. single line-to-ground fault).
These faults can be caused by lightning, trees growing on lines, among others [21].
Generally, faults in power systems can be broadly categorized into two, which are
symmetrical faults and unsymmetrical faults.
Symmetrical faults are faults that occur in a power system without causing an
imbalance of the system (i.e. the phases still maintain phase angles of 120° between the
phases). This type of faults rarely occurs and exhibits a large amount of current flow. An
example of symmetrical fault is when the three phases are short circuited to earth [23].
Unsymmetrical faults occur on one phase or two phases. An unsymmetrical fault causes an
imbalance in the power system (i.e. the phases are no longer separated by a phase angle of
120°). They occur between phases or between phase (and phases) and ground [24].
Faults, whether symmetrical or unsymmetrical, are unsafe to the power system and
personnel alike. They are usually caused by persisting ageing mechanisms and other factors.
Some of these factors are: -
1. Poor workmanship.
2. Inherent defects during manufacture.
3. Damage by improper handling.
4. National Electric Energy Testing, Research & Applications Center
(NEETRAC) by Georgia Institute of Technology estimated 42.7% of
outages to faulty splices and terminations [24]
8|Page
fault location [20]. Earth faults, on the other hand, are the most common faults in power
system. This type of fault occurs when a current carrying conductor comes in contact with the
lead (or metallic) sheath, which transfers current to the earth [28]. These faults manifest
themselves in several ways.
1. Three Phase-to-Ground
This occurs when all three phases are in contact with each other. It is exhibited by
large amount of current flow and a drastic voltage drop across the phases (very close to zero),
while the system remains balanced, as shown in fig. 2.
3. Line-to-Line fault
A short circuit occurs between two phases as shown in fig.4. It is exhibited by heavy
current through the two phases, while the third still supplies its load. The system gets
unbalanced due to these types of faults.
4. Line-to-Line-to-Ground
Fault current flows through the shorted phases and to the ground as shown in fig. 5.
9|Page
Figure 2.5 Double Line-to-Ground short circuit fault
5. Single Line-to-Ground
This type of fault accounts for 95 percent of faults in power systems [25]. The load is
supplied by all three phases, but there will be a heavy flow of current to ground from the
failed phase. This fault current circulates back, returns to the neutral and then to the
generator. Fig. 8 shows the fault described
10 | P a g e
costs. This place power companies in positions where they can condone only a very small
amount of losses and also, to optimize their maintenance culture as much as possible.
There are many techniques that are used to detect underground cable fault. All
depending mainly on studying the pattern of the voltage and current waveforms associated
with the fault. Recently a new technique is presented for wave analysis which is wavelet
analysis. Wavelet analysis allows the decomposition of a signal into different levels of
resolution. The basic function (mother wavelet) is dilated at low frequencies and compressed
at high frequencies, so that large windows are used to obtain the low frequency components
of the signal while small windows are used to obtain reflect discontinuities The DWT based
fault classification taking current signal as reference is used to detect all types of short circuit
faults occurring on the line.
11 | P a g e
CHAPTER 3
3. METHODOLOGY
3.1 Identification of Fault
3.1.1 Wavelet Transform
A wavelet is a mathematical function used to divide a given function or continuous-
time signal into different scale components. Usually one can assign a frequency range to each
scale component. Each scale component can then be studied with a resolution that matches its
scale. A wavelet transform is the representation of a function by wavelets. The wavelets are
scaled and translated copies (known as "daughter wavelets") of a finite- length or fast-
decaying oscillating waveform (known as the "mother wavelet"). Wavelet transforms have
advantages over traditional Fourier transforms for representing functions that have
discontinuities and sharp peaks, and for accurately deconstructing and reconstructing finite,
non-periodic and/or non-stationary signals.
Wavelet transforms are classified into discrete wavelet transforms (DWTs) and
continuous wavelet transforms (CWTs).In the wavelet transform we should note that both
DWT and CWT are continuous-time (analog) transforms. They can be used to represent
continuous-time (analog) signals. CWTs operate over every possible scale and translation
whereas DWTs use a specific subset of scale and translation values or representation grid.
There are a large number of wavelet transforms each suitable for different applications.
The wavelet transform can be accomplished in two different ways depending on what
information is required out of this transformation process. The first method is a continuous
wavelet transform (CWT), where one obtains a surface of wavelet Coefficients, CWT(b,a),
for different values of scaling 'a' and translation 'b', and the second is a Discrete Wavelet
Transform (DWT), where the scale and translation are discredited, but not are independent
variables of the original signal. In the CWT the variables 'a' and 'b' are continuous. DWT
results in a finite number of wavelet coefficients depending upon the integer number of
discretization step in scale and translation, denoted by 'm' and 'n'. If a0 and b0 are the
segmentation step sizes for the scale and translation respectively, the scale and translation in
terms of these parameters will be
a=a0m and b=b0a0m (3.1)
12 | P a g e
(3.2)
The above presented equation represents the mother wavelet of continuous time
wavelet series. After discretization in terms of the parameters, a0 ,b0 , 'm' and 'n', the mother
wavelet can be written as,
(3.3)
(3.4)
The commonly used wavelet mother functions are mainly considered as the
following:
(1) Classic wavelet: Harr wavelet, Morlet wavelet and Gaussian wavelet.
(2) Orthogonal wavelet: Daubechies wavelet, Symlets wavelet and Coiflets
wavelet.
(3) Biorthogonal wavelet
The transformation is over continuous time but the wavelets are represented in a
discrete fashion. Like the CWT, these discrete wavelet coefficients represent the correlation
between the original signal and wavelet for different combinations of m‟ and „n‟. In this
study, the line current signals are used as the input signals of the wavelet analysis. The DWT,
using a Daubechies-4 wavelet (db4), performed better at identifying the start and end of a
disturbance. The Daubechies wavelet is very well suited for identifying short-time, high
frequency transients, as well as low frequency behavior over longer periods of time. In both
cases the signals are non- periodic or non-stationary. The fault transients of the study cases
are analyzed through discrete wavelet transform at levels one to five. Both approximation and
13 | P a g e
details information related fault current are extracted from the original signal with the multi-
resolution analysis.
The figure 3.1 below shows the details and approximations of the original signal by
passing the signal through low-pass filters which remove high frequency components and
high-pass filters which pick out high frequency components in the signal being analyzed
The outputs c and l contain the decomposition vector and bookkeeper vector
respectively. The detcoef function can then use to retrieve the detail coefficients from the c
and l decomposition values at level n obtained from the wavedec function as seen in Equation
(3.6).
14 | P a g e
D=detcoef(c,l,n) (3.6)
The detail coefficients can then be plotted and the time-frequency indices of the signal
peaks modulus maxima can be used to calculate the fault location. An example of the
wavedec and detcoef functions being used for fault Detection will be shared in Appendix.
3.1.3 Comparison between Fourier transform (FT) and Wavelet transform (WT)
FT does not reflect frequency that changes over time, that is, for a certain frequency is
detected, when it is generated can’t be determined from Fourier transform. The Fourier
transform lacks the local signal analytical ability. Facing this drawback, Translation and
expansion are a feature of wavelet transform. Therefore, various signals can be analyzed in
different frequency ranges and different time positions. Through this multi-resolution
analysis, a good time sensitivity is obtained in high-frequency signals. Good sensitivity to
time and frequency at different frequencies of wavelet solve the disadvantages of FT
applications and nonstationary signals
3.1.4 System Design with Block Diagrams
A fault can be detected by observing the norm of DWT coefficient of these
fundamental frequency components. If the norm of DWT coefficient for line current less than
certain threshold, the lines are healthy. Once the norm of one or more current DWT
coefficient exceeds the threshold value then disturbance is selected. Six level decomposition
is performed for fault classification.
START
Norm>
15 | P a g e Threshold
NO
No Fault
YES
Phase is involved in Fault
Figure 3.8 Block Diagram for fault identification.
16 | P a g e
The three phase current signals fed through the wavelet decomposition filter, it’s used
to reconstruct the original signal and extract the high frequency detail coefficients and we
will check each lines high frequency detail coefficient value and compare it to the threshold
value if it is greater than the threshold there is a fault in the line and if it is less than the
threshold there is no fault by using this technique we can check all the Eleven types of fault
shown in the above figure and display what kind of Fault is occurring or not in the cable.
17 | P a g e
3.2.2 Working
Normally people have been using commercial voltage (230V).This voltage is step-
down through step down transformer. Transformer is an electrical device that transfers
electrical energy between two or more circuits through electromagnetic induction.. Generally,
transformers are used to increase or decrease the voltages of alternating current in electric
power applications. This step-down voltage goes to rectifier unit. Rectifier is nothing but an
electronic device which used to convert an AC supply into DC supply. This project we were
using bridge rectifier.12V AC supply is converts into 12V DC supply. These voltage moves
to the regulator unit.
Regulator is an electrical device which is used to maintain a constant voltage. Here
we were using two voltage regulators. Program was written if any fault occurs in the cable,
immediately will open the relay terminal and disconnect that faulty line only. Rest of the
other lines operates normally. Now a day’s embedded system changed meteorically.
Arduino is the advanced version of embedded system. These Arduino has ample types but we
selected Arduino UNO. These Arduino UNO helps to develop many advanced version of
Arduino UNO creates user friendly environment.
It easily to adopt other devices using serial port. Next we move the relay. Relay is
nothing but an electrical device here which acted as a switch if any fault occur in the line, the
line will be disconnect using relay. The connector of the relay moves from normally close
conduct to the normally open conduct. We easily find the fault and to disconnect the fault
line. Display unit is connecting the Arduino kit which is used to where the fault occurs and to
display it.
18 | P a g e
Figure 3.9 Block diagram of underground fault detector
19 | P a g e
parameters. The clock speed is 16 MHz which translates to executing about of 300,000 lines
of C source code per second.
We uploaded the program in the kit. Program was written if any fault occurs in the
cable, immediately will open the relay terminal and disconnect that faulty line only. Rest of
the other lines operates normally. Now a day’s embedded system changed meteorically.
Arduino is the advanced version of embedded system. These Arduino has ample types but we
selected Arduino UNO. These Arduino UNO helps to develop many advanced versions of
Arduino UNO creates user friendly environment. It is easily to adopt other devices using
serial port.
20 | P a g e
b) Analog: The area of pins under the „Analog In‟ label (A0 through A5 on the UNO) is
Analog In pins. These pins can read the signal from an analog sensor (like a
temperature sensor) and convert it into a digital value that we can read.
c) Digital: Across from the analog pins are the digital pins (0 through 13 on the UNO).
These pins can be used for both digital input (like telling if a button is pushed) and
digital output (like powering an LED).
d) PWM: The digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as normal
digital pins, but it can also be used for something called Pulse-Width Modulation
(PWM).
e) AREF (Stands for Analog Reference): Most of the time you can leave this pin alone.
It is sometimes used to set an external reference voltage (between 0 and 5 Volts) as
the upper limit for the analog input pins.
3.3.3 Relay
A relay is electro mechanical switch which is used in industrial application to provide
isolation between high voltage and low voltage circuits. These two circuits have different
voltage rating. One might be a low voltage side and other high voltage side. A relay is
electrical mechanical switch which is used for switching between 5 volt circuits and 220/ 12
Volt AC circuits. For example, in microcontrollers based circuits, relay is used to isolate
microcontrollers from 220 volt AC supply.
Components of electro mechanical relay
Electrical mechanical relay have three main components:
1. Coil
2. Spring
3. Contacts
A five volt signal at the coil can turn on relay. When coil is energize with 5 volt
signal, current flows through the coil. When current flows through the coil, a magnetic field
are created in the coil which attract causes the armature (contacts) to attract towards spring.
When no current flows through coil, spring causes the contacts to pull towards normal
position.
In our project, 5 volt signal is given to coil of electro mechanical relay, when switch is
closed, current flows through the coil and energize the coil. When coil energize through 5
volt signal, spring attracts contact form normally open position to closed position. On Left
hand side of coil is normally open position of contact. Because circuit is no complete or in
21 | P a g e
other words current flow path is not complete. When coil is energized with the help of 5 volt
signal, internal spring of electro mechanical relay attract or pulls contact towards other point
and complete the circuit.
An electro mechanical relay can be either normally open or normally closed. In above
circuit diagram, normally open electro mechanical relay is used. A voltage required to
energize the coil, vary from relay to relay. Voltage may vary from 5 volt to 50 volt and
current may vary from mA to 20mA. The relays also have minimum voltage rating. Its means
below voltage rating relay will not operate. One can check minimum operating voltage o
relay in its data sheet. But current requirements are not specified in date sheets. Coil
resistance is usually provided in data sheet of relay which can be used to find current
requirement of relay using Ohm’s law formula V= IR. Relays are used in a wide variety of
applications like electric power systems, home appliances, automobiles, industrial equipment,
digital computers, etc. The connector of the relay moves from normally close conduct to the
normally open conduct easily find the fault and to disconnect the fault line.
22 | P a g e
need to use relays to control AC loads or high voltage loads. Relays are used to provide
isolation between microcontroller’s circuits and high voltage operating loads.
Microcontrollers are only used to provide on/off signals to relays. Microcontrollers don’t
have enough current sourcing ability to derive relays. Therefore relay driver circuits IC is
used to derive relays properly.
There are many ways to design relay driver circuits. But dedicated relay driver
circuits integrated circuits are available which serve the purpose of relay driver IC. Relay
driver circuit IC ULN2003 is one of popular relay driver circuits.
23 | P a g e
Most of the Smartphone‘s with LCD display technology uses active matrix display,
but some of the older displays still make use of the passive display grid designs. Most of the
electronic devices mainly depend on liquid crystal display technology for their display. The
liquid has a unique advantage of having low power consumption than the LED or cathode ray
tube. Liquid crystal display screen works on the principle of blocking light rather than
emitting light. LCD requires backlight as they do not emits light by them. We always use
devices which are made up of LCD‘s displays which are replacing the use of cathode ray
tube.
Cathode ray tube draws more power compared to LCD‘s and are also heavier and
bigger. Most of the LCD Displays available in the market are 16X2 (That means, the LCD
displays are capable of displaying 2 lines each having 16 Characters a), 20X4 LCD Displays
(4 lines, 20 characters). It has 14 pins. It uses 8 lines for parallel data plus 3 control signals, 2
connections to power, one more for contrast adjustment and two connections for LED back
light. The 16×2 LCD display is a very basic module commonly used in circuits. Most
common displays are 16*2 and 20*2 display. A 16X2 LCD has two registers, namely,
command and data.
Command Register: The command register stores the command instructions given to
the LCD. A command is an instruction given to LCD to do a predefined task like
initializing it, clearing its screen, setting the cursor position, controlling display etc.
Processing for commands happen in the command register.
Data Register: The data register stores the data to be displayed on the LCD. When
we send data to LCD it goes to the data register and is processed there. The standard
refers to as HD44780U, which refers to the controller chip which receives data from
an external source (LCD) and communicates with the LCD. Display unit is
connecting the Arduino kit which is used to where the fault occurs and to display it.
24 | P a g e
Figure 3.13 Liquid Crystal Display (LCD)
Advantages of a LCD
LCD consumes less amount of power compared to CRT and LED
LCD is consist of some microwatts for display in comparison to some mill
watts for LED
LCDs are of low cost
Provides excellent contrast
LCDs are thinner and lighter when compared to cathode ray tube and LED
Applications of LCD
Liquid crystal technology has major applications in the field of engineering as well
on electronic devices.
Liquid crystal thermometer
Optical imaging
The liquid crystal display technique is also applicable in visualization of the
radio frequency waves in the waveguide
Used in the medical applications
3.3.6 Buzzer
Buzzer is an electronic device commonly used to produce sound. Light weight, simple
construction and low price make it usable in various applications like car/truck reversing
indicator, computers, call bells etc. Piezo buzzer is based on the inverse principle of piezo
electricity discovered in 1880 by Jacques and Pierre Curie. It is the phenomena of generating
electricity when mechanical pressure is applied to certain materials and the vice versa is also
true. Such materials are called piezo electric materials.
25 | P a g e
3.3.7 Resistors
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow,
adjust signal levels, to divide voltages, bias active elements, and terminate transmission
lines, among other uses. High-power resistors that can dissipate many watts of electrical
power as heat may be used as part of motor controls, in power distribution systems, or as test
loads for generators. Fixed resistors have resistances that only change slightly with
temperature, time or operating voltage. Variable resistors can be used to adjust circuit
elements (such as a volume control or a lamp dimmer), or as sensing devices for heat, light,
humidity, force, or chemical activity. Resistors are common elements of electrical networks
and electronic circuits and are ubiquitous in electronic equipment. Practical resistors as
discrete components can be composed of various compounds and forms. Resistors are also
implemented within integrated circuits.
26 | P a g e
equivalent to a volt per ampere. Since resistors are specified and manufactured over a very
large range of values, the derived units of mill-ohm, kilo-ohm, and mega-ohm are also in
common usage.
3.4.2 Power dissipation
At any instant, the power P (watts) consumed by a resistor of resistance R (ohms) is
calculated as: where V (volts) is the voltage across the resistor and I (amps) is the current
flowing through it. Using Ohm's law, the two other forms can be derived. This power is
converted into heat which must be dissipated by the resistor's package before its temperature
rises excessively. Resistors are rated according to their maximum power dissipation. They
usually absorb much less than a watt of electrical power and require little attention to their
power rating. Resistors required to dissipate substantial amounts of power, particularly used
in power supplies, power conversion circuits, and power amplifiers, are generally referred to
as power resistors; this designation is loosely applied to resistors with power ratings of 1 watt
or greater.
Power resistors are physically larger and may not use the preferred values, color
codes, and external packages. If the average power dissipated by a resistor is more than its
power rating, damage to the resistor may occur, permanently altering its resistance; this is
distinct from the reversible change in resistance due to its temperature coefficient when it
warms. Excessive power dissipation may raise the temperature of the resistor to a point where
it can burn the circuit board or adjacent components, or even cause a fire. There are
flameproof resistors that fail (open circuit) before they overheat dangerously. Since poor air
circulation, high altitude, or high operating temperatures may occur, resistors may be
specified with higher rated dissipation than is experienced in service. All resistors have a
maximum voltage rating; this may limit the power dissipation for higher resistance values.
27 | P a g e
and twelve switches representing faults are simulated using Proteus. Example if Switch SW 1
is closed, this results in a voltage drop across R 4. While any of the 12switches (representing
as fault switches) are operated they impose conditions like line to ground (LG), line to line
(LL), line to line to line(LLL) fault as per the switch operation.
The program while executed continuously scans by operating the three relays in
sequence of a time interval written in the Arduino IDE. Thus, any NO point while driven to
GND through the common contact point of the relay develops a current flow through R16 &
any of the cable by the fault switch depending on the created fault. Thus, the voltage drop at
the analog to digital (ADC) pin varies depending on the current flow which is inversely
proportional to the resistance value representing the length of cable in kilometers. This
varying voltage is fed to the ADC to develop an 8-bit data to the microcontroller port1.
Program while executed displays an output in the LCD display upon the distance of the fault
occurring in km. In a fault situation, it display’s for example R=2km if the 2km’s switch is
made ON. Accordingly, all other faults are indicated. Here the operation principle is
described basically as: regular conducting wire along with resistors is used to represent the
power cable. Four switches and the resistors have been inserted at regular intervals on the
wire.
28 | P a g e
Figure 3.15 Murray Bridge Loop
29 | P a g e
CHAPTER 4
50KM 50KM
S L
30 | P a g e
Nominal phase to phase voltage………220
Nominal frequency…………………….50
Active power…………………………..304.8
Inductive Reactive Power………………228.6
Capacitive Reactive Power…………….0
4.2.3 Distributed Parameter Line: the Distributed Parameters Line block implements an N-
phase distributed parameter line model with lumped losses.
Parameters:
Number of Phases………………………3
Line length (KM)………………………..50
Frequency………………………………..50
Resistance per unit length (NxN)………. [0.01273 0.3864]
Inductance per unit length (NxN)……… [0.9337e-3 4.1264e-3]
Capacitance per unit length (NxN)…….. [12.74e-9 7.751e-9]
The performance of the proposed technique has been tested for numerous fault
situations. The proposed technique has been tested by varying different types of fault
parameters. Simulation results of the proposed technique have been described in the next sub
sections.
4.3.1 Test Results for No-Fault
By simulating the test system for no-fault, the performance of the proposed scheme is
tested for healthy operation of a test system. The approximate and the high frequency detail
coefficients signify the output of wavelet filter after passing the signal through it. The three
31 | P a g e
phase current for the duration of no-fault is shown in Fig. 3.The detail coefficients of phase –
A, B and C for the period of no-fault are shown in Fig. 4, 5 and 6. The performance of
wavelet transform based fault detection is examined for no-fault operation and the test results
are demonstrated in Table 4.1.
Phase-A Phase-B
Phase-C Ground
32 | P a g e
Coefficient of Coefficient of Coefficient of Coefficient of
Fault
Phase A Current Phase B Current Phase C Current Ground Current
No Fault 91.0156 156.3831 211.4927 4.1648e-09
Table 4.2 Maximum coefficient of each phase during no fault
Phase-A Phase-B
33 | P a g e
Phase-C Ground
2. Phase B to Ground Fault: occurs when Phase B is connected to ground. The three
phase current and detail coefficients during B-g faults are shown below.
34 | P a g e
Figure 4.22 Three phase current during B-g fault
Phase-A Phase-B
Phase-C Ground
3. Phase C to Ground Fault: occurs when Phase C is connected to ground. The three
phase current and detail coefficients during C-g faults are shown below.
35 | P a g e
Figure 4.24 Three phase current during C-g fault
Phase-A Phase-B
Phase-C Ground
36 | P a g e
4.3.3 Test Results for Double Phase Faults
Double phase Faults occur when a short circuit occurs between two phases. It is
exhibited by heavy current through the two phases, while the third still supplies its load. The
system gets unbalanced due to these types of faults. We examined the three double phase
faults in our model and their results are shown below.
1. Fault between Phase A and Phase B: occurs when Phase A is connected to Phase-B.
The three phase current and detail coefficients during faults are shown below.
Phase-A Phase-B
Phase-C Ground
37 | P a g e
Figure 4.27 Detail Coefficients during A-B Fault.
2. Fault between Phase A and Phase C: occurs when Phase A is connected to Phase C.
The three phase current and detail coefficients during faults are shown below.
Phase-A Phase-B
38 | P a g e
Phase-C Ground
3. Fault between phase B and phase C: occurs when Phase B is connected to Phase C.
The three phase current and detail coefficients during faults are shown below.
39 | P a g e
Figure 4.30 Three phase current during B-C fault
Phase-A Phase-B
Phase-C Ground
40 | P a g e
Table 4.8 Maximum coefficient of each phase During B-C fault
Phase A Phase B
41 | P a g e
Phase C Ground
2. Fault between Phase A-Phase C to Ground: this kind of fault occurs when fault
current flows through the shorted phases A and C and to the ground. The three phase
current and detail coefficients during faults are shown below.
Phase A Phase B
42 | P a g e
Phase C Ground
3. Fault between Phase B-Phase C to Ground: this kind of fault occurs when fault
current flows through the shorted phases B and C and to the ground. The three phase
current and detail coefficients during faults are shown below.
43 | P a g e
Figure 4.36 Three phase current during BC-G fault
Phase A Phase B
Phase C Ground
44 | P a g e
Coefficient of Coefficient of Coefficient of Coefficient of
Fault
Phase A Current Phase B Current Phase C Current Ground Current
BC-G 74.7976 486.8336 390.2171 177.2475
Table 4.11 Maximum coefficient of each phase During BC-g fault
Phase A Phase B
Phase C Ground
45 | P a g e
Figure 4.39 Detail Coefficients during Three phase Fault
46 | P a g e
Figure 4.40 Three phase current during three phase to Ground fault
Phase A Phase B
Phase C Ground
47 | P a g e
Phase A Current Phase B Current Phase C Current Ground Current
Three
319.0618 61.1395
phase to 579.5183 398.6282
Ground
Table 4.13 Maximum coefficient of each phase During Three phase to ground fault
48 | P a g e
Figure 4.42 Simulation of Resistor and Switch Part
Case 2: when there is a LG-fault among one of the three lines, we can get the following the
simulated result.
i.e., a fault is happen for the red line in 1km but not in any two lines (Y and B).
49 | P a g e
Case 3: if there is a LLG-faults in the transmission lines, the LCD displays the result below.
i.e., LLG faults are occurred in the yellow line and Redline (Y, B) in 2km and 1km
respectively.
Case 4: when LLLG-faults exists, the simulated result as shown below indicates that a fault is
happen for the red line in1km, for the yellow line in 2km and for the Green line in 3km.
50 | P a g e
CHAPTER 5
51 | P a g e
displays which phase is affected in the cable. This Thesis we have undertaken has helped us
to gain a better perspective on various aspects related to our course of study as well as
practical knowledge of underground cable fault detection system. We became familiar with
software analysis and designing concerned with our project.
This paper explains the importance of locating faults in the distribution network and
reviews some of the cable fault locating methods that are mostly used in practical field. There
is a need to immediate indication about occurrence of a fault via remote communication;
hence it needs to implement some techniques which will help power utilities in immediate
indication of fault occurrence and accurate methods for locating faults. To facilitate the
development, the preliminary investigation requirements and the essential segments to be
verified are presented in this paper. In this paper the exact location of short circuit fault at a
particular distance in the underground cable from feeder end in km can be located by using
Arduino microcontroller.
The concept of OHM’s law is used so fault can be easily detected and repaired. It’s a
difficult task to identify the faults in underground cables. By using Arduino controller, we
can find out exact fault location. Once faults occur in the cable, the display unit displays the
exact fault location that displays which phase is affected in the cable. In this project, simple
OHM’s law is used to locate the short circuit fault. A DC voltage is applied at the feeder end
through a series resistor, depending upon the length of fault of the cable current varies. The
voltage drop across the series resistor changes accordingly, this voltage drop is used in
determination of fault location. Generally Underground cables are used largely in urban area
instead of overhead lines. But we can’t easily identify the faults in the underground cables.
Therefore, this thesis deals with Arduino microcontroller, and LCD to sufficiently detect and
identify the faults in underground cables easily
52 | P a g e
This project is a small implication of our concept in protecting and underground short
circuit cable fault detection system. The practical applications of this project are immense or
very large and can have vast level of implementation. This project can be implemented in a
large scale to encompass or address the underground cable fault problem district by using
OHMS law with Arduino technology. This small concept can be also used in fields such as
power system, power system planning and operation and many other related fields where
continuous protection and detection of faults is needed. So, this is not the end of the project
but rather is a step towards exploring other possibilities that it brings with it. We can further
explore and expand this project to detect other type of faults such as open circuit fault and
earth fault in addition to short circuit.
53 | P a g e
REFERENCES
[1] Sukumar M . Brahma, “Distance relay with out of step blocking function using wavelet
transform”, IEEE Trans on Power Delivery,vol.22, No.3 pp.1360-1366 , July 2007.
[2] Ashraf .I. Megahed, A. Monem Moussa,and A.E. Bayoumy, “Usage of wavelet transform
in the protection of series compensated transmission lines”, IEEE Trans on Power
Delivery,vol.21, No.3, pp.1213-1221, July 2006.
[3] C.H. Kim, R.Aggarwal, “Wavelet transforms in power systems”, IET Power Engineering
Journal, vol. 15, Iss 4, pp. 193-202, August 2001.
[4] Joe-Air Jiang,Ping-Lin Fan,Ching-Shan Yu,and Jin Yi Sheu, ‘‘A Fault Detection and
Faulted phase Selection Approach for transmission lines with Haar wavelet transform”,
IEEE Conference on trans and dist, vol. 1 ,pp 285-289, April 2003.
[5] S.R.Samantary,P.K.Dash and G.Panda, ‘‘Transmission line fault detection using time
frequency analysis”,IEEE Conference on Indicon , pp 162-166 , December 2005.
[6] Dr.S.M.El Safty,Dr.M.A. Sharkas, college of engineering, Arab Academy of Science and
Technology, ‘‘Identification of transmission line faults using wavelet analysis”, IEEE
Proceeding on circuits and system, vol. 3, pp 1108-1111, December 2003.
[7] Feng Yan, Zhiya Chen, Zhirui Liang,Yinghui Kong and Peng Li,‘‘Fault location using
wavelet packets”, In Proc. Int. Conference on power system technology, vol.4, pp 2575-
2579, 2002.
[8] Roberto Benato, Antonio Paolucci, EHV AC Undergrounding Electrical Power (Power
Systems), 2010.
[9] Abdulkareem A., C.O.A Awosope, A.A Awelewa “The use of three-phase fault analysis
for rating circuit breakers on Nigeria 330KV Transmission Lines”. Journal of
Engineering and Applied Sciences, 11(12): 2612-2622, 2016.
[10] Awelewa A.A, Mbamaluikem P.O, Isaac A. Samuel “ Artificial neural networks for
intelligent fault location on the 33KV Nigeria Transmission Line”. International
Journal of Engineering Trends and Technology, 54(3), 2017.
[11] [Online]. Available: http://www.emfs.info/Sources+of+EMFs/Underground/.
[12] [Online]. Available: http://www.dnaindia.com/india/report-to-curb-power-
theftmaharashtra-explores-underground-supply-network-across-state-2084774.
[13] S. Y. King, N. A. Halfter, Underground Power Cables, New York: Longman Inc., 1982.
[14] Association, National Rural Electric Cooperative, Underground Distribution System
Design and Installation Guide, Washington D.C., 1993.
54 | P a g e
[15] Butler-Purry, M. J. Mousavi and K. L, "Study of thermal aging effects on distribution
transformer solid insulation," in 34th North American Power Symposium, Tempe, AZ,
Oct. 2002.
[16] J. Densley, "Ageing mechanisms and diagnostics for power cables – an overview," IEEE
Electrical Insulation Magazine, vol. 17, no. 1, pp. 14 - 22, January – February, 2001.
[17] N. Srinivas, and N. Ahmed, "Condition assessment of distribution and transmission class
voltage cable systems," in IEEE 10th International Conference on Transmission and
Distribution Construction, Operation and Live-Line Maintenance, Orlando, FL, 2003.
[18] N. H. Malik, A. A. Al-Arainy, and M. I. Qureshi, Electrical Insulation in Power
Systems, New York: Marcel Dekker, 1998.
[19] T. Sandri, Director, Cable Fault Locating Webinar. [Film]. PROTEC Equipment
Resources.
[20] "ELPROCUS," [Online]. Available: https://www.elprocus.com/what-are-the-
differenttypes-of-faults-in-electrical-power-systems/. [Accessed 02 03 2018].
[21] "Quora," [Online]. Available: https://www.quora.com/What-are-symmetrical-
andunsymmetrical-faults. [Accessed 02 March 2018].
[22] B. Anderson, Director, Fault Characteristics of Power Grids. [Film].
[23] G. Ojha, A. G. Roy and R. Verma, "Underground Cable Fault Distance
Locator,"International Journal of Advance Research, Ideas and Innovations in
Technology, vol. 3, no. 2.
[24] K., Padmanaban; G., Sanjana Sharon; K., Vishnuvarthini, "Detection of Underground
cable fault using Arduino".
[25] Victory, Itodo Friday, "Design And Construction Of Digital Underground Cable Fault
Locator," University of Agriculture, Makurdi, Benue State, Nigeria, February, 2012.
[26] P.S. Pooja . M. Lekshmi, "Fault Detection and Technique to Pinpoint Incipient Fault for
Underground Cables," International Journal of Engineering Research and General
Science, vol. 3, no. 3, May - June, 2015.
[27] M. Dhekale P. , S. Bhise S. , R. Deokate N. , Prof. Survawanshi R., "Underground Cable
Fault Distance Locator," International Journal Of Innovations in Engineering
Research and Technology, vol. 2, no. 4, 2015.
[28] Sawatpipat P., Tayjasanant T., "Fault Classification for Thailand's transmission lines
based on discrete wavelet transform," in International Conference on Electrical
Engineering/Electronics Computer Telecommunications and Information Technology
(ECTI-CON), 2010.
55 | P a g e
[29] Akash Jagtap, Jayesh Patil, Bhushan Patil, Dipak Patil, Aqib Al Husan Ansari, Atul
Barhate, "Arduino based Underground Cable Fault Detection," Maharashtra, India.
56 | P a g e
APPENDIX
I. Code For Underground Cable Fault Detection
clc;
clear all;
open('q.slx');
sim('q.slx');
currentA = current1;
currentB = current2;
currentC = current3;
currentG = current4;
[cA, LA] = wavedec(currentA, 1, 'db4');
[cB, LB] = wavedec(currentB, 1, 'db4');
[cC, LC] = wavedec(currentC, 1, 'db4');
[cG, LG] = wavedec(currentG, 1, 'db4');
coefA = detcoef(cA, LA, 1);
coefB = detcoef(cB, LB, 1);
coefC = detcoef(cC, LC, 1);
coefG = detcoef(cG, LG, 1);
m = max(coefA);
n = max(coefB);
p = max(coefC);
q = max(coefG);
if m > 250
if n > 250
if p > 175
if q > 50
disp("Three Phase to ground Fault is Detected")
end
end
end
end
if m > 250
if n > 250
if p > 175
if q < 50
disp("Three Phase Fault is Detected")
57 | P a g e
end
end
end
end
if m > 250
if n > 250
if p < 175
if q > 50
disp("Double Line to Gournd Fault (AB-G) is Detected")
end
end
end
end
if m > 250
if n < 250
if p > 175
if q > 50
disp("Double Line to Gournd Fault (AC-G) is Detected")
end
end
end
end
if m < 250
if n > 250
if p > 175
if q > 50
disp("Double Line to Gournd Fault (BC-G) is Detected")
end
end
end
end
if m > 200
if n > 250
if p < 175
if q < 50
disp("Line to Line Fault Between Phase A and B is Detected")
end
end
end
end
58 | P a g e
if m > 250
if n < 250
if p > 175
if q < 50
disp("Line to Line Fault Between Phase A and C is Detected")
end
end
end
end
if m < 250
if n > 250
if p > 175
if q < 50
disp("Line to Line Fault Between Phase B and C is Detected")
end
end
end
end
if m > 200
if n < 300
if p < 175
if q > 50
disp("Single Line to Ground Fault in Phase A is Detected")
end
end
end
end
if m < 200
if n > 150
if p < 175
if q > 50
disp("Single Line to Ground Fault in Phase B is Detected")
end
end
end
end
if m < 250
if n < 250
if p > 175
if q > 50
59 | P a g e
disp("Single Line to Ground Fault in Phase C is Detected")
end
end
end
end
if m < 250
if n < 250
if p < 250
if q < 50
disp("No Fault is Detected. System is Normal")
end
end
end
end
#include <LiquidCrystal.h>
LiquidCrystal lcd(2,3,4,5,6,7);
#define sensor A0
#define relay1 8
#define relay2 9
#define relay3 10
#define buzzer 13
int read_ADC;
int distance;
byte symbol[8] = {
B00000,
B00100,
B00100,
60 | P a g e
B00100,
B11111,
B01110,
B00100,
B00000};
void setup() {
pinMode(sensor,INPUT);
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
pinMode(relay3, OUTPUT);
pinMode(buzzer, OUTPUT);
lcd.createChar(1, symbol);
lcd.begin(16, 2);
lcd.clear();
lcd.setCursor(0, 0); // set the cursor to column 0, line 2
lcd.print("Welcome to Cable");
lcd.setCursor(0, 1); // set the cursor to column 0, line 2
lcd.print("Fault Detection");
delay(2000);
lcd.clear();
}
void loop(){
lcd.setCursor(1,0);
lcd.print("R");
lcd.write(1);
lcd.setCursor(7,0);
lcd.print("Y");
61 | P a g e
lcd.write(1);
lcd.setCursor(13,0);
lcd.print("B");
lcd.write(1);
digitalWrite(relay1,HIGH);
digitalWrite(relay2,LOW);
digitalWrite(relay3,LOW);
delay(500);
data();
lcd.setCursor(0,1);
if(distance>0){lcd.print(distance); lcd.print("KM ");}
else{lcd.print(" NF ");}
digitalWrite(relay1,LOW);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,LOW);
delay(500);
data();
lcd.setCursor(6,1);
if(distance>0){lcd.print(distance); lcd.print("KM ");}
else{lcd.print(" NF ");}
digitalWrite(relay1,LOW);
digitalWrite(relay2,LOW);
digitalWrite(relay3,HIGH);
delay(500);
data();
62 | P a g e
lcd.setCursor(12,1);
if(distance>0){lcd.print(distance); lcd.print("KM ");}
else{lcd.print(" NF ");}
void data(){
read_ADC = analogRead(sensor);
distance = read_ADC/100;
if(distance>9)distance = 0;
if(distance>0){
digitalWrite(buzzer,HIGH);
delay(200);
digitalWrite(buzzer,LOW);
delay(200);
}
}
63 | P a g e