Microcontroller Based Power Transformer Protection System
Microcontroller Based Power Transformer Protection System
By
UNIVERSITY OF NAIROBI
APRIL, 2015
i
DECLARATION OF ORIGINALITY FORM
Faculty/School/Institute ENGINEERING
DECLARATION
1. I understand what Plagiarism is and I am aware of the Universitys policy in this regard
2. I declare that this final year project is my original work and has not been submitted elsewhere
for examination, award of a degree or publication. Where other peoples work, or my own work
has been used, this has properly been acknowledged and referenced in accordance with the
University of Nairobis requirements.
3. I have not sought or used the services of any professional agencies to produce this work
4. I have not allowed, and shall not allow anyone to copy my work with the intention of passing
5. I understand that any false claim in respect of this work shall result in disciplinary action, in
Signature _______________________________________________
Date ___________________________________________________
i
Acknowledgement
First and foremost, I thank the Almighty God for His guidance throughout my studies in the
University of Nairobi and the completion of this project.
I am very grateful to my supervisor Professor Elijah Mwangi for his guidance throughout this
project. The sessions that I had with professor inspired me to work harder every time we met.
I also thank the Department of Electrical and Information Engineering and my lecturers for
instilling in me the knowledge that has brought me this far.
Finally, I am grateful to all my classmates and friends who contributed to the success of my
studies in one way or another. I specifically thank Mr. Shaban Otaro, Mr Benard Osawa, and
Awino Felix for being so great friends and brothers.
ii
Dedication
This project is dedicated to my family for their support throughout my academic life. I am
grateful to my brothers Paul, Dan and Ken for always providing a listening ear whenever I was in
need. Lastly to my friend Joy for always being the supportive friend that God gave me.
iii
ABSTRACT
The main intention of this project is to design a microcontroller based system that can be used in
power transformer protection. The system checks the operating parameters of the transformer i.e.
current and reports the quantity that is flowing through the transformer. The system is designed
such that it is able to detect currents above the normal operating level and isolate the power
transformer from the distribution line. This isolation process is to ensure that the transformer is
safe from any excess current levels that can make it to overheat thus get damaged. It gives a
solution to the need to reduce cost of maintenance and ensure that supply of electricity to
consumers is not interrupted for long periods taken while repairing or replacing destroyed
transformers.
A current sensor ACS712x series has been used in this project as the interfacing instrument
between the power transformer and the PIC16F690 microcontroller. The PIC16F690 controls all
operations that the device does. A relay and a contactor have been used as the switching gears to
isolate the transformer from the power system in case a fault occurs. A monochrome LCD has
been used to show system current readings and indicate cases of over-current fault. To warn an
operator of a fault occurrence, LEDs and a piezoelectric buzzer have been used. All these
peripheral devices depend on the microcontroller to make them operate or otherwise. Some of
the tools used in this project include MPLAB - programming software used to write the program
for the microcontroller used in this project. Proteus- simulation software has also been used to
test whether the design works appropriately before its implementation on hardware. Pickit3- has
been used to load program into the microcontroller using MPLAB.
iv
ACRONYMS AND ABBREVIATIONS
PIC Programmable Intelligent Controller
GND Ground
CT Current transformer
AC Alternating Current
DC Direct Current
IC Integrated circuit
v
LIST OF TABLES
vi
TABLE OF FIGURES
vii
Figure4.11 ADC output against input voltage [12] .................................................................... 36
viii
TABLE OF CONTENTS
ix
4.2.2 LCD DISPLAY..............................................................................................................................................34
4.2.3 Relay and Fault Signals ............................................................................................................................37
CHAPTER 5: RESULTS AND ANALYSIS .................................................................................................................39
REFERENCES....................................................................................................................................................... 3
x
CHAPTER 1: INTRODUCTION
1.1 BACKGROUND
In the design of electrical power transmission and distribution system, there are various factors
that need to be considered in the quest to satisfy the needs of electricity consumers. Electrical
power systems experience faults at various times due to various reasons. These faults must be
foreseen and safety precautions applied to the power system. The power systems engineer must
include in his design, safety measures in order to avert any destructive occurrences that the
system may undergo at any given time. Power system protection is very essential and necessary
for a dependable electrical power supply. It ensures that the system is protected from itself and
that the consumer is also safe as he benefits from the electrical power supply. An electrical
power system consists of various components such as generators, switches, transmission cables,
transformers, capacitor banks among other components. It cannot therefore operate without an
effective protective device to keep these components safe and the system stable. Faults in a
power system refer to the undesired conditions that occur in the electrical power system. These
conditions may include short circuit, over current, overvoltage, high temperatures among others.
It is clear that over time, there has been an increase in human population, economic growth and
technological advancement. This has continuously made the demand for electrical power to go
high because as technology, human population and economy grows; there is an increase in
demand for power as many more electrical loads are introduced into the supply line. An increase
in load leads to a lot of current drawn from the power line. At times the demand goes above what
the power distributor can supply. The consequence of this is that electrical power overload cases
become common thus posing danger to power system components. This therefore throws in the
need for devices that can monitor the rate of power consumption in accordance with the level
that a given system is designed to sustain. Such a device must be designed to cut off
consumption if the system oversteps its ability thus being dangerous to users and the
components. In this project, we look at the protection of power transformer from various faults
that may occur and may be destructive to the component if left undetected. The transformer is a
very important component in an electrical power system as distribution of electrical power to
consumers is more efficiently effected. Every transformer is designed to comfortably supply a
given load. Cases of overload or short circuits can lead to transformer being damaged. To
combat such occurrence, an elaborate system that monitors these excesses in supply parameters
needs to be built. Such a device controls the flow of electrical power to the load so that the
transformer is not overworked. Over current relays and overvoltage relays have been used for a
long period of time and have been electromechanically controlled. In this system, a
microcontroller is used to monitor cases of electrical faults and communicate to a switch to
isolate the transformer from the system.
1
1.2 PROBLEM STATEMENT
Power system protection is a very important consideration in the design of an electrical power
system. There is need to protect electrical power components from dangerous faults. This is
warranted by the need to increase the life of the components, avoid unnecessary expenditure in
frequent replacement of obsolete components and to ensure that there is a continuous supply of
power to serve the needs of the ever growing economy. This project therefore seeks to design a
microcontroller based system that will intelligently monitor faults and prompt a safety measure
to protect the power transformer in case of power overload.
1.3 OBJECTIVES
The main objective of this project is to design and implement a system that uses microcontroller
and other peripheral devices to protect power transformer. To achieve this the following must be
done.
a) Design and build an over current relay using PIC microcontroller and a current sensor
b) Development, analysis and calibration of the current sensor.
c) Development of the ADC program to convert the analogue sensor output to equivalent
digital form within the PIC microcontroller.
d) Development of the LCD program to display the sensed levels.
e) Development of warning (audio and visual) and relay control system program.
2
CHAPTER 2: LITERATURE REVIEW
The main aim of power system protection scheme is to switch off a section that is faulty in the
system from the remaining live system. This ensures that the remaining portion is able to
function satisfactorily locking out chances of damage that may be caused by fault current.
A circuit breaker closes automatically as a result of trip signals it receives from the relay
whenever a fault is detected. The basic philosophy of a power protection system is that system
faults cannot be prevented from flowing in the system but can be stopped from spreading in the
system.
4
d) Power Supply Stability- Ensures a continuous and stable supply of electrical
power.
e) Operation Cost -Ensure optimal operating efficiency so as to reduce equipment
maintenance/replacement cost
Unit Protection
The unit protection scheme protects a definite\discrete zone bounded by the protection system.
Differential relay protection is normally employed in this scheme. This is illustrated in Figure 2-
3
Non-Unit Protection
The Non-Unit protection protects a system\zone and can overlap with another protection zone in
the system. This scheme ensures an isolation of the entire circuit (a larger area) in case a fault
occurs as illustrated in figure 2-4
Protective gear: consists of protective relays like voltage, current, impedance, frequency
and power relays, based on operating parameter, definite time, inverse time, and stepped
relays, classified according to operating characteristic, differential and over fluxing
relays classified according to logic. When a fault occurs, relay sends signal to relay to the
circuit breaker completing its circuit thus making it to trip [1].
Station batteries: all circuit breakers in a power system operate using direct current. The
current is provided by battery banks that are installed together with the circuit breaker. It
is thus an essential element in a power protection system.
6
2.2.4 Functional requirement of a protection relay
In order for a protection relay to operate effectively, it must have the following qualities[5].
There are two basic principles that explains the operation of a transformer
7
Figure2.7 Electro-magnetic induction [6]
As shown in the diagram above, as current passes through the primary coil, it causes magnetic
field. The primary and the secondary windings are woven around a core whose magnetic
permeability is very high. This is to ensure that a large percentage of the magnetic flux pass
through the primary windings and the secondary windings.
Power transformers are transformers used in transmission networks for example in transmission
substations. Their power rating is normally more than 200KVA [4]. Substation transformer is
used to step down the utility service voltage. Some of the characteristics of power transformers
include;
8
Figure2.8 Photo of a power transformer [4]
a) Winding and core fault is the most frequent type of fault in a power transformer.
This can be attributed to weakening of conductor insulation. Phase faults rarely
occur in the transformer, they may however occur at the terminals of that are
found within the transformer protection zone.
b) Most power transformers use oil for cooling and insulation, oil leakage can also
be a cause of fault in a transformer.
c) The inrush current that occurs momentarily when a transformer is energized can
also be treated as a fault unless conditions are set for its detection.
d) Inter-turn faults may occur and cause rise in hot spots within the transformer
winding.
e) Transformer may experience over fluxing which may be as a result of transformer
operating at low frequency at rated voltage. Over fluxing may also be caused by
overvoltage operation at rated frequency.
f) Sustained overload can also be a cause of fault in a transformer
This protection scheme is used to protect transformers against internal short circuits. It is an
effective method to protect transformer against internal faults. It may however not be effective in
protecting the transformer against ground fault in case of ungrounded or high impedance
9
grounding. The following factors affect differential current in a transformer and should be taken
into consideration while using differential protection scheme to protect a transformer [5].
10
CT saturation: this is a phenomenon where a CT is no longer able to produce an output
that is proportional to its primary current as per the transformation ratio. The main reason
for this is the property of the core to go into magnetic saturation due to high currents or
large burden at the secondary side. His can cause relay operating current to flow as a
result of distortion of the CT current [ 7].
Different primary and secondary voltage levels: that is the secondary and voltage CTs are
of different ratios
Phase displacement in delta wye transformers.
In order to take care of the above variables, a differential transformer relay that is less sensitive
(in the range of 15%-60%) is applied.
11
Figure2.12 Differential protection Scheme [7]
Differential relay can fail due to magnetizing inrush current. The magnetizing inrush current
waveform normally consists of several harmonics while the internal fault current consists of the
fundamental component. To solve the problem of inrush current, a harmonic restraint relay is
used. It is only effective during inrush current and remains inactive the remaining times.
Restricted earth fault protection is used in power transformer to detect the transformers internal
earth fault. This scheme is connected as shown below. It is restricted to the transformer winding;
otherwise, it may operate for any ground fault anywhere in the system. It detects faults with
values below pick up of differential relay.
Over current protection scheme ensures that the transformer is protected from momentary excess
current caused by overload, power surge etc.
In electric power system, over current refers to a situation where more than current intended
flows through a conductor. This leads to excessive heat generation and thus the risk of causing
fire or causing destruction to electrical equipment. Over current is caused by short circuit,
overloading or wrong design.
12
Figure2.14 Over current Phenomenon [9]
This phenomenon can be prevented using over current protection. This scheme is normally used
for large transformers (over 5MV)
Over current protection protects the transformers against currents that rise beyond its rated value.
Over current relay isolates the transformer in case of a fault in the system. This relay is the focus
of this project. It can be implemented using analogue circuitry or digitally using
microcontrollers. This project seeks to apply microcontroller and appropriate software program
to design an over current relay. The diagram below illustrates an over current relay scheme [1].
13
CHAPTER 3: REVIEW OF COMPONENTS USED
As shown in figure 2-16, it can be noted that the microprocessor is actually constituted inside the
microcontroller.
There are two architectures used to organize computers; Harvard architecture and Von Neumann
architecture. Harvard architecture has the data memory separate from program memory while
Von Neumann has both data and program in the same memory location. The advantage of
Harvard architecture over Von Neumann architecture is that the CPU can fetch both data and
instruction simultaneously [11]. This relationship is depicted in figure 2-17.
14
Figure3.2 microcomputer memory organization [11]
15
This microcontroller has the following features that made it an appropriate choice for carrying
out this project.
16
Monochrome LCDs produce either dark or blue images while colour LCDs use passive matrix or
thin film transistor to display many colours. In this project, a monochrome LCD is used because
the aim of LCD usage is basically to display numerical figures and characters. LCDs consume
little power thus they can be powered using battery.
This project makes use of HD44780 LCD. It is a 16x2 line LCD with 8-bit wide data bus (D0-
D7). It has three power pins (pins1-3), and three control pins (pins 4-5). The LCD can be
operated either in 4-bit or 8-bit interface. 8bit interface makes use of all the pins while 4-bit
mode uses only 4 data lines plus the other remaining pins. In this project, 8-bit mode is used.
17
ENABLE PIN: This pin is key in the operation of the LCD. Data can only be latched into the
LCD when high to low signal is passed into this pin. There should be at least 450ns delay
between clearing and setting this pin, because of the higher frequency of the microcontroller
relative to the LCD.
R/W: informs the LCD whether the information is supposed to be read or written on the
LCD.When:
When: RS = 0:command
RS = 1: data
D0-D7: these are the data pins, information is sent/received via these pins.
18
TABLE 3.4 HD44780 instruction set
Instruction Code
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Clear display 0 0 0 0 0 0 0 1
Cursor home 0 0 0 0 0 0 1 *
Entry mode 0 0 0 0 0 1 I/D S
Display ON/OFF & cursor 0 0 0 0 1 D C B
Cursor/display shift 0 0 0 1 S/C R/L * *
Function set 0 0 1 DL N F * *
Set CGRAM address 0 1 A A A A A A
Set display address 1 A A A A A A A
I/D: 1 = Increment, 0 = Decrement S: 1 = Display shift ON, 0 = OFF
D: 1 = Display ON, 0 = OFF C: 1 = Cursor ON, 0 = OFF
B: 1 = Cursor blink ON, 0 = OFF R/L: 1 = Right Shift, 0 = Left shift
S/C: 1 = Display shift, 0 = Move cursor DL: 1 = 8-bit interface, 0 = 4 bit
N: 1 = two lines, 0 = 1 line F: 1 = 5x10 dots, 0 = 5x7 dots
Carrying out any operation on the LCD requires that instructions be sent via the data lines. This
means that the RS pin has to be set low. The instructions in the tables above are used to write
information to the LCD. The LCD can be used in either of the following configurations,
8-bit configuration: all the eight data pins are used (D0 D7)
4-bit configuration: only four of the data lines are used (D4 D7)
There are two more pins (anode and cathode) that enable data written when it is dark to be seen.
19
The current sensor used in this project is Allegro ACS712ELCTR-30A-T. It is popularly used in
diverse applications in motor control, electric vehicles and in power distribution. It has the
following features [7];
The Allegro ACS712ELCTR-30A-T has a low-offset linear Hall sensor circuit that has a
conduction path made of copper located next to the die. A magnetic field is caused by the current
flowing through the copper conductor. This magnetic field is detected by the integrated Hall IC
which converts it into a voltage proportional to the magnetic flux. A current of 1A flowing in a
conductor produces 66mV. The close proximity of the magnetic signal to the Hall transducer
optimizes the device accuracy. To attain precision, in terms of voltage produced, a low-offset,
chopper-stabilized Bi-CMOS Hall IC is used. It is programmed for accuracy at the factory[16].
20
The sensor measures a maximum of 30A from the load current. This serves as its primary
current. The sensor output voltage is fed into the microcontroller as the analogue input.
3.4 Relay
A relay is an electrically operated switch. It uses electromagnetic force to close or open contact.
The relay employed in this project can be operated as normally closed or normally open. For this
system, the normally closed mode was used. The relay circuit is illustrated in figure 2-25. The
relay was used to de-energize the contactor coil in case of a fault thus isolating the transformer
from the system.
3.5 Contactor
When a relay is used to switch a large amount of electrical power through its contacts, it is
referred to as a contactor. Contactors basically have several contacts, and which are usually (but
not always) normally-open, so that power to the load is shut off when the coil is de-energized
[18]
21
CHAPTER 4: DESIGN
The ultimate objective of this project is to design an automatic over current relay that uses
microcontroller to read transformer currents and automatically isolate the transformer from the
power system in case of a fault. This design is therefore based on the programmable Interrupt
Controller (PIC microcontroller) as the main control element in the system. The design of this
system has been divided into the following sections;
Hardware design
Software design
PCB design
22
microcontroller using a program and displayed on the LCD. The LCD operates in 8-bit mode, so
8 pins from the microcontroller have been connected to the 8 data pins on the LCD. Since
PORTC of the PIC16F690 is 8-bit wide, it is used for this purpose. So, RC0- RC7 pins of PIC
microcontroller have been connected to D0-D7 of the LCD as illustrated in figure 4-1.
VDD
19 16
RA0/AN0/C1IN+/ICSPDAT/ULPWU RC0/AN4/C2IN+
18 15
RA1/AN1/C12IN0-/VREF/ICSPCLK RC1/AN5/C12IN1-
17 14
RA2/AN2/T0CKI/INT/C1OUT RC2/AN6/C12IN2-/P1D
4 7
RA3/MCLR/VPP RC3/AN7/C12IN3-/P1C
3 6
RA4/AN3/T1G/OSC2/CLKOUT RC4/C2OUT/P1B
2 5
RA5/T1CKI/OSC1/CLKIN RC5/CCP1/P1A
8
RC6/AN8/SS
13 9
RB4/AN10/SDI/SDA RC7/AN9/SDO
12
RB5/AN11/RX/DT
11
RB6/SCK/SCL
10
RB7/TX/CK
PIC16F690
LCD1
LM016L
VDD
VSS
VEE
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
RV1
100%
10k
The register select (RS) pin has been connected to pin 12 (RB5) on the microcontroller. Enable
pin has been connected to RA1 (pin 12). At all times, the R/W line is connected to ground (kept
low) since data in this case is always written into the LCD. A potentiometer of 10K has been
used to vary the brightness contrast of the LCD.
a) LEDs
In order to indicate the state of the power line, two Light emitting diodes have been used. One
LED emits red light and the other one green light. The green LED is set to blink when the current
flowing through the power system is at a normal level. The red LED should blink at an interval
of half a second whenever the current build up approaches the overload level through to the point
when the relay gets energized. This acts as a visual warning when a fault occurs.
23
The green LED has been connected to the pin RB4 (pin 13) via a current limiting resistor (220)
to ground. The red LED has been connected to pin RA5 (pin 2) also through a current limiting
resistor (220) to ground. The microcontroller pins can give a maximum of 5.3V. LEDs
typically have a forward voltage drop ranging between 1.8V and 3.3V subject to the LED colour.
The value for red LED is about 1.8V. The forward voltage drop is a function of the LED colour
frequency.
For the LED to light, it needs around 20mA of current. The calculation below justifies the
resistor values chosen for the design of this system.
According to Ohms law, resistance is a function of voltage and current, as shown in the
equation below
=
1000
= (5.3 1.8) = 175
20
= , = ,
=
175 is not a standard resistor value, so a value close to it can be chosen. In order to ensure that
the current sourced is as little as possible, the 220 resistor has been chosen such that the
maximum current sourced becomes;
5.3 1.8
= 16
220
The figure 2-2 below illustrates the connection of LEDs to the microcontroller via current
limiting resistors.
VDD
19 16
RA0/AN0/C1IN+/ICSPDAT/ULPWU RC0/AN4/C2IN+
18 15
RA1/AN1/C12IN0-/VREF/ICSPCLK RC1/AN5/C12IN1-
17 14
RA2/AN2/T0CKI/INT/C1OUT RC2/AN6/C12IN2-/P1D
4 7
RA3/MCLR/VPP RC3/AN7/C12IN3-/P1C
3 6
RA4/AN3/T1G/OSC2/CLKOUT RC4/C2OUT/P1B
2 5
D3 RA5/T1CKI/OSC1/CLKIN RC5/CCP1/P1A
8
R2 13
RC6/AN8/SS
9
RB4/AN10/SDI/SDA RC7/AN9/SDO
220 12
RB5/AN11/RX/DT
LED-RED 11
RB6/SCK/SCL
10
RB7/TX/CK
D2 PIC16F690
R3
220
LED-GREEN
24
b) Audio Alert
In order to provide an audio warning in case of a transformer overload, a piezoelectric buzzer has
been used. The buzzer rating is between 2V-5V with a current rating of approximately 9mA. In
order to achieve the 9mA rating, a resistor of value R= 5V/9mA = 550 is required. A standard
560 resistor has been used. In order to allow for varied range of buzzers to be used, a
Darlington transistor is used as a switch. It is connected to pin RB6 of the microcontroller. The
microcontroller produces 5V that drives the transistor thus allowing current flow in the transistor.
The buzzer is connected between the transistor VDD and the collector. It goes on whenever the
microcontroller pin controlling it is set to high. This results due to an instance of a fault
occurring in the system which is unsuitable for the transformer. This piezoelectric buzzer serves
to give a warning to users to cease overloading the transformer or for a mitigation process to be
conducted.
c) Relay/contactor control
An electromagnetic relay has been employed as a switch to isolate the transformer from the
power system in case a fault occurs. The rating of the relay used is in the model system is 5V.
Due to the fact that the relay might draw a current of higher value than what the microcontroller
can sink or source, a Darlington transistor is used as a switch to run it. It is connected between
the transistor VDD and the Darlington transistor collector. When fault current is detected, the
RB6 pin of the microcontroller is set high. This produces current that drives the Darlington
transistor. The transistor in turn completes the relay coil circuit. The relay is energized through
the principle of electromagnetic induction. It in turn de-energizes the contactor to isolate the
transformer from the system. The relay is used alongside a contactor because; a power
transformer uses high currents that the 5V relay cannot sustain. The relay sends signals to the
contactor which in turn disconnects the circuit and isolates the transformer from the power
system. The process is illustrated in the figure 4.3 below.
RL1
12V B1
12V
R4
10k D1
DIODE
Q1
R1 2N1711
330
VDD 19 16
RA0/AN0/C1IN+/ICSPDAT/ULPWU RC0/AN4/C2IN+
18 15
RA1/AN1/C12IN0-/VREF/ICSPCLK RC1/AN5/C12IN1-
17 14
RA2/AN2/T0CKI/INT/C1OUT RC2/AN6/C12IN2-/P1D
4 7
RA3/MCLR/VPP RC3/AN7/C12IN3-/P1C
3 6
RA4/AN3/T1G/OSC2/CLKOUT RC4/C2OUT/P1B
2 5
RA5/T1CKI/OSC1/CLKIN RC5/CCP1/P1A
8
RC6/AN8/SS
13 9
RB4/AN10/SDI/SDA RC7/AN9/SDO
12
RB5/AN11/RX/DT
11
RB6/SCK/SCL
10
RB7/TX/CK
PIC16F690
25
4.1.3 Sensor interfacing to the microcontroller
Since the microcontroller can take a maximum of 5V DC input, it cannot be connected directly
to an AC line with high voltages. A current transformer and anACS75x series sensor has been
used. The current transformer stepped down the line current to measurable level of 25A. The
current sensor converts the current to a maximum of 5V. The current transformer is connected to
the pins 4 and 5 of the current sensor. The sensor output is connected to the pin RA0 of the
microcontroller. A zener diode is used to protect the microcontroller from voltage spike. The
figure 4.4 illustrates this process
RL2
12V RV2
RL1
+88.8
12V
AC Amps
39%
10
VDD
4
U3 19 16
VCC IP+
GND IP-
RA0/AN0/C1IN+/ICSPDAT/ULPWU RC0/AN4/C2IN+
ACS755XCB-050 18 15
RA1/AN1/C12IN0-/VREF/ICSPCLK RC1/AN5/C12IN1-
VIOUT
17 14
RA2/AN2/T0CKI/INT/C1OUT RC2/AN6/C12IN2-/P1D
4 7
RA3/MCLR/VPP RC3/AN7/C12IN3-/P1C
3 6
RA4/AN3/T1G/OSC2/CLKOUT RC4/C2OUT/P1B
2 5
RA5/T1CKI/OSC1/CLKIN RC5/CCP1/P1A
1
8
RC6/AN8/SS
13 9
RB4/AN10/SDI/SDA RC7/AN9/SDO
12
RB5/AN11/RX/DT
11
RB6/SCK/SCL
10
RB7/TX/CK
PIC16F690
D5
1M120ZS5
VDD
26
4.1.6 PCB design
After the circuit is successfully tested on the breadboard, it is transferred to a PCB. The process
for designing the PCB is as follows
i. The circuit layout is drawn using software. In this project, proteus has been used. The
components are confirmed to be well placed.
ii. The circuit design is printed on a transparent film. This is used to develop the circuit on a
PCB through etching process.
iii. The needed holes are then drilled and then the components fitted into them.
LCD Program
Analogue to Digital conversion
Protection program
The main program guide
The flow chart below illustrates the way the program worked. It was used as a guide while
writing the code for the microcontroller.
27
START
INITIALIZATION
READ CURRENT
CURRENTCURRENT
LEVEL
DISPLAY ON
LCD
Does current
exceed rated
value? NO
YES
ENERGIZE RELAY
topCONTACT
Figure4.5 Flow chart of the program
a. Bank selection
The data memory is partitioned into four banks which contain the General Purpose Registers
(GPR) and the Special Function Registers (SFR). For a register to be used, the right bank that
28
contains it has to be selected. The first register used in the ADC program is ADCON1 register. It
is contained in bank 1. For bank 1 to be selected, the following instruction is used.
The STATUS register is used to select banks. Its arrangement is shown in figure 3-1. Bits 5
(RP0) and 6 (RP1) are used to select one of the four banks as appropriate.
So in order to select bank1, the RP0 bit is set high (1) while RP1 remains low (0).
0 0 Bank 0 selected
0 1 Bank 1 selected
1 0 Bank 2 selected
1 1 Bank 3 selected
b. Clock setting
The ADCON1 register is used to select the A/D Conversion clock. Its selection bits are as
illustrated in figure 4-7
29
Bit 6-4 ADCS<2:0>: A/D Conversion Clock Select bits
000 = FOSC/2
001 = FOSC/8
010 = FOSC/32
X11 = FRC (clock derived from a dedicated internal oscillator = 500 kHz max)
100 = FOSC/4
101 = FOSC/16
110 = FOSC/64
An internal clock (FOSC/16) of 4MHz, is used, hence selection is ADCS2 = 1, ADCS1 = 0 and
ADCS0 = 1 the relevant code segment is as follows.
MOVWF ADCON1
The time taken to complete one bit conversion is defined as TAD. The choice of FOSC/16, 4MHz
gives a TAD of 4s.
c. Input configuration
The input pin is selected by setting the TRIS and ANSEL bits. First, the right bank for TRIS is
selected. In this case we are still in bank-1 and since the TRIS register is in bank-1, there is no
problem. The following code segment is employed select pin RA0 as the input pin.
To set the input pin as an analogue input, we use the ANSEL register which is in bank-2. The
bank is first selected as shown;
30
Since RA0 has been used as an input, ANS0 is configured to analogue input using ANSEL.
The ADCON0 register controls the microcontroller ADC operation such as channel selection,
power on the ADC circuit, start converting, ADC voltage reference selection and ADC result
format presentation selection.
31
0100 = AN4
0101 = AN5
0110 = AN6
0111 = AN7
1000 = AN8
1001 = AN9
1010 = AN10
1011 = AN11
1100 = CVREF
1101 = 0.6V Reference
1110 = Reserved. Do not use.
1111 = Reserved. Do not use.
Bit 1 GO/DONE: A/D Conversion Status bit
1 = A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle.
This bit is automatically cleared by hardware when the A/D conversion has completed.
0 = A/D conversion completed/not in progress
Bit 0 ADON: ADC Enable bit
1 = ADC is enabled
0 = ADC is disabled and consumes no operating current
First the following code segment is used to select the bank-0 where the ADCON0 register is
located.
The ADFM is used to select the result format; for this case, the conversion result formats are left
justified, i.e. bit 7 (ADFM) is kept low.
32
Figure4.10 Left justification format
VDD has been used as the voltage reference, thus bit 6 is also kept low. Since AN0 has been
configured as the analogue input, bits 5 to 2 are kept low. The GO/DONE bit is kept low to show
that the conversion is complete.
To enable ADC, BIT- 0 (ADON) BIT is set to 1. The code segment is as follows
MOVLW 0x01 ; Vdd Vref (bit 6), AN0 (0000 of bit 5-2), on (bit 0)
e. Acquisition time
Acquisition time is the amount time required to charge the holding capacitor on the front end of
an analogue-to-digital converter. The holding capacitor must be given sufficient time to settle to
the analogue input voltage level before the actual conversion is initiated. If sufficient time is not
allowed for acquisition, the conversion will be inaccurate. The required acquisition time is based
on a number of factors, two of them being the impedance of the internal analogue multiplexer
and the output impedance of the analogue source. An increase in the source impedance will
increase the required acquisition time[12].
TACQ = Amplifier Settling Time+ Hold Capacitor Charging Time + Temperature Coefficient
= 1.37s
33
RIC=interconnect resistance
RS=Input impedance
= 7.12S
Because left justification format has been selected, the ADRESH of the ADC takes the upper 8
bits of the conversion while the upper two bits of ADRESL are occupied by the lower two bits of
the conversion. The following code segments show how data from the addresses are stored in the
general purpose registers.
34
For the LCD to power, it needs some time, thus a delay of 20milliseconds is created. This delay
is called at the start of the initialization. The following code has been used.
CALL Delay20
After powering the LCD, the type of interface is set to 8-bit interface by setting, (DL=1) the
number of line display and character font is also selected by setting N=1 (two lines) and F=0
(font of 5x7). Thus the instruction with 00111000 binary or 38 Hex on the data lines. A delay of
more than 40s is used then a subroutine is called to feed the instruction.
The entry mode is set as follows; Cursor is made to move to the right and at the same time the
register is incremented by 1- (I/D=1), no display shift (S=0). This results in 00000110 binary or
06 Hex. The code segment is as follows.
Display on/off control: the display is set on by setting D=1, while cursor and blinking are put off
(C=0, B=0), resulting in 00001100 binary or 0C Hex. The code segment is as follows.
To take cursor home, 00000010 binary or 02Hex is used. To clear the screen in readiness for
writing, 00000001 binary or 01Hex is used.
In order to write into the LCD, data is first taken to the PORTC, then both E and RS pins of the
LCD are set. A small delay is then given to allow data to be written, then enable pin is cleared
and a delay applied.
In order to write characters to the first row on the LCD, a code for the address of the first row
first column is addressed to PORTC. The first row on the LCD starts from 80Hex. This is placed
in a register and incremented up to the number of times equal to the number of characters to be
displayed. In this design, the number of characters to be displayed is 16. In order to know that
we have moved to the last column, the content of the counter is subtracted from 8F. This is done
until the carry bit of the Status register is set. An XOR instruction is also used to identify the end
of text. The entire program code is presented in the appendix.
35
Sending an instruction to the LCD requires that a code be written. First, the value is moved to the
PORTC. For an instruction, RS is set to 0. This is achieved by setting bit-5 of PORTB low. Then
some small delay of 5Sec is applied to the LCD. It is then enabled, (E=1) then another short
delay of 5Sec that gives it time to fetch data is used before clearing the enable bit (E=0) and
calling another delay routine.
The values stored in ADC are in binary form. For them to be displayed on the LCD, they need to
be converted to ASCII values. The 10 bits of the ADC are stored in two registers- ADRESH and
ADRESL. The ADC can encode analogue input up to 1024 (210) different levels. On the other
hand, the full scale analogue voltage from the current sensor is 5V. The resolution of the
converter indicates the number of discrete values it can produce over the range of analogue
values
Where: E =5V
N = (210- 1) = 1023
5
= = 4.9mV/ 3.4
1023
36
The range of the sensor is 0 30A. The voltage output range is 0 - 5V
0.0048875855
( )30 = 0.029
5
The 10 bits and corresponding values of current were calculated as shown in the table below.
After assigning the values to the different registers, they are used when writing the values on the
LCD. The upper and lower registers have to be tested as well to establish whether they contain
any value or not so that only those that have values are written. E.g., if the tens register is zero its
place is left blank. The same test is carried out for the ones position until the last decimal value.
For demonstration, a preset current value has been set in the program. The microcontroller sets
the relay, buzzer and red LED pins on in case the current amounts reaches this value and off as
long as the current value remains lower than the pre-set value. For the actual power transformer,
37
current rating for a particular transformer is be used. The preset current value in this case has
been set to 15Amperes. This in binary form is as follows;
ADRESH = 80H
ADRESL = 00H
The exact amount of current at which the relay triggers is 15.015A since the binary value is
1000000000, which means that only bit 9 is set and bit 9 contains15.015A. So there is no need of
checking the OUTPUTH register since it would contain zero.
38
CHAPTER 5: RESULTS AND ANALYSIS
39
5.2 Analysis
It Is observed that as the current circulating in the transformer increases, the sensor
output also increases. This is illustrated in the table above. An increase in the sensor
output voltage led to a corresponding increase in the current value displayed on the LCD.
A graph of line current against resistance drawn on matlab shows a trend of decrease in
current as resistance increases. Little resistance means that the load has increased thus
more current is drawn from the transformer. More resistance limits current flow,
signifying reduced load. So as resistance is reduced by varying the rheostat, current
increases up to a point where the relay trips the circuit. This confirms that the system has
been designed well and thus it is able to read and record the current as it changes, and
operate the switches at optimum current levels.
The ADC gave satisfactory results as expected. The input value from the sensor matches
well with the displayed value on the LCD. For example a value of 3.07A displayed on the
LCD corresponds to 0.51V from the sensor.
Proof
40
The value 3.07 calculated from the table will include the following bit values;
1.877+0.938+0.235+0.029=3.07
These values mean that the ADC bits were set as follows;
0001101001.
The above binary representation corresponds with the following sensor resolutions;
0.312+0.156+0.039+0.004=0.511
It can therefore be concluded that the ADC module has been well programmed.
It is also observed that during normal transformer operation, the green LED blinked. The
normal operation range is between 0 and 15.132A. Within this range of, the relay contact
remains intact, the buzzer remains quiet, the red LED remains off and the LCD displays
varying current as the load current is varied from 0 20K. The following figures
illustrate the simulated device operation.
D3
RL1 R2
12V RV2
220
LED-RED
62%
D2
R3
220
10 LED-GREEN
LCD1
LM016L
VDD
VSS
VEE
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
41
RL1 D3
12V RV2 R2
220
LED-RED
1%
D2
R3
10 220
LED-GREEN
VDD
VSS
VEE
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Figure5.5 Over current Fault
From the observations, the system achieves the function of an over-current relay that
automatically detects over current fault and uses a microcontroller to record the fault, isolate the
transformer from the affected zone and report the fault occurrence so that the system operator is
aware that there is a problem. The advantage of this system over analogue over current relay is
that it automatically recloses once the fault is cleared. The level of accuracy of the system is also
super as compared to analogue operated over-current relay. To take care of inrush current, a
delay of 255Sec x 4 has used. This delay allows the inrush phenomenon to clear so that the
transformer comes back to normal operation before the relay starts its work.
42
Figure5.6 Normal transformer operation
The figure 4.8 above shows the outcome when the transformer is operating under normal
conditions. The LCD is operating normally and the green LED blinks to show that the system is
responding accordingly. A 20K variable resistor has been used as the load. Varying the resistor
signifies the varying load connected to a transformer. The current reading on the LCD changes as
the resistor is varied up to the preset fault point. The normal operation condition operates as
expected and as depicted in the simulation.
43
Figure5.7 current level approaching fault level
The system as shown in figure 4.9 shows the red LED blinking to warn that the load current is
approaching the rated value of the transformer. This warning is triggered when the current
exceed 7 - 8A. In actual power transformer protection, this visual warning would be triggered
when the current circulating in the transformer is approaching the rated level.
The system as shown in the figure 5-0 above shows the LCD display when the current
circulating in the transformer exceeds the rated value. The LCD displays OVERCURRENT
FAULT and at the same time, the buzzer is activated to alert the system operator of the fault
occurring in a given transformer. A signal is also sent to the relay to isolate the transformer from
the power system. In this model, a relay and a contactor are used to carry out the process of
transformer isolation from the system. The circuit design is in appendix A.
44
Figure5.9 Lab set up
45
CHAPTER 6: CONCLUSION and RECOMMENDATINS
The main objective if this project has been to design and implement a system that uses a
microcontroller to protect a power transformer. This objective was achieved as the system works
effectively. As the current circulating in the transformer coil varies, the LCD displays the
readings. The relay is able to operate and isolate the transformer in case of an over current fault.
The relay is the main switching element in the system. When energized, it opens its contacts and
de-energizes the contactor thus isolating the transformer to safety in case of adverse current
conditions. The other peripheral devices act as means of sending warning messages in case a
fault occurs.
This system if put to use in power transformer protection can serve the purpose with greater
advantages than the analogue over current relay. Its ability to automatically reclose the circuit
after the fault is cleared warrants the system usability in remote areas that may be too far for an
operator to reach easily and reconnect the transformer back to the supply line. The admirable fact
about it is the accuracy with which it closes and recloses during either normal operation or fault
occurrence.
Every customer desires to optimize the usage of a gadget yet at a low cost. The cost of
implementing the system is relatively cheap as the components used are few and can be cheaply
found in the market. The microcontroller can be used to drive multiple relays using the same
program. The only thing that needs to be done is free more ports for multiple input and outputs.
This will allow for more variables from different transformers and multiple outputs to different
relays.
Owing to the fact that transformers are very important components of the electrical power
system, their safety is paramount. Over current phenomenon can cause damage to transformers.
Damage to a transformer puts interrupts electrical supply to consumers. Blackouts cause
economic derailment and disorients consumers work schedule. This explains why this system is
needed and can help mitigate the effects of fault in a transformer.
In case an over current fault occurs, the power engineers should consider taking time to evaluate
the possible cause of this phenomenon. For example, if there is an overload at the consumer end,
there may be a call to install a new transformer that can withstand the increased load. The other
mitigation option may be to add another supply line to the consumer so that the consumer
demand is met.
This system comes with a power supply that can be directly plugged to 240V source and give the
appropriate operating voltage. The 240V source can be easily cultivated in a power system line.
It can be used in substations or in distribution trans
46
6.2 limitations and Future recommendations
Transformer protection is a very crucial engineering principle. It is clear that the demand for
electricity is increasing fast with increasing population and economic growth. This demands that
more sophisticated transformer protection methods be used in the future in order to maintain a
stable electrical power supply as will be demanded by the growing economy.
Based n the work done in this project, the future may demand that some improvements be made.
Some of the limitations faced in the design and future solutions include;
a) The current sensor does not offer a 100% sensing speed as needs some time do sense and
transfer the signal to the microcontroller. A device with a faster sensing speed should be
established.
b) Instead of using the relay as a switch, a semiconductor switching device such as a
thyristor should be used.
c) Another limitation is that whereas the relay automatically recloses its contacts, the
contactor used has to be restarted physically by an operator. Using a circuit that
automatically recloses the system would be a great solution.
d) Lastly, the method of relaying the information to an operator in a control room far from
the sub-station has not been explored in this project due to time constraint. An area for
future study is how the system can automatically send a message to a control centre and
notify the engineers of the exact location of a faulted transformer. A GSM module can be
used in this case.
47
APENDIX A: Circuit Design
RL1
TR1 12V RV2
+88.8 +88.8
AC Amps AC Amps
0%
10
TRAN-2P2S
R4 B1
10k D1 12V
DIODE
Q1
R1 2N1711
330
4
U2
IP+
IP-
ACS755XCB-050
VIOUT
GND
VCC
19 16
RA0/AN0/C1IN+/ICSPDAT/ULPWU RC0/AN4/C2IN+
18 15
RA1/AN1/C12IN0-/VREF/ICSPCLK RC1/AN5/C12IN1-
17 14
RA2/AN2/T0CKI/INT/C1OUT RC2/AN6/C12IN2-/P1D
1
4 7
RA3/MCLR/VPP RC3/AN7/C12IN3-/P1C
3 6
RA4/AN3/T1G/OSC2/CLKOUT RC4/C2OUT/P1B
2 5
D3 RA5/T1CKI/OSC1/CLKIN RC5/CCP1/P1A
8
R2 RC6/AN8/SS
13 9
RB4/AN10/SDI/SDA RC7/AN9/SDO
220 12
RB5/AN11/RX/DT
LED-RED 11
D5 RB6/SCK/SCL
10
RB7/TX/CK
D2 PIC16F690
1M120ZS5 R3
220
LED-GREEN
LCD1
LM016L
BUZ1
R5 D4 RV1
C1
VDD
VSS
VEE
560
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
DIODE
E
0.1uF
BUZZER
99%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Q2
10K
VDD
2N1711
48
APENDIX B: PIC16F690 Architecture
49
50
APENDIX C: ASSEMBLY LANGUAGE
51
CALL Delay20 ;Time for LCD to power on SUBLW 8FH ;check characters
MOVLW b'00111000' ;start initialization 8 bit BTFSC STATUS,C ;is there carry?
CALL Delay50 ;delay after LCD goes on GOTO Message ;NO? write
next
;---------------------------------------------------------
CLRF COUNTER ;clear counter register
;FIRST ROW DISPLAY
movlw 0xCA ;where next line begins
;---------------------------------------------------------
movwf COUNTER
ROW1
call FIRST_LINE ;write on second line
CLRF COUNTER
MOVLW ""
clrf count ;set counter register to zero
CALL CHAR_DISP
movlw b'10000000'
MOVLW "A"
movwf COUNTER
CALL CHAR_DISP
LINE1
MOVLW "M"
MOVF COUNTER,W ; move to 1st row &
column CALL CHAR_DISP
2
CALL CHAR_DISP BTFSS STATUS,C
;GOTO NORMAL
;======================================= RETURN
================================
FAULT_ALERT
;MAKING COMPARISON TO DETERMINE IF TO
TRIGGER RELAY/BUZZER/LEDs MOVF OUTPUTL,W
COMPARE2
BTFSS STATUS,
WARNING
CALL ALERT_CONTROL; buzzer/fan ON
MOVF OUTPUTH,W
return
SUBLW 40H ;compare register value to 40H
ALERT_CONTROL
BTFSC STATUS, C ;skip next if carry bit
clear BCF PORTB, 4
return
BTFSS STATUS,C disp
CALL RED_BLINK ;buzzer and fan CALL DANGER
return CALL Delay255 ;callDelay255
COMPARE MOVWF 0x01
FAULT CALL LCDcom ;clear LCD
MOVF OUTPUTH,W CALL Delay255
SUBLW 80h CALL ROW1
3
CALL Delay255 RETURN
return DANGER
4
GOTO LINE12 ;=======================================
=============================
Text2
;GIVING INSTRUCTIONS TO LCD
ADDWF PCL, F
;----------------------------
DT "OVERCURENT FAULT"
LCDcom
movwf PORTC
RETURN
bcf PORTB, 5 ; (4) Write instruction to display
call Delay5
;======================================= return
=============================
;=================================
FIRST_LINE
;RELAY, BUZZER AND LED WARNING
MOVF COUNTER,W ;move to 1st row,
first column ;================================
call LCDcom
return
5
;======================================= ; -----------------------------
=======================
; CLOCKING DELAY - 64uS @ 4MHz
;DELAYS at 4MHz
; -----------------------------
;----------------------------
Clock movlw 40h
Delay255 movlw 0xff ;delay 255 mS
movwf DelayL
goto d0
STEP decfsz DelayL,f
Delay100 movlw d'100' ;delay 100mS
GOTO STEP
goto d0
return
Delay50 movlw d'50' ;delay 50mS
;=======================================
goto d0 ======
goto d0 ;=======================================
======
Delay5 movlw 0x05 ;delay 5.000ms
Text
d0 movwf count1
ADDWF PCL, f
d1 movlw 0xC7 ;delay 1mS
DT "CURRENT IN AMPS:"
movwf counta
RETURN
movlw 0x01
;<><><><><><><><><><><>
movwf countb
;MAIN PROGRAM <>
Delay_0
;<><><><><><><>><>><><>
decfsz counta, f
START
goto $+2
;clear all the ports
decfsz countb, f
BCF STATUS,RP0 ;select register bank 0
goto Delay_0
BCF STATUS,RP1
6
BSF STATUS,5 ;select register bank 1 BSF ANSEL,0 ;Set RA0 to analogue
MOVWF ADCON1 ;
;--------------------------------------------------------
BSF TRISA,0 ;Set RA0 to input
;DISPLAY THE CURRENT LEVEL
BCF STATUS,RP0 ;Bank 2
;---------------------------------------------------------
BSF STATUS,RP1 ;
7
CURRENT_DISPLAY GOTO BIT7
CLRF FIRST_DEC
;WEIGHT FOR BIT7 = 3.754
CLRF SEC_DEC
BIT7
CLRF THIRD_DEC
BTFSS OUTPUTH,5
;WEGHT OF BIT9 = 15.015
GOTO BIT6
BIT9
MOVLW .3
BTFSS OUTPUTH, 7
ADDWF ONES, F
GOTO BIT8
MOVLW .7
MOVLW .1
ADDWF FIRST_DEC,F
ADDWF TENS, F
MOVLW .5
MOVLW .5
ADDWF SEC_DEC,F
ADDWF ONES, F
MOVLW .4
MOVLW .1
ADDWF THIRD_DEC, F
ADDWF SEC_DEC, F
MOVLW .5
;WEIGHT FOR BIT6 = 1.877
ADDWF THIRD_DEC, F
BIT6
BTFSS OUTPUTH,4
;WEIGHT FOR BIT8 = 7.507
GOTO BIT5
BIT8
MOVLW .1
BTFSS OUTPUTH,6
ADDWF ONES,F
8
MOVLW .8 ADDWF THIRD_DEC, F
ADDWF FIRST_DEC, F
MOVLW .2
BIT5 MOVLW .3
ADDWF FIRST_DEC,F
MOVLW .1
BIT4 MOVLW .1
ADDWF FIRST_DEC, F
9
GOTO BIT0
BTFSC STATUS, C
BIT0 ;At this point it has gone beyond zero thus FIRST-DEC
has extra value
BTFSS OUTPUTL,6
DECF FIRST_DEC, F
GOTO MODIFY
ADDWF SEC_DEC, F
MOVLW .2
ADDWF SEC_DEC,F
MOVLW .10
MOVLW .9
;Adjusting FIRST decimal place
ADDWF THIRD_DEC,F
INCF ONES, F
SUBWF FIRST_DEC, F
;MODIFY EACH REGISTER FOR DISPLAY
BTFSC STATUS, C
MODIFY
GOTO $-3
MOVLW .10
;At this point it has gone beyond zero thus ONES has
;Adjusting third decimal place extra value
INCF SEC_DEC, F DECF ONES, F
SUBWF THIRD_DEC, F ADDWF FIRST_DEC, F
BTFSC STATUS, C
10
GOTO $-3 GOTO WRITE1
;At this point it has gone beyond zero thus TENS has BLANK
extra value
MOVLW " "
DECF TENS, F ; otherwise put in a space
GOTO STEP2
MOVLW .10
;At this point it has gone beyond zero thus MOVLW 0XC4
HUNDREDS has extra value
CALL LCDcom
DECF HUNDREDS, F
MOVF TENS,W
ADDWF TENS, F
BTFSC STATUS, Z ; if not zero
GOTO BLANK2
;COVERTING THEM TO ASCII and DISPLAYING
THE VALUES GOTO WRITE2
MOVLW 0x30
11
GOTO STEP3 BTFSC STATUS, Z ; if not zero
ADDLW30H SPC1
MOVLW 0XC7
STEP4
CALL LCDcom
MOVLW 0XC9
MOVF FIRST_DEC,W
CALL LCDcom
CALL CHAR_DISP
MOVF THIRD_DEC,W
12
WRITE4 CALL CHAR_DISP
ADDLW 30H
13
APENDIX D: Bill of Materials
Relay 1 100
transistors 2 50
resistors 5 25
Buzzer 1 50
LEDs 2 20
PCB 1 1200
Diodes 2 20
potentiometer 1 30
2
References
1.generating-transmitting-and-distributing-electricity. [Online]
http://technology.ezinemark.com/generating-transmitting-and-distributing-electricity-
7d30ca53b6b0.html.
2. El-Hawary, M. E. Electrical Power Systems: Design and Analysis. s.l. : John Wiley & Sons,
1995.
7. PAC World Magazine. Sachdev, Mohindar S. Redundancy considerations for protective relay
systems, 2010.
11. Badri Ram, D. M Vishwakarma. Power System Protection and Switchgear. s.l. : Tata
McGraw-Hill Education,, 2001.
12. Xiangning Lin, Jing Ma, Qing Tian, Hanli Weng. Electromagnetic Transient Analysis and
Novell Protective Relaying Techniques for Power Transformers. s.l. : John Wiley and Sons,
2015.
14. Greenwald, Peter Ed. Electrical Hazards and Accidents: Their Cause and Prevention. s.l. :
John Wiley and Sons, 1990.
15. Wilmshurst, Tim. Designing Embedded Systems with PIC Microcontrollers. s.l. : Elsevier
Ltd, 2007.
16. Keridge, Charles. Microchip technology: the past and the future. s.l. : Wiley, 1983.
17. Ibrahim, Dogan. PIC BASIC: Programming and Projects. s.l. : Newness, 2001.
3
18. phidgets. http://www.phidgets.com. 2008.
20. Pansini, Anthony J. Electrical Transformers and Power Equipment. s.l. : The Fairmont
Press, Inc, 1999.