Beruflich Dokumente
Kultur Dokumente
VINOTH KUMAR.M
PUSHPARAJ.K
VELMURUGAN.V
PRABAKARAN.R
in partial fulfillment for the award of the degree
of
BACHELOR OF ENGINEERIN
ELECTRICAL AND ELECTRONICS ENGINEERING
APOLLO ENGINEERING COLLEGE, CHENNAI
ANNA UNIVERSITY: CHENNAI 600 025
APRIL 2013
that
this
project
report
FAULT
LOCATION
AND
SIGNATURE
SIGNATURE
D.RAMASUBRAMANIAN
AISHWARYA.R
SUPERVISOR
MASTER OF ENGINEERING
ELECTRONICS ENGINEERING
ELECTRONICS ENGINEERING
CHENNAI-602105
TABLE OF CONTENTS
CHAPTER NO
TITLE
PAGE NO
ABSTRACT
viii
LIST OF TABLE
ix
LIST OF FIGURES
LIST OF SYMBOLS
1
INTRODUCTION
1.1
GENERAL
1.2
1.3
LITERATURE REVIEW
BLOCK DIAGRAM
3.1
3.2
GENERAL
OVER ALL BLOCK DIAGRAM
3.2.2
3.3.3
3.3.4
Cable Faults
3.3.5
Zigbee
3.3.6
WSCADA
3.3.7
Sensor
9
3
3.3.8
10
3.3.9
10
FAULT
11
4.1
INTRODUCTION
11
4.2
11
4.2.1
11
4.2.2
11
4.3
12
4.4
CABLEFAULT PRELOCATION
12
12
13
4.4.3Bridge method
13
WSCADA
10
14
5.1
INTRODUCTION
14
5.2
FEATURES OF WSCADA
15
5.3
16
5.3.1
Master unit
16
5.3.2
Remote unit
16
5.3.3
Communication mode
16
ZIGBEE
18
6.1
INTRODUCTION
18
6.2
WSN CONCEPT
18
19
6.2.1.1 To Monitor
19
6.2.1.2 To Control
19
19
6.3
7
20
PIC CONTROLLER
21
7.1
21
INTRODUCTION
7.1.1
7.2
PIC (16F877)
FEATURES
21
21
7.2.1
21
7.2.2
Peripheral features
22
7.2.3
Analog features
22
7.2.4
22
7.3
CMOS TECHNOLOGY
23
7.4
DEVICE OVERVIEW
23
7.5
PINDIAGRAM
25
7.6
I/O PORTS
26
7.7
26
26
27
27
27
STATUS RESISTER
28
7.8MEMORY ORGANIZATOIN
7.8.1
7.9
30
30
31
31
5
SENSOR
32
8.1
INTRODUCTION
32
8.2
VOLTAGE SENSOR
32
8.3
CURRENT SENSOR34
HARTWARE IMPLEMENTATION
36
9.1
GENERAL
36
9.2
HARDWARE DESCRIPTION36
9.2.1 Circuit Description
9.3
9.4
38
38
POWER SUPPLY
39
40
40
41
41
9.4.5
9.6
37
9.5
36
Output filter
41
42
PIC CONTROLLER
43
9.5.1
Analog Inputs
43
9.5.2
Digital Signals
43
9.5.3
Clock
43
9.5.4
MCLR/VPP
44
9.5.5
44
9.5.6
44
45
6
9.6.1
10
44780 Background
45
46
9.6.3
47
9.6.4
48
9.6.5
48
9.6.6
48
CONCLUSION
50
50
REFERENCE
51
APPENDIX
52
PHOTOS
62
ABSTARCT
This project proposes an extensive fault location model for underground
power cable in distribution system using voltage and current measurements at the
sending-end. First, an equivalent circuit that models a faulted underground cable
system is analyzed using distributed parameter approach.
Then, the analysis of sequence networks in wireless sensor network is
obtained by applying the boundary conditions. This analysis is used to calculate a
fault location in single section using voltage and current measurements. The
extension to multi-section is further analyzed based on wireless distribution
systems.
This method is an iterative process to determine a faulted section from the
network.The network identity can be done by having unique MAC id provided for
the Zigbee Wireless Transceiver. Finally, the design and implementations are
evaluated with variations of fault open/close circuit and over current/voltage,
which also includes the evaluation of its robustness to load uncertainty.
ACKNOWLEDGEMENT
Very special people have contributed significantly for this project. It would
not have been possible without the kind support and help of these individuals.
Iwould like to extend my sincere thanks to all of them.
In the deep midst pleasure and satisfaction we express our deep sense
Ofgratitude to our beloved chairman forthe keen interest and affection towards us
throughout the course
I convey my sincere thanks to V. NATARAJAN,Principal, Apollo
Engineering college for providing allfacilities to complete my work in time.
I wish to express my sincere thanks to Mr.D.RAMASUBRAMANIYAN,
M.E., (Ph.D),Head of the Department of Electrical and Electronics Engineering,
for thecontinuous help over the period of project work.
I
express
my
deep
guideMiss.R.AISWARYA,M.E,Assistant
sense
of
Professor,
gratitude
to
for
ingenious
her
my
commitment,encouragement and highly valuable advice that she has provided over
the entirecourse of this project.
I also express my thanks to all staff members, Department of Electrical
andElectronicsEngineering and my classmates for their support and suggestions
duringthis project.
LIST OF FIGURES
FIGURE NO
TITLE
PAGE NO
NODE)
3.4SERVER MONITORING UNIT
5.1wscada
17
18
7.1PIN DIAGRAM
24
7.2STATUS REGISTER
27
30
8.1VOLTAGE SENSOR
31
33
9.1OVERALL CIRCUIT
36
9.2RS232 INTERFACING
37
39
9.4 LCD
49
10
LIST OF TABLE
TABLE NO
TITLE
PAGE NO
6.1
19
7.1
DEVICE OVERVIEW
23
7.2
STATUS REGISTER
28
11
CHAPTER 1
INTRODUCTION
1.1 GENERAL
Power supply networks are growing continuously and their reliability is
getting more important than ever.
The power supply systems are broadly classified into two categories. They
are,
I.
II.
12
13
CHAPTER 2
LITERATURE SURVEY
Seung(2004) in his paper a new fault location algorithm by direct analysis
of 3 phase circuit in distribution systems discusses the unbalanced nature of
distribution systems due to single-phase laterals and loads gives difficulty in the
fault location. This paper proposes a new fault location algorithm developed by the
direct analysis of 3-phase circuit for unbalanced distribution systems, which has
not been investigated due to high complexity. The proposed algorithm overcomes
the limit of the conventional algorithm, which requires the balanced system. It is
applicable to any power system, but especially useful for the unbalanced
distribution systems. Its effectiveness has been proved through many EMTP
simulations.
Dr. Aditya Goel & Ravi Shankar Mishra(2009) in his paper remote data
acquisition using wireless scada system proposes that Supervisory Control and
Data Acquisition (SCADA) is a process control system that enables a site operator
to monitor and control processes that are distributed among various remote sites. A
properly designed SCADA system saves time and money by eliminating the need
for service personnel to visit each site for inspection, data collection/logging or
make adjustments. Supervisory Control and Data Acquisition systems are
computers, controllers, instruments; actuators, networks, and interfaces that
manage the control of automated industrial processes and allow analysis of those
systems through data collection.
A.Ngaopitakkul (2010) in his paper identification of fault locations in
under-ground
distribution
system
using
discrete
wavelet
transform
15
CHAPTER 3
BLOCK DIAGRAM
3.1 GENERAL
The project deals with the identification and location of faults in
underground power cables. The circuit implementation is done using distributed
parameter approach by assuming the overall network as two zones viz, zone1 and
zone2. These zones are synchronized with the server monitoring unit to acquire the
data by using Zigbee transceiver. These are explained in the block diagram given
below in fig.3.1
3.2. OVER ALL BLOCK DIAGRAM
ZONE 1
REMOTE
MONITORING
UNIT
(WSCADA)
AC
SUPPLY
ZONE 2
The detailed block diagram of the zones are given in fig.3.2, 3.3
16
Voltage
Sensor
AC
Open/
SUPPLY
Short
PIC
Controller
Wireless
Transceivers
Circuit
Load
Current
Sensor
Switches
POT
AC
Voltage
Sensor
SUPPLY
Load
Current
PIC
Controller
Sensor
Wireless
Transceivers
Load
17
Server
System
(WSCADA)
Wireless
Transceiver
PIC
Controller
TTL to
RS232
18
19
3.3.6 WSCADA
Wireless SCADA system for monitoring & accessing the performance of
remotely situated device parameter such as temperature, pressure, humidity on real
time basis. For this we have used the infrastructure of the existing mobile network,
which is based on GPRS technique Supervisory Control and Data Acquisition
(SCADA) is a field of constant development and research. This project investigates
on creating an extremely low cost device. The further explanation about WSCADA
is shown in chapter 5.
3.3.7 SENSOR
3.3.7.1 VOLTAGE SENSOR:
A transformer converts one voltage to another. It only works with alternating
current, in which the direction of the electrical flow periodically changes. Since
energy cannot be created or destroyed, the power passed by a transformer remains
the same at the output. Since the voltage changes, the current must change so that
the amount of power is the same. The further explanation about voltage sensor is
shown in chapter 8.1.
3.3.7.2 CURRENT SENSOR:
A single wire carrying current generates a magnetic field. You can visualize
this by making a loose fist with your right hand, and sticking your thumb out. The
thumb indicates the direction the current is flowing in the single wire, and your
fingers represent the magnetic lines of flux circling around the wire (current). This
is called the right-hand-rule. The further explanation about current sensor is shown
in chapter 8.2.
20
21
CHAPTER 4
FAULT
4.1 INTRODUTION
A cable fault can be defined as any defect, inconsistency, weakness or nonhomogeneity that affects the performance of a cable. All faults in underground
cables are different and the success of a cable fault location depends to a great
extent on practical aspects and the experience of the operator. To accomplish this,
it is necessary to have personnel trained to test the cables successfully and to
reduce their malfunctions.
4.2 CABLE FAULT TYPES
There are many type of cable fault occurring here we discuss some the
commonly occurring faults,
4.2.1 Fault between core-core and / or core - sheath:
Low resistive faults (R < 100 - 200 )
o short circuit
High resistive faults (R > 100 - 200 )
o Intermittent faults (breakdown or flash faults)
o Interruption (cable cuts)
4.2.2 Defects on the outer protective shield (PVC, PE):
Cable sheath faults
Most of the cable faults occur between cable core and sheath. Furthermore,
very frequently blown up open joint connections or vaporized cable sections can
cause the core to be interrupted. To figure out whether such a fault is present, the
loop resistance test shall be done. By using a simple multimeter, the continuity in
general can be measured.
22
The easiest way to perform this test is to keep the circuit breaker at the far
end grounded. Corrosion of the cable sheath may increase the line resistance. This
is already an indication for possible part reflections in the TDR result.
4.3 CABLE FAULT LOCATION PROCEDURE
Cable fault location as such has to be considered as a procedure
Covering the following steps and not being only one single step.
Fault Indication
Disconnecting and Earthing
Fault Analyses and Insulation Test
Cable Fault Prelocation
Cable Route Tracing
Precise Cable Fault Location (Pinpointing)
Cable Identification
Fault Marking and Repair
Cable Testing and Diagnosis
Switch on Power
4.4 CABLE FAULT PRELOCATION
The cable fault is pre located by analyzing the length of the cable by using
the following methods
4.4.1 Impulse Reflection Method TDR
The TDR method is the most established and widely used measuring method
for determination of
the total length of a cable
the location of low resistive cable faults
the location of cable interruptions
the location of joints along the cable
23
24
CHAPTER 5
WSCADA
5.1 INTRODUCTION
Wireless SCADA system for monitoring &accessing the performance of
remotely situated device parameter such as temperature, pressure, humidity on real
time basis. For this we have used the infrastructure of the existing mobile network,
which is based on GPRS technique Supervisory Control and Data Acquisition
(SCADA).
5.1.1 NEED FOR SCADA
This project investigates on creating an extremely low cost device which can
be adapted to many different SCADA applications via some very basic
programming, and plugging in the relevant peripherals. Much of the price in some
expensive SCADA applications is a result of using specialized communication
infrastructure. The application of infrastructure, in the proposed scheme the cost
will come down. Additionally the generic nature of the device will be assured.
Wireless SCADA deals with the creation of an inexpensive, yet adaptable
and easy to use SCADA device and infrastructure using the mobile telephone
network, in particular, the General Packet Radio Service (GPRS).
The hardware components making up the device are
relatively
25
It will also provide real throughput in excess of 40 Kbps, about the same
speed as an excellent landline analog modem connection. From the wireless
SCADA system which is proposed in setup the temperature of around 30C could
be sufficiently recorded from remote location. In the similar manner reading of
electric energy meter could be read 223 Kilo Watt Hour (KWH) or 223 Unit.
The properly designed SCADA system saves time and money by eliminating
the need of service personal to visit each site for inspection, data collection
/logging or make adjustments. Supervisory Control and Data Acquisition
(SCADA) is a process control system that enables a site operator to monitor and
control processes that are distributed among various remote sites.
Supervisory Control and Data Acquisition systems are computers,
controllers, instruments, actuators, networks, and interfaces that manage the
control of automated industrial processes and allow analysis of those systems
through data collection .
They are used in all types of industries, from electrical distribution systems,
to food processing, to facility security alarms. Supervisory control and data
acquisition is used to describe a system where both data acquisition and
supervisory control are performed. Mobile Supervisory Control and Data
Acquisition (referred to as Mobile SCADA) is the use of SCADA with the mobile
phone network being used as the underlying communication medium.
GSM is a wireless communication technology; most popular today for
transmitting data anywhere in the world through SMS with the help of mobile
phones.
General Packet Radio Service (GPRS) is chosen as the specific mobile
communication protocol to use as it provides an always on-line Inter connection
without any time based charges.
26
Display and
control
console
Auxiliary
memory
Prog.
C.P.U.
I/O
Communication
interface
equipm
ent
RTU
RTU
RTU
27
5.3.1Master Unit
This is heart of the system and is centrally located under the operator's
control
5.3.2Remote Unit
This unit is installed from where the process is actually monitored. It gathers
required data about the process and sends it to the master unit.
5.3.3Communication Mode
This unit transmits signals/data between the master unit and the remote unit.
Communication mode can be a cable, wireless media, satellite etc.
Computer receives data from RTUs via the communication interface.
Operators control base one or more CRT terminals for display. With this, terminal
it is possible to execute supervisory control commands and request the display of
data in alpha numerical formats arranged by geographical location and of type.
28
CHAPTER 6
ZIGBEE
6.1 INTRODUCTION
ZigBee is the name of a specification for a suite of high level communication
protocols using small, low-power digital radios based on the IEEE 802.15.4-2006
standard for wireless personal area networks (WPANs), such as wireless
headphones connecting with cell phones via short-range radio.
6.1.1 NEED FOR TECHNOLOGY
The technology is intended to be simpler and cheaper than other WPANs,
such as Bluetooth. ZigBee is targeted at radio-frequency (RF) applications that
require a low data rate, long battery life, and secure networking. The Zigbee
concept is divided into four sections. The sections are as follows:
WSN Technology
ZigBee Standard
29
30
Characteristic
Zigbee
Bluetooth
Range
As designed
10-100 metres
10 metres
Up to 400 metres
20-250 Kbps
Security
64 bit,128 bit
Operating frequency
2.4 Ghz
Complexity
Simple
Complex
Network topology
Adhoc piconets
2 to 65,000
TABLE 6.1
31
CHAPTER 7
PIC CONTROLLER
7.1 INTRODUCTION
The microcontroller that has been used for this project is from PIC series.
PIC microcontroller is the first RISC based microcontroller fabricated in CMOS
(complementary metal oxide semiconductor) that uses separate bus for instruction
and data allowing simultaneous access of program and data memory.
The main advantage of CMOS and RISC combination is low power
consumption resulting in a very small chip size with a small pin count. The main
advantage of CMOS is that it has immunity to noise than other fabrication
techniques.
7.1.1 PIC (16F877)
Various microcontrollers offer different kinds of memories. EEPROM,
EPROM, FLASH etc. are some of the memories of which FLASH is the most
recently developed. Technology that is used in pic16F877 is flash technology, so
that data is retained even when the power is switched off. Easy Programming and
Erasing are other features of PIC 16F877.
7.2 FEATURES
7.2.1 High-Performance RISC CPU
Only 35 single-word instructions to learn. All single-cycle instructions
except for program branches, which are two-cycle. Operating speed: DC 20 MHz
clock input DC 200 ns instruction cycle Up to 8K x 14 words of Flash Program
Memory, Up to 368 x 8 bytes of Data Memory (RAM), Up to 256 x 8 bytes of
32
external
Data EEPROM
interrupts, while the 40/44-pin devices have fifteen. The 28-pin devices have five
A/D input channels, while the 40/44-pin devices have eight. The Parallel Slave
Port is implemented only on the 40/44-pin devices.
TABLE 7.1
35
7.5PIN DIAGRAM
FIGURE 7.1
36
37
38
TRISE<2:0> bits are set (pins are configured as digital inputs). Ensure ADCON1 is
configured for digital I/O. In this mode the input buffers are TTL.
PORTE pins are multiplexed with analog inputs. When selected as an analog
input, these pins will read as '0's. TRISE controls the direction of the RE pins, even
when they are being used as analog inputs. The user must make sure to keep the
pins configured as inputs when using them as analog inputs.
7.7 STATUS REGISTER
FIGURE 7.2
39
40
TABLE 7.2
41
FIGURE 7.3
42
CHAPTER 8
SENSOR
8.1 INTRODUCTION
The sensor are used to continuously sense the parameter needed to be
measured in this project voltage and current sensor. The input to this sensors are
given from power supply through a step down transformer. The output is given to
the microcontroller.
8.2 VOLTAGE SENSOR
voltage Sensor
D1
T1
1
230v AC 50Hz
filter
D3
R1
C1
D2
D4
f ilter capacitor
R2
to ADC0
rectifier
Figure8.1
A transformer converts one voltage to another. It only works with
alternating current, in which the direction of the electrical flow periodically
changes.
43
44
LOAD
current Sensor
rectifier
D1
T1
230v AC
50Hz
D3
R1
C1
D2
D4
f ilter capacitor
R2
to ADC1
filter
Figure8.2
The figure 8.2 represents a current transformer. The current transformer
operates only when loads is acting series to the supply.During positive half
cycle the points 5 and 8 are positive and negative respectively. At this instance
diode D1 and D4 conduct. During negative half cycle the polarity of points 5
and 8 gets reversed. Now the diode D2 and D3 conducts. The output of the full
wave rectifier is given to the ADC unit of the microcontroller which converts
the analog data into digital data. Since PIC 16F877A is 8bit controller its
capable of delivering 8 level of output. So that we are able to get greater
accuracy.
Current transformers are used so that ammeters and the current coils of
other instruments and relays need not be connected directly to high voltage
lines. In other words, these instruments and relays are insulated from high
voltages.
45
CT's also step down the current in a known ratio. The use of CT means
that relatively small and accurate instruments, relays and control devices of
standardized design can be used in circuits.
The CT has separate primary and secondary windings. The primary
winding which consists of few turns of heavy wire, wound on a laminated iron
core is connected in series with one of the line wires. The secondary winding
consists of a greater number of turns of a smaller size of wire. The primary and
secondary windings are wound on the same core.
The current rating of the primary winding of a CT is 100A. The primary
winding has three turns and the secondary winding has 60 turns. The secondary
winding has the standard current rating of 5A; therefore the ratio between the
primary and secondary current is 100/5 or 20/1.The primary current is 20 times
greater than the secondary current. Since the secondary winding has 60 turns
and the primary winding has 3 turns, the secondary winding has 20 times as
many turns as the primary winding. For a CT, then the ratio of primary to
secondary currents is inversely proportional to the ratio of primary to secondary
turns.
The CT in the figure has polarity markings in that the two high voltage
primary leads are marked 1 and 4, and the secondary leads are marked 5 and
8.When 1 is instantaneously positive, 5 is positive at the same moment. Some
CT manufacturers mark only the 1 and 5 leads. When connecting the CT's in
circuits; the 1 lead is connected to the line lead feeding from the source while
the 4 lead is connected directly to the ammeter. Note that one of the secondary
leads is grounded as a safety precaution to eliminate high voltage hazards.
46
CHAPTER 9
HARDWARE IMPLEMENTATION
9.1 GENERAL
The hardware circuit implementation deals with the wiring of sensor with the
load and with pic microcontroller unit. The pic controller is connected with
wireless transceiver which transmits and receives data. In the server monitoring
unit transceiver is interfaced with the PC using RS232 cable.
9.2 HARDWARE DESCRIPTION
The hardware implementation includes the following circuits
1. POWER SUPPLY CIRCUIT
2. SENSORS
3. PIC CONTROLLER
4. ZIGBEE MODEM
5. PERSONAL COMPUTER
6. LCD
7. RS 232
9.2.1 CIRCUIT DESCRIPTION
The overall circuit consists of power supply unit which allows the flow of
power through our circuit. In this unit the rectification, filtering and other quality
enhancement work are done the output of this unit is given to the zones which
means the load centers. These zones are connected with fault detection unit which
senses the fault and process the output through the microcontroller. The output of
microcontroller is given to Zigbee transceiver which transmits the data.
47
1
2
J1
+12V 1A
D1
2
IN
OUT
C1
0.1MFD
1k
D2
3
C2
C3
0.1MFD
LED
470MFD 25V
1N4007
GND
VCC R1
reset switch
VCC
R1
RESISTOR
RESET SWITCH
VCC
C2
4MHz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MCLR
RB7
AN0
RB6
AN1
RB5
AN2
RB4
AN3
RB3
AN4
RB2
AN5
RB1
RE0
RB0
RE1
Vdd
RE2 PIC16F877A Vss
Vdd
RD7
Vss
RD6
osc1
RD5
osc2
RD4
RC0
RC7
RC1
RC6
RC2
RC5
RC3
RC4
RD0
RD3
RD1
RD2
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
TXD
tx
C7
1 MFD
C7
1 MFD
U4
13
8 R1IN
11 R2IN
10 T1IN
T2IN
1
3
4
5
2
6
C+
C1C2+
C2V+
V-
P1
12
R1OUT 9
R2OUT 14
T1OUT 7
T2OUT
VCC
GND
rx
RXD
VCC
TXD
16
14
RXD
C8
CAPACITOR
5
9
4
8
3
7
2
6
1
SERIAL CON
MAX232
VCC C7
tx
C7
for ZigbeeInterfacing
through RS232 RXD
1 MFD
1 MFD
CRYSTAL OSCILLATOR
MICROCONTROLLER
48
13
8
TXD0
TXD1
10
11
C5
1
3
4
5
0.1MFD
C7
0.1MFD
2
6
C8
0.1MFD
R 1IN
R 2 IN
R 1O U T
R2OUT
T 2 IN
T 1IN
T 1O U T
T2 OUT
C 1+
C 1C2+
C2-
VCC
GN D
12
9
RXD1
RXD0
14
7
RXD1_RS232
RXD0_RS232
16
15
V+
V-
TXD1_RS232
+3.3V
C6
0.1MFD
UART1
P2
C9 MAX3232_SOIC
RXD0_RS232
RTS
TXD0_RS232
0.1MFD
DTR
+3.3V
1
6
2
7
3
8
4
9
5
1
6
2
7
3
8
4
9
5
UART0_ISP
Fig 9.2
49
50
VIN
VOUT
C4
0.1MFD
C3
470MFD
C2
C6
10MFD
GND
+3.3V
U2
AMS1117-3.3/ SOT223
OUT
0.1MFD
0.1MFD
CONN JACK
R1
4.7K C1
IN
GND
+5VDC
0.1MFD
+5VDC
U1
LM7805C/TO220
1
2
3
J1
C5
L1
LED
Fig 9.3
51
The forward bias is achieved by connecting the diodes positive with of positive of
battery and negative with batterys negative. The efficient circuit used is full wave
bridge rectifier circuit. The output voltage of the rectifier is in rippled form, the
ripples from the obtained DC voltage are removed using other circuits available.
The circuit used for removing the ripples is called Filter circuit.
9.4.3 INPUT FILTER
Capacitors are used as filters. The ripples from the DC voltage are removed
and pure DC voltage is obtained. The primary action performed by capacitor is
charging and discharging. It charges in positive half cycle of the AC voltage and it
will discharge in its negative half cycle, so it allows only AC voltage and does not
allow the DC voltage. This filter is fixed before the regulator. Thus the output is
free from ripples.
9.4.4 REGULATOR UNIT
Regulator regulates the output voltage to be always constant. The output
voltage is maintained irrespective of the fluctuations in the input AC voltage. As
Band then the AC voltage changes, the DC voltage also changes. This to avoid
these regulators are used. Also when the internal resistance of the power supply is
greater than 30 ohms, the pullup gets affected. Thus this can be successfully
reduced here. The regulators are mainly classified for low voltage and for high
voltage.
9.4.4.1 IC VOLTAGE REGULATORS
Voltage regulators comprise a class of widely used ICs. Regulator IC units
contain the circuitry for reference source, comparator amplifier, control device and
overload protection all in a single IC.
52
53
9.5.3 Clock
The PIC16F877 can be operated in Four Different oscillator modes. The user
can program two configuration bits FOSC1 and FOSC0 to select one of these four
modes.
*LP - Low Power crystal
*XT - crystal / resonator
*HS - High speed crystal/resonator
*RC - Resistor capacitor
The clock we have used is 10 MHZ which full under HS category.
54
9.5.4 MCLR/VPP
This is master clear input pin to the IC. A logic low signal will generate a
reset signal to the microcontroller. So we have tied this pin to VCC for the proper
operation of the microcontroller.
9.5.5 TXD and RXD
TO communicate with the outside world the microcontroller has an inbuilt
USART. The O/P and I/P line from the USART is taken and given to a MAX232
IC for having communication with the PC. Since we have used comport for
interfacing the microcontroller.
9.5.6 VCC and Ground
Pin no 32, 11 are tied to VCC and pin no 31, 12 are grounded to provide
power supply to the chip.
9.6 LIQUID CRYSTAL DISPLAY
Frequently, an 8051 program must interact with the outside world using
input and output devices that communicate directly with a human being. One of the
most common devices attached to an 8051 is an LCD display. Some of the most
common LCDs connected to the 8051 are 16x2 and 20x2 displays. This means 16
characters per line by 2 lines and 20 characters per line by 2 lines, respectively.
55
FIGURE 9.4
56
The EN line is called "Enable." This control line is used to tell the LCD that
you are sending it data. To send data to the LCD, your program should make sure
this line is low (0) and then set the other two control lines and/or put data on the
data bus. When the other lines are completely ready, bringENhigh (1) and wait for
the minimum amount of time required by the LCD datasheet (this varies from LCD
to LCD), and end by bringing it low (0) again.
The RS line is the "Register Select" line. When RS is low (0), the data is to
be treated as a command or special instruction (such as clear screen, position
cursor, etc.). When RS is high (1), the data being sent is text data which should be
displayed on the screen. For example, to display the letter "T" on the screen you
would set RS high.
The RW line is the "Read/Write" control line. When RW is low (0), the
information on the data bus is being written to the LCD. When RW is high (1), the
program is effectively querying (or reading) the LCD. Only one instruction ("Get
LCD status") is a read command. All others are write commands--so RW will
almost always be low.
Finally, the data bus consists of 4 or 8 lines (depending on the mode of
operation selected by the user). In the case of an 8-bit data bus, the lines are
referred to as DB0, DB1, DB2, DB3, DB4, DB5, DB6, and DB7.
9.6.2 HANDLING THE EN CONTROL LINE
As we mentioned above, the EN line is used to tell the LCD that you are
ready for it to execute an instruction that you've prepared on the data bus and on
the other control lines. Note that the EN line must be raised / lowered before/after
each instruction sent to the LCD regardless of whether that instruction is read or
write text or instruction.
57
58
59
60
CHAPTER 10
CONCLUSION
Detecting
determined by our implementation. The faults like open circuit and short circuit are
found effectively by the system proposed. The underground cable implementation
are developing at a faster rate. Hence the need for the detection of faults are also
increasing. The proposed system detects the underground faults with greater
accuracy using sensor monitoring method. Thus the time for the location of fault in
underground cable is decreased.
61
REFERENCE
1. Identification of Fault Locations in Underground Distribution System using
Discrete Wavelet Transform IEEE 2010 paper by A. Ngaopitakkul, C.
Apisit, C. Pothisarn, C. Jettanasen and S. Jaikhan.
2. Remote Data Acquisition Using Wireless - Scada System by Dr. Aditya
Goel & Ravi Shankar Mishra.
3. A new fault location algorithm using direct circuit analysis for distribution
systems, IEEE Trans. Power Del., vol. 19, no. 1, pp. 3541, Jan. 2004.
4. Computerized underground cable fault location expertise, IEEE Power
Eng. Soc. General Meeting, Apr. 1015, 1994, pp. 376382.
62
APPENDIX 1
PIC CONTROLLER CODING
#include <pic.h>
#include "def.h"
#include "adc.c"
#include "delay.c"
#include "delay.h"
#include "usart.c"
#include "usart.h"
unsigned char mvolt,mcurrent1,mcurrent2,mcurrent3;
unsignedint z;
void delay2();
void display(unsigned char val);
voiddisplayser(unsigned char val);
void displayser1(unsigned char val);
void displayser2(unsigned char val);
voidpwmdelay();
void main(void)
63
{
unsignedintj,k,l,x;
unsigned char i,adcv,val,temp,ecg,humi;
RBPU=0;
TRISA=0x0f;
TRISB=0X00;
TRISD=0X00;
PORTB=0X00;
TRISC5=1;
init_comms();
initlcd();
initadc();
lcdcommand(0x80);
for(k=0;k<16;k++)
{
lcddisplay(nodename[k]);
}
lcddelay();lcddelay();lcddelay();lcddelay();
lcddelay();lcddelay();lcddelay();lcddelay();
64
lcdcommand(0x01);
lcdcommand(0x80);
for(l=0;l<16;l++)
{
lcddisplay(nodename2[l]);
}
while(1)
{
mcurrent1=conv_adc(2);
lcdcommand(0x8C);
display(mcurrent1);
putch('A');
displayser(mcurrent1);
}
}
voidinitlcd(void)
{
// init commands for lcd
lcdcommand(0x28);
65
delay1();
lcdcommand(0x28);
delay1();
lcdcommand(0x28);
delay1();
lcdcommand(0x0e);
delay1();
lcdcommand(0x01);
delay1();
lcdcommand(0x02);
delay1();
lcdcommand(0x06);
delay1();
lcdcommand(0x86);
delay1();
lcdcommand(0x80);
delay1();
}
voidlcdcommand(unsigned char value)
66
{
/*DATA = cmd;
RS=0;
EN=1;
delay1();
EN=0;
*/
intg,copy;
g=value;
copy=g;
g=((g>>4) & 0x0F);
PORTD= g;
PORTD|=0X20;
delay1();//for(i=0;i<=1000;i++);
PORTD=0X00;
g=copy;
g=(g & 0x0F);
PORTD= g;
PORTD|=0X20;
67
delay1();
PORTD=0X00;
}
voidlcddisplay(unsigned char value)
{
/*DATA=dat;
RS=1;
EN=1;
delay1();
EN=0;
*/
inth,copy;
h=value;
copy=h;
h=((h>>4) & 0x0F);
PORTD= h;
PORTD|=0XA0;
delay1();
PORTD=0X00;
68
h=copy;
h=(h & 0x0F);
PORTD=h;
PORTD|=0XA0;
delay1();
PORTD=0X00;
}
voidlcddelay(void)
{
int i;
for(i=0;i<=18000;i++);
}
void delay1(void)
{
unsignedint j;
for(j=0;j<=1000;j++);
}
voidchardelay(void)
{
69
int i;
for(i=0;i<=5000;i++);
}
val=val*196/100;
val1= val/100;
70
lcddisplay(val1+0x30);
val2= (val%100)/10;
lcddisplay(val2+0x30);
val3 = val%10;
lcddisplay(val3+0x30);
}
voiddisplayser(unsigned char val)
{
unsigned char val1,val2,val3;
int i;
val1= val/100;
putch(val1+0x30);
//
lcddisplay(val1+0x30);
delay1();
val2= (val%100)/10;
putch(val2+0x30);
//
lcddisplay(val2+0x30);
delay1();
val3 = val%10;
71
putch(val3+0x30);
//
lcddisplay(val3+0x30);
delay1();
}
voidpwmdelay(void)
{
int z;
for(z=0;z<100;z++);
}
72
APPENDIX 2
ANALOG TO DIGITAL CONVERTER
void init_a2d(void)
//ADC Initialization
{
ADCON0=0x40; // select Fosc/2
ADCON1=0;
ADON=1;
}
unsigned char read_a2d(unsigned char channel)
{
channel&=0x07;
ADCON0&=0xC5;
ADCON0|=(channel<<3);
ADGO=1;
channel
while(ADGO)continue;
return(ADRESH);
}
void adc_4_chread_serial_display(unsigned char ch)// displaying digital value of
the read analog values
73
{
unsigned char x,v1,v2,v3,v4,v5;
unsigned char i;
unsigned char rval;
x=read_a2d(ch);
v1=x;
v2=v1/100;
putch(v2+0x30);
txs(v2+0x30);
v3=v1%100;
v4=v3/10;
putch(v4+0x30);
txs(v4+0x30);
v5=v3%10;
putch(v5+0x30);
txs(v5+0x30);
}
74
APPENDIX 3
LCD
void txs(unsigned char value)
{
DATA=value;
RS=1;
EN=1;
EN=0;
lcddelay();
}
void initlcd(void) // init commands for lcd
{
TRISD=0x00;
lcdcommand(0x38);
lcddelay();
lcdcommand(0x38);
lcddelay();
lcdcommand(0x38);
lcddelay();
75
lcdcommand(0x0c);
lcddelay();
lcdcommand(0x01);
lcddelay();
lcdcommand(0x02);
lcddelay();
lcdcommand(0x80);
}
void lcdcommand(unsigned char value)
{
DATA=value;
RS=0;
EN=1;
EN=0;
lcddelay();
}
void lcddisplay(unsigned char value)
{
DATA=value;
76
RS=0;
EN=1;
EN=0;
lcddelay();
}
void lcddelay(void)
{
unsigned int i;
for(i=0;i<=2000;i++);
}
77
APPENDIX 4
DATA SHEET
78