FYP Project Report On Statcom
FYP Project Report On Statcom
Submitted by:
Muhammad Khizer 2014-EE-171
Muhammad Tayyab Hussain 2014-EE-179
Muhammad Rehan Majeed 2014-EE-180
Abdullah Rashid 2014-EE-182
Bachelor of Science
in
Electrical Engineering.
Director
Undergraduate Studies
i
Declaration
We declare that the work contained in this thesis is our own, except where explicitly
stated otherwise. In addition this work has not been submitted to obtain another degree
or professional qualification.
Signature:
Signature:
Signature:
Signature:
Date:
ii
Acknowledgments
Firstly we are grateful to Allah Almighty (the Most Gracious, the Most Merciful) for
showering his blessings upon us and to enable us to complete this project.
We are highly indebted to our Project Advisor Mr.Habib Wajid for his continuous guid-
ance and support throughout the project. His cooperation and technical expertise helped
us to overcome the difficulties faced during the project. His continuous moral support
motivated us to never lose hope and not to give up even at the eleventh hour. Without
his guidance we were not able to complete the project.
In the end we would thank our parents and friends for their continuous support and
encouragement.
iii
Dedicated to our parents because without their support we are
nothing. . .
iv
Contents
Acknowledgments iii
Abbreviations x
Abstract xi
1 Introduction 1
1.1 Motivation and Problem Statement . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Overview of the project . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Aims . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Theoretical Background 5
2.1 Static Synchronous Compensator . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1 Need for Compensation . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.2 Series Compensation . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.3 Shunt Compensation . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1.4 Flexible AC Transmission Systems . . . . . . . . . . . . . . . . . . 6
2.1.5 Static Synchronous Compensator . . . . . . . . . . . . . . . . . . . 6
2.1.5.1 Construction and Working Principle . . . . . . . . . . . . 7
2.1.5.2 DC Link Voltage . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.5.3 STATCOM Control . . . . . . . . . . . . . . . . . . . . . 7
2.1.5.4 Phase Angle Control . . . . . . . . . . . . . . . . . . . . . 7
2.1.5.5 PWM Control . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Inverters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2.1 Types of Inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2.1.1 On the basis of type of Source . . . . . . . . . . . . . . . 8
2.2.1.2 On the basis of output waveform . . . . . . . . . . . . . . 8
2.2.1.3 On the basis of number of phases . . . . . . . . . . . . . 9
2.3 Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.1 Sinusoidal Pulse Width Modulation . . . . . . . . . . . . . . . . . 12
2.3.2 Types of Sinusoidal Pulse Width Modulation . . . . . . . . . . . . 13
2.3.2.1 Bipolar Sinusoidal Pulse Width Modulation . . . . . . . . 13
2.3.2.2 Unipolar Sinusoidal Pulse Width Modulation . . . . . . . 13
2.4 Power System Stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.1 Types of Stability . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
v
Contents vi
5 Conclusion 45
5.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.2 Future Aspects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
References 46
List of Figures
viii
List of Figures ix
x
Abstract
The purpose of our project is to enhance the stability of Power System against transients
with the application of Neuro Fuzzy Controller based Static Synchronous Compensator
(STATCOM). We know that the rotor of a generator rotates at a specific angle with
respect to the stator field and the angular position is proportional to the power generated.
This angle needs to be in its specific range for the synchronous and stable operation of
a generator and power system. In case of transient events like line outage and power
plant shut down the power stress on generator increases due to which rotor angle varies
and may cross its specified limit and generator may lost its synchronism with the rest
of the system which may cause other generators to lose their synchronism and this may
ultimately lead to blackout of whole system. Thus fast remedial measures are necessary
in case of transients so that the generator may not lose it’s synchronism. Our project
proposes the remedial solution by Static Synchronous Compensator (STATCOM)which
is controlled by Neuro Fuzzy Controller. The Statcom will provide or absorb the extra
power so that the rotor return to it’s normal value.The Neuro Fuzzy Control is fast
because of it’s non-linear nature so it can control STATCOM to provide compensation
in transient events.A three phase SPWM inverter with the DC battery as a DC link
source is developed to provide the compensated power. Power is continuously monitored
via PT and CT and processed in microcontroller and the controller will change the value
of angle and magnitude of STATCOM voltage in accordance with the power needed to
absorb or supply.
Chapter 1
Introduction
Stable and Synchronized operation of a Power System is crucial for the continuous and
regulated supply of power to consumers. Power System is exposed to several internal
and external disturbances which can be of steady state nature as well of transient nature.
There are different devices installed in a power system to compensate the effects caused
by these disturbances. Our project considers the transient disturbances and provides a
solution to compensate the effects caused by transient disturbances.This chapter gives
the Motivation and problem statement, aims and objectives of the project ,overview of
project, it’s schematic and flow diagram.
1
Chapter 1. Introduction 2
1.3 Objectives
The project objective is to develop a STATCOM. The second objective is to make the
response time of STATCOM fast by the application of Neuro Fuzzy Control because of
it’s non-linear and robust nature.
1.4 Aims
The project aims to enhance the Power System Stability by compensating the effects of
transient events.
Chapter 2
Theoretical Background
5
Chapter 2. Theoretical Background 6
STATCOM is a three phase VSI (Voltage Source Inverter). The DC voltage is provided
to inverter either by capacitor or battery. If the energy storage element is a capacitor it
can exchange only reactive power. It can exchange both active and reactive power if the
DC source is a battery. The STATCOM is connected to the point of compensation by a
coupling transformer. The STATCOM exchange power on the basis of voltage and angle
difference.If the STATCOM is represented by a voltage source having magnitude and
phase V1 and δ and the grid is represented by a voltage source having magnitude V2 and
angle 0 and these two are connected by a coupling inductance X than the active power
flow is from leading source to the lagging source and reactive power from source having
voltage magnitude higher. The active and reactive power exchanged between STATCOM
and grid at the point of coupling takes place in accordance with the following powerflow
equations[9]
P = V 1V 2sinδ/X
Q = V 1(V 1 − V 2cosδ)/X
The basic block diagram of STATCOM is shown in Figure 2.3
DC Link source dictates whether STATCOM will exchange only reactive power or both
active and reactive power. If the inverter is fed from Capacitor than the STATCOM
can only exchange reactive power and if the inverter is fed from the DC battery than
the STATCOM can exchange both active and reactive power.
In Statcom the controllable quantities are the output voltage magnitude and phase
angle.STATCOM is controlled by either PWM control or Phase Angle Control
In Phase angle control, modulation index is kept constant and the controlled quantity
is phase angle. The output voltage is controlled by changing the DC link voltage.
Chapter 2. Theoretical Background 8
In PWM Control,the controlled quantity is amplitude of the reference signal and the
output voltage is controlled by changing the modulation index. The output voltage
of inverter is changed by varying the modulation index in accordance with reactive
power required to absorb or provide. In STATCOM, we use Sinusoidal Pulse Width
Modulation.
2.2 Inverters
Inverter is a power electronic circuit which converts DC into AC of desired frequency and
amplitude. Inverters produce AC by the switching of power electronics based switches.
Inverters have many applications like in UPS, variable AC frequency drives, induction
heating etc.
On the basis of type of source inverters are classified into two types:
Voltage Source Inverters
In voltage source inverters (VSI’s), voltage is fed from DC voltage source and there is a
capacitor connected in parallel with the DC source.
Current Source Inverters
In Current source inverters (CSI’s), voltage is fed from DC current source and there is
an inductor connected in series with the DC source.
Inverters are classified into two types on the basis of number of phases:
figure 2.6
• 1 20 degree Conduction.
• 1 80 degree Conduction.
Three phase inverters are mostly used in grid connected applications. These are used in
UPS and also in other applications.
Chapter 2. Theoretical Background 11
ma = V r/V c (2.1)
It is in the range between 0 and 1. With 0 being the smallest duty cycle and 1 being
the largest duty cycle.
Chapter 2. Theoretical Background 13
In Bipolar Sinusoidal Pulse Width Modulation, the carrier signal is triangular wave and
the reference signal is compared with it to produce bipolar signal. When we apply the
pulses which are produced by this scheme the mosfets in two legs are ON/OFF at the
same time[6]. This scheme can only be applicable to the single phase inverters because it
includes only one reference signal for the pulses.The figure 2.10 is showing the Unipolar
Sinusoidal Pulse Width Modulation
In this SPWM scheme, there are two references signals one is with 0 degree phase while
one is 180 degree of other. This scheme is used for both single phase and three phase
inverters because it includes three different reference signals displaced by 120 degrees
from each other[7]. Figure 2.11 is showing Unipolar Sinusoidal Pulse Width Modulation
By Steady State Stability, mean the ability of a system to return to it’s original state
after being subjected to slow gradual changes. These slow gradual changes are not large
and continuously occur in power system[12].
Dynamic Stability derives it’s essence from Steady State Stability but the difference
between the two is that the dynamic stability involves the disturbances which last for
long intervals of time with the inclusion of control devices[12].
The equation relating the relative motion between rotor and stator field due to change
in power is called a swing equation. The swing equation relating the electrical power
angle and change in power is given next:
p/2*dδ/dt=Pm-Pe
The relation between electrical power and torque angle is graphically represented by the
curve known as the Power Angle Curve. The power angle curve taken from[12] is shown
in figure 2.12
For a stable operation of the generator,the rotor needs to make an angle with stator in a
certain range (between 0 to 180 degree). If the angle goes below the lower threshold or
beyond the upper threshold the generator will become unstable. The angle after which
the generator becomes unstable is called critical angle.
Equal Area Criterion is the graphical approach to depict the stability of generator. It
shows the energy stored in the rotor to show that whether generator will exhibit stable or
an unstable operation when exposed to different disturbances. It has many applications
like studying the behaviour of generator under different situations like three phase fault
in transmission line, sudden change in power input etc.It is very easy to infer about
the stability profile while looking at the equal area criterion graph because it gives
an observer a crucial information about the generator’s behaviour at a glance without
solving the complex non-linear swing equation. Equal Area Criteria applied to study the
generator stability in case of sudden increase in power input is discussed for elaborating
and highlighting the importance and application of Equal Area Criterion in stability
Chapter 2. Theoretical Background 16
studies.
Application to sudden increase in power input
This case has taken from Power System Analysis by Hadi Sadat[12].Suppose we have
a generator operating at the angle delta0 at steady state condition having mechanical
power (Pm) equal to electrical power (Pe). Suppose mechanical power is increased to
Pm2. Now due to increase in mechanical power rotor will accelerate and let at the angle
δ mechanical power becomes equal to the electrical power. The new operating point
becomes this point but due to momentum electrical power continues to increase and
due to excess of electrical power than mechanical power the rotor decelerate. Now the
rotor oscillates between the two points and ultimately settles to point corresponding to
δ. According to equal area criterion, for the generator to operate in the stable zone the
two areas should be equal, the one where rotor gains energy while accelerating and the
one where rotor loses energy while decelerating. This is shown in figure 2.13
In supervised learning, our algorithm is trained by using several examples. The output
class of these examples is known. The algorithm takes the input and than decides to
which output class does the input belong. This type of learning is used in gesture recog-
nition,classification problems etc.
In unsupervised learning, the output class is unknown and the output can be any function
of input data.
• I nput Layer
• H idden Layer
• Output Layer
The neurons in input layer takes input as vector made up of features.These features
can be of image e.g, colors, pixel values, numbers etc. The hidden layer processes this
information and neurons in output layer computes the output and take action. The
number of input and output layer is one while number of hidden layers can be more
than one depending on the complexity of problem. The number of inputs and outputs
can be more than one. The neurons in one layer are connected to the neurons in other
layer through the weighted connections.In the structure of neural networks one neuron
is connected to all other neurons in adjacent layer[3].The basic structure of Neural Net-
works is shown in figure 2.14
Weights
The neurons are connected to each other through the connections. These connections
are weighted i.e, these have some strengths. These weights play very important role
in the decision making process. In training the network we actually update weights on
each iteration and we get the optimized weights after training which help in making
decision in unknown situation.These weights can be optimized by training the network
using different algorithms like least square, back propagation etc.
• M ultilayer Perceptron.
MultiLayer Perceptron
In multilayer neural networks there is one input layer, one or more hidden layers and one
output layer. The information is passed through the input layer to the hidden layer and
than to output layer where output is calculated. Figure 2.14 is an example of multilayer
perceptron.
Chapter 2. Theoretical Background 19
There are several algorithms available for the training of neural networks. Each one has
its own advantages and limitations. Following are the algorithms which are commonly
used to train neural networks
In this method we update the weights on each iteration based on the error value squared.
This method has less accuracy than the other methods
Gradient Descent Method
In this method we find the rate of change of weights with respect to error and we are
in search of error such that the rate of change (gradient) is minimum. That’s why it is
called gradient descent method.
Method of Back Propagation
This method is mostly used to train multilayer neural networks. In this method we back
propagate the errors. Feed forward output is calculated and the error is back propagated.
The error terms for the hidden units and output units are calculated. The weights are
updated on the basis of errors. This process continues until a specific termination criteria
is met.
The stopping criterion to train the network can be of two types:Either it can be on the
basis of no of epochs (iterations) or error tolerance.
Chapter 2. Theoretical Background 20
From the above block diagram we can see that there are five blocks or processes in a
fuzzy controller.
• N ormalization
• F uzzification
• Rule Base
• Defuzzification
• Denormalization
2.6.4.1 Normalization
In normalization, we convert the crisp values into the normalized values which can be
included in universe of discourse.
Crisp values
Crisp values are the values which are in standard units that is real world values.
Universe of discourse
In fuzzy logic universe of discourse is the input data range in which the crisp value
should lie after normalized
2.6.4.2 Fuzzification
Fuzzification is a stage in which the normalized input is fuzzified i.e. it is assigned the
value in between 0 and 1. This fuzzy value is assigned by membership functions. Mem-
bership Function
The membership function is the function which decides how much membership value a
particular variable has in each function. There are several membership functions and
selection of membership function depends on the complexity of problem at hand.The
membership functions which are generally used are triangular, bell shaped, s-shaped,z-
shaped,trapezoidal etc.Some of them are described below.
Triangular membership function
Triangular membership function is a function of three parameters. Upper and lower
limits and midpoint. For example, for upper limit m and lower limit n and midpoint o
the triangular function is defined as:
f(x;m,o,n)= 0, x≤m
x−m
o−m , m≤x≤n
n−x
c−o , o≤x≤n
0,n≤x
Chapter 2. Theoretical Background 22
Fuzzy controller takes decision on basis of the rules. These rules are defined in the
form of rule base. These rules are made by the experienced man who has a sound
knowledge about the operation and behaviour of system. The fuzzy rules are in form of
if-else rules[4]. In these rules the first part is called antecedent while the second part is
called precedent.Each rule has a strength or value associated with it which is called rule
strength.
2.6.4.4 Defuzzification
In inference process different rules strength are found and decision is made on the basis
of these strengths and the crisp value is obtained.Different defuzzification techniques are
available which include centroid method,bisection method etc.
2.6.4.5 Denormalization
The crisp value obtained after defuzzification is than denormalized so that it comes back
in it’s standard range.
networks. We have a neural networks like structure in which rules are implemented as
neurons and these rules connected through weighted connections. The basic structure of
neuro fuzzy inference system is shown in fig 2.20 In the above figure we can see that the
first layer in this structure is fuzzification layer. Second and third layer is of antecedent
and consequent of rules and in final layer we have a aggregator.
Chapter 3
3.1 Methodology
STATCOM has been implemented first by the single phase inverter and than by the
three phase inverter.Than STATCOM was be synchronized with grid. The voltage and
current are be measured using PT and CT. The power of generator is monitored. In
case of disturbance the extra power will be provided or absorbed by STATCOM. The
control is based on Neuro Fuzzy and Fuzzy PID.
In PID, we tune the gains of proportional, derivative and integral. But since these gains
provide same type of response in all situations and cannot handle the uncertainty so we
use Fuzzy PID instead of simple PID.In fuzzy PID,we decide the gains on the basis of
rules. Thus the uncertainty will be dealt and the gains will be distributed and scheduled.
This strategy makes the response fast as compared to the simple PID.The project will
be tested first on simulation and than on hardware. The project is implemented on two
levels:
• S imulation Implementation.
• P ractical Implementation.
25
Chapter 3. Project Implementation 26
solve complex calculations. It’s library known as SIMULINK has toolboxes related to
many fields like Power Systems, Control Systems, aerospace engineering, Fluid mechan-
ics, Fuzzy Logic Toolbox etc.It is used extensively for educational purposes and also in
industries.
3.4 Simulations
3.4.1 Inverter Simulations
First we simulated single phase inverter based on different schemes and observed their
results. Than we synchronized the inverter (STATCOM) with the inverter observed the
response in open loop and than observed the response in closed loop.
We simulated single phase square wave inverter. The inverter is implemented using
generic IGBT switches taken from powerlib library. The pulses are applied using pulse
generator. The load used is series RLC branch. Figure 3.1 is showing the pulses, output
voltage and current waveforms of inverter displayed in the scope window
We simulated trailing edge pulse width modulated inverter. In trailing edge pulse width
modulated inverter, the carrier wave is a sawtooth starting from 0.
Chapter 3. Project Implementation 27
Figure 3.2 is showing the pulses, output voltage and current waveforms of inverter dis-
played in the scope window
We simulated leading edge pulse width modulated inverter. In leading edge pulse width
modulated inverter, the carrier wave is a sawtooth signal starting from 1. Figure 3.3 is
showing the pulses, output voltage and current waveforms of inverter displayed in the
scope window
We simulated center aligned pulse width modulated inverter. In center aligned pulse
width modulated inverter, the carrier wave can be a sawtooth or triangular wave signal
starting from 0.
Chapter 3. Project Implementation 28
Figure 3.4 is showing the pulses, output voltage and current waveforms of inverter dis-
played in the scope window
We simulated single phase pwm inverter based on unipolar scheme. The carrier frequency
was selected to be 10k HZ.The two refernce signals which are 180 degree out of phase
are provided by using two separate sinusoidal signal blocks.
We simulated single phase pwm inverter based on bipolar scheme. The carrier frequency
was selected to be 10k HZ.The reference signal is provided by sinusoidal signal block.
Chapter 3. Project Implementation 29
Figure 3.6 is showing the results of Bipolar Pulse Width Modulated Inverter
• L=1mH.
• C =4e-6.
Figure 3.7 is showing the simulink block diagram of single phase SPWM inverter
For connecting the STATCOM we connected it through coupling inductor having value
1e-3H. For grid we used the sinusoidal source and we connected the STATCOM with
grid through circuit breaker to which step input is applied. The circuit breaker will
remain open for the some duration of simulation running and at a time specified a step
input will be applied and circuit breaker becomes close and power exchange between
STATCOM and grid starts to take place. We run the simulation such that the specific
amount of active and reactive power should be exchanged between STATCOM and grid.
To find the required value of phase and amplitude of inverter which would produce this
much power we used the power flow equations. We made a subsystem which would
accept the specified values of P and Q and will give the required value of phase angle
and inverter output voltage amplitude.Figure 3.8 is showing the power flow equations
modeled in SIMULINK.
By finding required values of inverter voltage amplitude and phase angle we applied
the required DC and made us STATCOM lag or lead depending on requirement.The
SIMULINK diagram after grid connection is shown in figure 3.9
We ran the simulation for the random value of P and Q to see that whether the power
exchange takes place or not. We ran the simulation for P=100 W and Q=50 VAR.We
observed that there was a steady state error between the desired value and the power
exchange took place. We ran the simulation for 0.5s. We set the step time to be 0.2s. We
observed that until the breaker closes the power flow is almost zero but as soon as the
breaker closes power starts to flow between the two sources and power reaches almost
98 W and 48 VAR. Figure 3.10 is showing the P that flowed shown in scope window
Figure 3.11 is showing the Q that flowed shown in scope window
our PWM block. Our PWM block now updates on run time. Figure 3.13 is showing
PWM block implemented in SIMULINK.
In closed loop, we pass the error of power, rate of change of error and integration of
error into the controller and the controller than gives the values of gains which are than
multiplied with the error,rate of change of error and integration of error respectively
and new values of P and Q are than passed into the subsystem to find the new values
of modulation index and phase angle. The powerflow equation module gives us RMS
value of voltage required to produced by STATCOM and the phase. From this we have
to calculate the value of DC which would actually produce that much voltage. For this
we calculate the value of DC voltage by using KCL and considering the drops associated
with filter and coupling inductor. The calculated value of DC voltage is than divided
by the applied DC to find the modulation index. Figur 3.14 is showing the Simulink
diagram of closed loop implementation.
We ran the simulation for the same values of P and Q to see that how the power exchange
takes place in closed loop. We ran the simulation for 1s. We set the step time to be
0.5s. We observed that until the breaker closes the power flow is almost zero but as
soon as the breaker closes power starts to flow between the two sources. Figure 3.15 is
showing the P that flowed shown in scope window Figure 3.16 is showing the Q that
flowed shown in scope window
Chapter 3. Project Implementation 34
Figure 3.15: Scope Window showing Active Power Flow in closed loop
Figure 3.16: Scope Window showing Reactive Power Flow in closed loop
Chapter 3. Project Implementation 35
4.1 Components
Following components are used in the implementation of project:
37
Chapter 4. Hardware Implementation and Results 38
4.1.4 IGBT IC
Choice of electronic switch used for the implementation of inverter depends on many
factors i.e frequency and voltage and current rating. For high frequency applications
MOSFETS’s are prefered. For low frequency and high voltage and high current appli-
cations IGBT’s are prefered.We used IGBT as a swicth. IGBT has three terminals like
MOSFET. Gate, Collector and Emitter IGBT’s have high voltage and current rating
and work at low frequency. We used IRG4BC30FD ic.Figure 4.4 is showing igbt symbol
and ic
4.1.5 LM7812
LM7812 is a regulator IC. It is a part of LM78 regulator series.It regulates the voltage
to 12V. Figure 4.5 is showing LM7812 IC
supply can be used for the low side switches because the ground of low side switches
is common.For three phase inverter, we made four isolated supplies,three supplies for
upper three high side switches and one for lower three low side switches.Figure 4.7 is
showing isolated supplies implemented
Conclusion
The project is about the improvement of power system stability by the application of
STATCOM.The control of STATCOM is by the use of Neuro Fuzzy Control. This control
is fast and non-linear control. Due to the fast response time this control can be used to
handle transients.A fuzzy PID control is implemented on simulation level on MATLAB
SIMULINK. A single phase and three phase SPWM inverter is made for this purpose.LC
low pass Filter is developed to filter out the high frequency components.The amplitude
and phase and frequency can be controlled. The P and Q can be controlled in open
loop.
5.1 Applications
The applications of a STATCOM includes:
• F or voltage regulation.
• N euro Fuzzy Control can be implemented at hardware and results can be observed
44
References
[7] Unipolar and Bipolar SPWM Voltage Modulation Type inverter for Im-
proved Switching Frequencies. www.academia.edu/8951265/Unipolar_
and_Bipolar_SPWM_Voltage_Modulation_Type_inverter_for_Improved_
Switching_Frequencies/.
[10] M.H.Rahisd. Power Electronics Devices, Circuits and Applications. Pearson, 2011.
[12] Hadi Saadat. Power System Analysis. The Mc-Graw Hill Companies, 1999.
45