International Conference on Renewable Energies and Power
Quality (ICREPQ’09)
European Association for the
Development of Renewable Energies,
Environment and Power Quality
Valencia (Spain), 15th to 17th April, 2009
A Novel Multi-Loop PID Controller for Photovoltaic-Grid Interface DC Energy
Utilization Farm
A. M. Sharaf1, I. H. Altas2 and E. Ozkop3
1
Energy Research Group-UTT, University of Trinidad and Tobago, Trinidad
e-mail: adel.sharaf@utt.edu.tt
2
Dept. of Electrical and Electronics Engineering, Karadeniz Technical University, Turkey
e-mail: ihaltas@altas.org
3
Dept. of Electrical and Electronics Engineering, Karadeniz Technical University, Turkey
e-mail: eozkop@ktu.edu.tr
Abstract. This paper proposes a novel control system for
control of a hybrid photovoltaic PV farm utilization with
alternative power source for DC type loads. A controller
consisting of two different controllers is mainly used to regulate
the DC-DC converter and also to control power flow from
alternative power source to reduce a weighted total sum of all
loop errors, to mainly track a given speed reference trajectory
depicting the demand for discharge or flow and also to ensure
power quality, reliability and stability. The proposed control
function
is
digitally
simulated
using
the
MATLAB/Simulink/SimPower System software environment.
The dynamic performance of the hybrid system is examined for
the control system validation under normal and abnormal
operating conditions.
Key words
Hybrid power system, renewable energy, modeling and
simulation of power systems, photovoltaic system.
climate change. The cost of generating electricity from
the photovoltaic system has already been reduced and the
cost of electricity generating of photovoltaic system may
be close to the one of conventional (nonrenewable) fossil
fuel energies [2]. On the other hand, the solar varies over
time and is dependent on environmental conditions
(temperature, irradiance, etc.). However, hybrid systems
have the potential to arrange these defects.
A hybrid power system (HPS) is an electric power
system that includes more than one type of energy
conversion systems. There are different types of HPS,
which imply different combinations of renewable energy
systems (RESs), nonrenewable energy systems and
storage systems (battery, flywheel, hydrogen/fuel-cell,
hydropower etc.) can be used to constitute HPSs [3].
HPSs can provide the required power for the connected
loads with suitable control and effective coordination
between various subsystems.
1. Introduction
For several decade years, fossil fuels have been
extremely consumed and the reserves have been rapidly
depleted much faster than new ones are being formed.
The quick arise in energy demand in the industrial nation
and developed countries like a China and India, which
have a growing economy are increasing the requirement
of more production of energy capacities [1].
Consequently, people have focused on renewable energy
source search, utilization and development and thought
renewable energy technologies as environmentally
sustainable and convenient alternatives.
Solar is a renewable energy resource that is growing in
importance because of the national and global issues of
air pollution, grid reliability, dependence on foreign oil,
The advantages of nonrenewable and renewable power
conversion systems are seen in HPSs. Renewable energy
sources provide autonomy from fossil fuel and also fuel
prices indirectly and a sustainable power supply future.
Nonrenewable energy sources are independent from
environmental conditions (temperature, irradiance, wind
velocity, etc.). The power utilization system safety and
reliability can be strengthened to use nonrenewable
energy sources when the renewable energy sources in
situations of deficient environmental circumstances. To
achieve a grid-linked hybrid generation system, the
system should be appropriately designed with taking into
consideration economic, reliability, and environmental
measures subject to physical and operational
constraints/strategies [4].
The paper is organized as follows. Section II defines the
configuration and the employed models of the proposed
hybrid system. Section III presents the photovoltaic-grid
interface dc energy utilization controller structure.
Section IV analyzes simulated results of two operation
conditions of the proposed hybrid system. Specific
conclusions are evaluated in Section V.
2.
Configuration of The Proposed Hybrid
System
The configuration of the proposed hybrid power
generation system is shown in Fig. 1. The proposed
system composed of Photovoltaic (PV) farms, alternative
power source, AC/DC Thyristor converter, a four
quadrant PWM controlled chopper type DC-DC
converter, Controllers and DC loads. In the system, DC
loads are feed by the dc voltage which is obtained by the
photovoltaic farm and also alternative power source.
A solar energy is more attractive than prior decade. The
solar is abundant, free, environment-friendly and nonregional. A photovoltaic cell converts the solar energy
into the electrical energy. To obtain the bigger electrical
energy the photovoltaic cell are combined with each
other by parallel and series.
During to obtain electrical energy from photovoltaic
system, longitude, latitude, weather and limited daytime
should be considered. Photovoltaic energy source is
essentially intermittent and quite variable. It is possible
that power fluctuations can be observed since
photovoltaic power source is highly dependent on the
weather conditions. Using photovoltaic systems for
electricity generation may have more profitable in
parallel with the technological advances in the near
future. The different energy systems like other
renewable, non-renewable and also storage energy
systems can be combined with the PV farm to increase
the efficiency.
In this study, the power output from PV-farm has the
highest priorities to feed the load. Only if the total power
from solar system is insufficient to satisfy the load
demand, the certain amount of energy will be provided
from the alternative power source.
A. DC Motor
DC motors are usually preferable due to their reliability,
durability, low costs, voltage characteristics, positive
convention coefficients between electrical and
mechanical parts, sizing and design flexibility. A
permanent magnet dc motor (PMDC) converts electrical
power provided by a voltage source to mechanical power
provided by a spinning rotor by means of magnetic
coupling. The equivalent circuit of a PMDC motor is
illustrated in Fig. 2. The parameters and symbols which
were used in simulating the system are given in
Appendix. The armature coil of the DC motor can be
presented by an inductance (Lm) in series with resistance
(Rm) in series with an induced voltage (em) which
opposes the voltage source. A differential equation for
the equivalent circuit can be derived by using Kirchhoff’s
voltage law around the electrical loop.
Fig 2. The equivalent circuit of a dc motor
The differential equations into state space form for the
armature current and angular velocity can be written as
⎡ Rm
−
d ⎡ ia ⎤ ⎢ Lm
⎢ω ⎥ = ⎢
dt ⎣ m ⎦ ⎢ K t
⎢
⎣ J
Kt ⎤
⎡1
Lm ⎥ ⎡ ia ⎤ ⎢ Lm
⎥⎢ ⎥ + ⎢
B ⎥ ⎣ωm ⎦ ⎢
− ⎥
⎢0
J ⎦
⎣
⎤
0 ⎥
⎡V ⎤
⎥⎢ m⎥
1 ⎥ ⎣ Tl ⎦
− ⎥
J⎦
−
(1)
The load torque is given by
TL = K 0 + K1ω m + K 2ω m
2
(2)
The nonlinear inertia J and viscous friction B have the
following variable non-linear forms:
Bm = B0 + B1ω m + B2ω m
2
J m = J 0 + J 1ω m + J 2ω m
2
(3)
(4)
Where, the coefficients are chosen as given in Appendix.
B. Photovoltaic Farm System
Photovoltaic solar cells convert energy into electrical
energy directly. There are two most common used
models of PV cell, one diode equivalent five parameters
and four parameters circuit models. The first one is more
complicated than the second one [5]. In this application,
four parameters, which are functions of solar irradiance,
load current and temperature, circuit model is realized.
The arranged equivalent circuit model is shown in Fig. 3
[6-7].
Fig. 1. Proposed grid-connected PV power generation
system
Fig. 3. One diode equivalent four parameters PV model
The PV array equivalent circuit was modeled as a single
block called PVA Model. This model simulates the
characteristic of the solar panel with the equation given
in Appendix.
C. Alternative Power Source
The alternative power source is used to help support the
system when the PV farm power is not enough to provide
energy through the DC loads. If the PV farm system
gives a required the loads power, the alternative power
source will be disconnected from the line. In this way, the
electrical energy is efficiently obtained from the
renewable energy source and the AC power source when
the PV Farm power is not sufficient.
3.
PID controller. The PID controller output is limited
between -1 and 1. The limited value goes through the
trigonometric block (cos-1). The trigonometric block
output determines the thyristor rectifier trigger angle. The
thyristor rectifier output dc power value varies with
depending on the trigger angle.
The Controller-I consists of three different loops shown
in Fig. 5. There are speed loop, current loop and current
& speed loop. In current and speed loop, the real and
reference values are compared to obtain current and
speed error. In current & speed loop, real current and
speed values are multiplied by each other and the current
& speed error is obtained by taking the difference
between the output value and the delayed output value.
The chopper speed error, the chopper current error and
the chopper current&speed error are multiplied by the
related weight factors ( γω , γ m and γ I ) and the output
summations is a total tri-loop error (et) .
The total tri-loop error forms the input of the
conventional PID controller. The controller output
determines the switches states.
Controller Structure
There are two type controllers in the proposed system.
One of the controllers named as Controller-II is used to
arrange the alternative power source output connected to
the PV farm power system. Another controller named as
Controller-I controls the DC loads power flow.
The Controller-II is to adjust the alternative power source
voltage and also to change the chopper input dc voltage
shown in Fig. 4. The controller consists of two different
tri-loop controllers. There are Tri-loop A and Tri-loop B
controllers.
The photovoltaic current, photovoltaic voltage and
photovoltaic power constitute the Tri-loop A controller
inputs. Every input error is obtained by taking the
difference between the real and delayed real input values.
The photovoltaic voltage error, the photovoltaic current
error and the photovoltaic power error are multiplied by
the related weight factors ( γ I , γ v and γ p ) and the output
summations is a total Tri-loop A error. The tri-loop error
is multiplied by a weight factor ( K1 ).
The thyristor rectifier output current, the thyristor
rectifier output voltage and the thyristor rectifier output
power constitute the Tri-loop B controller inputs. Every
input error is obtained by taking the difference between
the real and delayed real input values, except for the
rectifier voltage. The input error is obtained by taking the
difference between the real and reference voltages. The
rectifier voltage error, the rectifier current error and
power error are multiplied by the related weight factors
( γ vR , γ IR and γ pR ) and the output summations is a total
Tri-loop B error. The tri-loop error is multiplied by a
weight factor ( K 2 ).The summation of the tri-loop errors
(Tri-loop A, Tri-loop B) forms the input of conventional
In the all system, the photovoltaic array is directly
connected to the chopper input. It is possible that power
fluctuations can be seen since PV-farm power source is
highly dependent on the weather conditions. The
Controller-II regulates the alternative power source
depending on the system load requirement. If the
photovoltaic module system does not supply the
necessary load power, the Controller-II adjusts the
alternative power source to produce the required power
by the load. Otherwise, the alternative power source is
passive by using the Controller-II. In this way, a flexible
power management is realized in the hybrid power
system.
V pv
1
Vpv( base )
1
1+ sT0
ev
γv
ep
γp
eI
γI
evR
γ vR
e pR
γ pR
e IR
γ IR
1
z
1
z
I pv
1
I pv( base )
1
1+ sT0
1
z
Vref ( pu )
VR
1
VR( base )
1
1+ sT0
1
z
IR
1
I R( base )
1
1+ sT0
1
z
Fig. 4. Six-loop dynamic error driven PID controller
(Controller-II)
1
ew
1
Im
1
I base
γw
em
γm
eI
γI
et
1
z
Im
1
I base
I m (max)( 2.0 pu )
Fig. 5. Tri-loop dynamic error driven PID controller
(Controller-I)
When the available PV farm power is insufficient to
supply the load, the alternative power source delivers
additional electricity. But if the PV farm is strong enough
to completely supply the load, the alternative power is
inactive. The purposed system is digitally simulated by
using the Matlab/Simulink/SimPower Software and is
shown in Fig. 18.
4.
Simulation Results
The hybrid renewable energy system is tested with two
different conditions. Firstly, one of the variable
references applied through the DC loads in time increases
linearly and reaches the 200 rad/s at the end of the first
500ms, and then the reference speed remains speed
constant during 1 second. At 1.5th second, the reference
speed decreases with same slope as at the first 500ms.
After 2 second, the motor changes the direction and DC
loads increase its speed through the reverse direction. At
2.5th second, the reference speed reaches the -200 rad/s
and remains this speed at the end of 3.5th second and then
the reference speed decreases and becomes zero at 4th
second. This reference speed waveform is named as Type
I in this study. Another variable reference named as Type
II has same waveform with maximum and minimum 100
rad/s and -100 rad/s, respectively. In all references, the
system responses have been observed.
The DC loads need in Type I more power than Type II,
because the system reference speed in Type I is bigger
than the speed in Type II. So the DC loads consume more
power in Type I condition than in Type II condition.
When the available PV farm power is insufficient to
supply the load, the alternative power source delivers
additional electricity. But if the PV farm is strong enough
to completely supply the load, the alternative power
source is in active. The DC loads total current
consumption in Type I is bigger than it in Type II shown
in Fig. 7 and Fig. 13, respectively. When the available
PV farm power is insufficient to supply the load like in
Type I, the alternative power source delivers additional
electricity as shown in, Photovoltaic output voltage and
current and thyristor converter output current waveform
in Fig. 9, Fig. 10, and Fig. 11, respectively.
Conclusion
The paper presents a digital model and validation study
of a green renewable PV-powered Farm with DC type
motorized loads using novel controllers. In the hybrid
power generation system, different power systems are
connected the systems together and complement one
another to serve the load to fulfill certain economic,
environmental, and reliability criteria.
The control strategy is based on source-load matching
that is fully suitable for hybrid photovoltaic PV farm with
alternative interface connection to the local electric grid.
The dynamic Controller-I and Controller-II schemes are
mainly used to regulate the DC-DC converter and also to
control power flow from alternative power source to
reduce a weighted total sum of all loop errors and to
mainly track a given speed reference trajectory depicting
the demand for discharge or flow.
The real inherent nonlinearity of motor and mechanical
load inertia, viscous friction as well as any load torque
excursions are all modeled as nonlinear functions of the
motor speed. The proposed novel control scheme has
been validated for both effective and good dynamical
speed reference trajectory tracking with enhanced
power/energy utilization.
250
w__ref
w__load
200
150
100
Speed (rad/s)
ω m ωbase
ωbase
5.
50
0
-50
-100
-150
-200
-250
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 6. Speed waveform (Type I)
600
500
400
Total load current (A)
ωm
pu
300
200
100
0
-100
-200
-300
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 7. Total load current waveform (Type I)
1000
Motor voltage, Vm (V)
ω ref
500
0
-500
-1000
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 8. Motor voltage waveform (Type I)
1500
1200
1000
1000
Motor voltage, Vm (V)
Photovoltaic array current, Ipv (A)
1400
800
600
400
200
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 9. Photovoltaic array current waveform (Type I)
Photovoltaic array current, Ipv (A)
Photovoltaic array voltage, Vpv (V)
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 14. Motor voltage waveform (Type II)
600
500
400
300
200
0
0.5
1
1.5
2
time (s)
2.5
3
3.5
800
600
400
200
0
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 15. Photovoltaic array current waveform (Type II)
700
Photovoltaic array voltage, Vpv (V)
700
600
500
400
300
200
100
0
-100
1000
-200
4
800
Rectifier current,Ir (A)
0
1200
Fig. 10. Photovoltaic array voltage waveform (Type I)
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
500
400
300
200
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 16. Photovoltaic array voltage waveform (Type II)
150
700
w__ref
w__load
600
Rectifier current, Ir (A)
100
600
100
4
Fig. 11. Rectifier current waveform (Type I)
Speed (rad/s)
-500
-1500
700
100
0
-1000
0
-200
500
50
0
-50
500
400
300
200
100
-100
0
-150
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
-100
4
Fig. 12. Speed waveform (Type II)
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 17. Rectifier current waveform (Type II)
200
Appendix
Total current (A)
150
PV Array modeling equations:
100
V pv = Vc * CTV * CTI * N s
50
-50
-100
AKTc ⎛ I ph + I 0 − I c ⎞
⎜
⎟ − Rs I c
e ⎝
I0
⎠
I c = I pv / N p I pv = CTI * CSI * I sc
,
CTV = 1 + βT (Tc − Tx ) CSV = 1 + βT α S ( S x − Sc )
,
γ
1
CSI = 1 + ( S x − Sc ) CTI = 1 + T (Tx − Tc )
Sc
Sc
Vc =
0
0
0.5
1
1.5
2
2.5
time (s)
3
3.5
4
Fig. 13. Total load current waveform (Type II)
I1
Pulse1
IR
[Ir]
R&L
g
[alfa]
g
+ i
-
+
V
v +
-
TL
Vco
Ir
alfa
Vm
[Vm]
[Pulse]
TL
A
A+
+
Id1
-
w
[wm]
w
Speed
Ia
wm
Te
A-
B
Te
PMDC
A
C1
AC
Ia
Chopper
-
B
TL
w
w
Thyristor converter
alfa1
[alfa]
Pulse
V.M.
Vpv2
[Ir]
I_r
Ir1
+
-
A+
A-
Vci
PMDC1
TL
VPV
[Vr]
[Vpv]
Vr1
Vpv1
Vref
Controller-II
20
600
NS
200
A-
Scop
I-V
TL
+
-v
NP
TL
1
15.6092
Tx
Variable
Temperature
+ i
-
Tx
wrefe
PMDC3
D1
102.9493
Sx Variable Solar
Irradiation
wm 1
Wref speed
Iout
Pulse _up
Reference
IPV
[wm]
I_in
Speed_ref
Pulse
GND
Ia
Te
A-
Sx
1
A+
R&L
Id
w
w
Ipv
NP
Ipv _Signal
Ia
Te
PMDC2
Vpv
Vpv _signal
NS
Vref
A+
Vpv
+
- v
w
w
TL
Vr
B
Ia
Te
VR
Ipv1
[Vr]
Vr
v
+
-
v
[Ipv]
Ipv
A
TL
V.M.1
[Vpv]
Vpv
[Pulse]
+ Vpv
Pulse _up1
Speed1
wm
IT
w
Ia
PV-FARM
Controller-I
[Ipv]
Ipv
Fig. 18. The proposed hybrid renewable energy system Simulink block diagram
Voltage source
Inductance
Resistance
Induced voltage
Actual rated speed
Back emf constant
Electromagnetic torque
Motor speed weighting factor
Vm
Lm
Rm
em
wa-rated
Ke
Te
Motor current weighting factor
γI
γw
600V
3mH
1.19 Ω
V
500 rad/s
0.2 V.s/rad
Nm
1
0.001
Motor current&speed weighting
0.1
γm
factor
Input filters
Rf=0.05 Ω , Lf=0.05H, Cf=20*10-6F
Load torque constants
K0=0.9, K1=3.9*10-3, K2=66*10-6
Viscous friction constants
B0=5.7*10-3, B1=25*10-6, B2=0.423*10-6
Rotor moment of inertia constants
J0=14.44*10-3, J1=62.6*10-6, J2=1.06*10-6
Where,
Vpv: Photovoltaic array output voltage (V)
Vc: Cell output voltage (V)
CTV: Temperature-voltage coefficient
CSV: Irradiation-voltage coefficient
Ns: Number of solar cells connected in series
A: Diode quality factor (6.2)
K: Boltzman’ constant (1.38*10-23J/K)
Tc: Photovoltaic cell operating temperature (K)
Iph: Photocurrent, function of irradiation level and
junction temperature (A)
I0: Reverse saturation current of the diode D (0.01 A)
Ic: Cell output currrent (A)
e: Charge on an electron (1.60*10-19 C)
Rs: Series resistance of the photovoltaic cell (0.002 Ω )
Ipv: Photovoltaic array current (A)
Np: Number of solar cells connected in parallel
CSI: Irradiation-current coefficient
CTI: Temperature-current coefficient
Isc: Cell short circuit currrent (A)
βT : Temperature coefficient 1 (1/K)
Tx: Ambient temperature (K)
γ T : Temperature coefficient 2 (1/K)
α S : Irradiation coefficient
Sx: Ambient irradiation (%)
Sc: Photovoltaic cell operating irradiation (%)
References
[1] “Deciding the Future: Energy Policy Scenarios to 2050”,
World Energy Council, September, 2007.
[2] “Renewables 2007 Global Status Report”, REN21, 2008
Deutsche Gesellschaft für Techniche Zusammenarbeit
(GTZ) GmbH.
[3] C. Wang, L. Wang, L. Shi and Y. Ni, “A Survey on Wind
Power Technologies in Power Systems”, IEEE Power
Engineering Society General Meeting 2007, Tampa, FL,
USA, 24-28 June 2007.
[4] L. Wang and C. Singh, “PSO-Based Multidisciplinary
Design of A Hybrid Power Generation System with
Statistical Models of Wind Speed and Solar Insolation”,
International Power Electronics, Drives and Energy
Systems, 2006, PEDES’06, 12-15 Dec. 2006.
[5] A.A. Ghoneim, “Design optimization of photovoltaic
powered water pumping systems”, Energy Conversion &
Management, pp. 1449-1463, 2006.
[6] I.H. Altas and A.M. Sharaf, “A novel GUI modeled fuzzy
logic controller for a solar powered energy utilization
scheme”, The 13th International Conference on Emerging
Nuclear Energy Systems (ICENES2007), June 3-8, 2007,
Istanbul, Turkey.
[7] I.H. Altas and A.M. Sharaf, “A photovoltaic array
simulation model for Matlab-Simulink GUI environment”,
International Conference on Clean Electrical Power,
ICCEP’07, May 21-23, 2007, Capri, Italy.