Elk 21 2 1 1105 29

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Turk J Elec Eng & Comp Sci

(2013) 21: 301 308


c T

UB

ITAK
doi:10.3906/elk-1105-29
Turkish Journal of Electrical Engineering & Computer Sciences
ht t p: //j ournal s . t ubi t ak. gov. t r/el ekt ri k/
Research Article
Model of a photovoltaic panel emulator in MATLAB-Simulink
Hayrettin CAN

Department of Computer Science, Engineering Faculty, Frat University, 23119 Elaz g, Turkey
Received: 18.05.2011 Accepted: 18.01.2012 Published Online: 22.03.2013 Printed: 22.04.2013
Abstract: Being able to behave electrically similar to photovoltaic (PV) panels, PV emulator systems make it possible
to perform dierent PV system tests under various operation conditions. In this paper, a model of a PV panel emulator
is presented using the Power System Blockset under MATLAB-Simulink. The simulation of the emulator system is
developed for testing a controller prior to a real-time implementation. The model can handle the dependence of all
of the parameters in the model with respect to solar radiation and temperature. The simulation results show that the
output characteristics of the simulator have good agreement with those of the actual PV panel in various load conditions.
Additionally, the simulator has a good dynamic response.
Key words: Circuit based, emulator, modeling, photovoltaic panel
1. Introduction
The renewable energy market has grown rapidly in the last decade. In particular, electricity production by solar
energy is promoted in many countries and is considered to be a strategic objective for governments. Increasing
interest in solar energy has made photovoltaic (PV) systems a promising alternative to conventional energy
sources. For this reason, the demand for appropriate equipment to test PV systems has been on the rise.
The power output of PV systems is directly aected by solar irradiance and temperature. The testing of
early solar equipment, such as inverters and maximum power point trackers (MPPTs), was possible under real
weather conditions because of the low power of these old systems. However, it is dicult to test modern PV
systems that generate hundreds of kilowatts of power due to the space, cost, and weather dependency of the
test equipment. Therefore, an emulator circuit, which has similar electrical characteristics to a PV system, is
an industry necessity.
The advantages of the PV emulator over the solar panel are summarized as follows:
The PV emulator requires less space.
Any atmospheric conditions can be easily simulated.
Dierent types of solar cell characteristics can be simulated.
PV emulators can be used for calibration purposes.
Being a programmable device, the PV emulator can protect itself under overload or short-circuit conditions,
which are normally expected to occur during testing.

Correspondence: [email protected]
301
CAN/Turk J Elec Eng & Comp Sci
For the reasons mentioned above, many researchers have been trying to develop their own PV emulators.
Several methods for PV emulators have been suggested. The PV emulator presented in [1,2] is based on the
amplication of a p-n photosensor output voltage by a DC power amplier. However, this kind of emulator
has limited use because of its need for a light-emitting diode driver circuit and a temperature controller for
each p-n photosensor. It is also very dicult to simulate partially shaded conditions for dierent irradiation
and temperature values with this system. Moreover, only the p-n photosensors used in the emulators I-V
characteristics can be obtained. Lloyd [3] developed an emulator using a class-A amplier to amplify the
command current or voltage values stored in an EPROM, which correspond to the simulated PV module
current-voltage characteristics, but the emulator is not exible when dierent PV module types or PV module
congurations are simulated.
Additionally, several studies for emulating the I-V characteristics of PV systems have been focused on
using dierent power converter topologies [47]. In [5], the authors use a DC/DC full bridge structure of
an inverter and high-frequency transformer to provide galvanic isolation. Some emulators consist of a buck-
type DC/DC power converter, which is controlled by a eld-programmable gate array-based unit using the
pulse width modulation (PWM) principle [6], and some emulators use a DC/DC buck converter topology that
includes partial shadow conditions and the dynamic behavior of the emulator [7].
During the realization process of an emulator, most researchers rst develop the model of the emulator
system using dierent computer simulation platforms, like MATLAB-Simulink [810]. The model is then used
to specify the system and controller parameters, search the dynamic response, and verify the output of the
system with the actual one.
In this paper, a buck-type DC/DC power converter has been established in a MATLAB-Simulink envi-
ronment using the piecewise linear electrical circuit simulation (PLECS) toolbox. The proposed model allows
for the simulation of dierent PV module types and PV module congurations, and it is also exible, allowing
for changes in the solar irradiation and temperature values.
The rest of the paper is organized as follows: in Section 2, the fundamental properties of a PV panel and
its mathematical model are summarized; Section 3 describes the design and control of the DC/DC converter;
Section 4 describes the construction of the PV panel emulator model for MATLAB-SimPowerSystems; Section
5 is devoted to the performance simulation of the proposed PV panel emulator; and, nally, Section 6 includes
the conclusions.
2. Mathematical model of PV panel
In this paper, we used a well-known one-diode model incorporating the shunt resistance as illustrated in Figure
1. This model oers a good compromise between simplicity and accuracy. Many power electronic designers
prefer this model for the simulation of PV devices with power converters [11,12]. Its characteristic equation is
given in Eq. (1).
I = I
pv
I
o

exp

V +R
s
I
V
t
A

V +R
s
I
R
p
(1)
Here:
I
pv
= photoelectric current (A)
I
o
= diode saturation current (A)
V
t
= junction thermal voltage (V)
302
CAN/Turk J Elec Eng & Comp Sci
V = terminal voltage (V)
R
s
= cell series resistance ()
R
p
= cell shunt resistance ()
A = diode ideality factor
I
R
s
Rp
D
V
I
pv
I
d
Figure 1. Equivalent circuit of a PV cell.
V
t
= kT/q; q is the electron charge [1.602 10
19
C], where kis the Boltzmann constant [1.38 10
23
J/K] and T is the cell temperature (K).
In the above model, the photoelectric current, I
pv
, comprises terms to handle variations in the radiation
and temperature, and the diode saturation current, I
o
, comprises a term to handle temperature changes [13].
The above model is completed with the following equations. The photoelectric current is dened as:
I
pv
=
G
G
n
(I
scn
+K
i
(T T
n
)), (2)
where I
scn
is the short-circuit current at the standard test condition (T
n
= 25

C, G
n
= 1000 W/m
2
and air
mass 1.5) and T and T
n
are the actual and nominal temperatures (K), respectively; G(W/m
2
) is the radiance
on the device surface and G
n
is the nominal radiance; and K
i
is the temperature coecient of the short-circuit
current (A/K).
The dependence of the diode saturation current on the temperature is expressed as follows:
I
0
=
I
scn
+K
i
(T T
n
)
exp((V
ocn
+K
v
(T T
n
)/AV
t
) 1
, (3)
where V
ocn
is the nominal open-circuit voltage and I
scn
is the nominal short-circuit current.
It is worth noting that the model described above is referred to as a single-cell model. However, once the
model parameters for a single cell are known, it is possible to extend the results to the entire PV panel.
The following equations summarize how a single-cell model can be extended to represent a PV panel:
I
pv,tot
= N
p
I
pv
, (4)
I
o,tot
= N
p
I
o
, (5)
R
s,tot
=
N
s
N
p
R
s
, (6)
R
p,tot
=
N
s
N
p
R
p
, (7)
303
CAN/Turk J Elec Eng & Comp Sci
A
tot
= N
s
A, (8)
where N
p
is the number of parallel cells and N
s
is the number of series cells.
Single-cell model equations can be upgraded to represent the PV panel when all of the parameters in
Eqs. (4)(8) are substituted into Eqs. (1)(3).
3. Control scheme and design of the DC/DC converter
A PV panel emulator system is basically a switching power supply, but the dierence is that a steady working
point of the PV emulator system is required to run on the I-V characteristic curve of a PV panel so that the
actual panel can be replaced by the emulator circuit to conduct an experiment.
The block diagram of the PV emulator system is shown in Figure 2. First, the detection circuit samples
load the voltage and current values with the specied sampling period. Next, according to the load current
value, the corresponding reference voltage is calculated by the PV panel model block. This block includes the
load voltage by a function of the load current, irradiance, and temperature, V = f(I,G,T). This means that
the reference load voltage can be obtained by the measured load current, the irradiance, and the temperature.
Next, the dierence between the reference and the measured values of the load voltage is applied into the
proportional-integral (PI) regulator to obtain an appropriate duty cycle. Finally, the PWM generation block
provides the switching signal to drive the switch of DC/DC converter.
PV Panel
Model
PI
Controller
PWM
Generation
DC-DC Buck
Converter
I I V V
+
_
V
ref
Figure 2. Control schematic diagram of PV panel emulator system.
A DC/DC buck converter is presented to simulate the electrical behavior of the PV panel for the variations
in the solar irradiance, temperature, and load conditions. The DC/DC power converter is driven according to
the mathematical model of the PV panel. The basic buck converter circuit is shown in Figure 3. The relationship
between the input and output voltage of the converter is given in Eq. (9). This equation shows that the output
voltage is lower than the input voltage; hence, the duty cycle is always less than 1.
V
o
= DV
dc
(9)
For the design of the converter output inductor-capacitor (LC) lter, the determination of the value of L and
C are not going to be explained in full detail here, because it is out of scope of this paper. The minimum
inductance and capacitance values can be determined as in Eqs. (10) and (11), using the following constraints:
V
i PWM
L
C R
Vo
+
-
Figure 3. The circuit of a DC/DC buck converter.
304
CAN/Turk J Elec Eng & Comp Sci
As the converter operates in continuous mode, the current through the inductor should be within a
reasonable range for all of the load conditions.
Maximum ripple on the output voltage should not exceed a few percentages.
L
V
dc
I
L
f
s
D(1 D) (10)
C
(1 D)
8Lf
2
s

V
o
V
o

(11)
Here, I
L
is the limit current between the continuous and discontinuous conduction mode, f
s
is the switching
frequency, D is the duty cycle, V
o
is the output voltage of the converter, and V
o
is the maximum allowed
voltage variation.
4. Model of PV emulator in MATLAB-Simulink
The architecture of the proposed PV emulator system is schematized in Figure 4. The PV emulator system is
developed in a MATLAB-Simulink environment using the PLECS toolbox. In Figure 4, the PV model and the
PI controller MATLAB function blocks correspond to MATLAB les.
PWM
Vref
V
v
+
-
Voltage
Measurement
Vdc
25
T
Switching
Frequency
R
MATLAB
Funct ion
PV_MODEL
MATLAB
Funct ion
PI_Cont roller
g m
D S
Mosfet
Mem_Out
Mem_Integrator
L
1000
G
Diode
i
+
-
Current
Measurement
<
Clock
C
Figure 4. Model of the PV panel emulator in MATLAB-Simulink.
The PV model block calculates the reference voltage according to the I-V behavior of the PV panel. Its
inputs are the vectors of the solar irradiance and temperature and the current supplied by the power stage to
the load. As mentioned in Section 2, a one-diode model of the PV cell with shunt resistance (5-parameter) has
been used. However, Eq. (1) of the solar cell cannot be solved explicitly in general for its output current. For
305
CAN/Turk J Elec Eng & Comp Sci
this reason, numerical methods are required to obtain the solution of the I-V relation of the PV panel. In this
study, the NewtonRaphson method is used to calculate the output voltage as a function of the solar irradiance,
temperature, and output current.
For the PI controller block, the dierence between the reference voltage and the samples of the load voltage
provides the input for the PI regulator to obtain an appropriate duty cycle. The integration time-interval can
be adjusted to the desired value using the clock signal.
Until now, most researchers have been simulating their own PV emulator system using the transfer
function of the DC/DC converter [8,14,15]. However, any modication on the DC/DC converter, such as
changing the switching frequency, inductance, and capacitance values, requires the recalculating of the transfer
function. On the other hand, the simulation environment of the PV emulator system presented in this paper is
very exible in terms of its design aspects.
In particular, simulation can be carried out to observe the eect on the variations of the solar irradiance,
temperature, and load values. Additionally, the sampling period of the voltage and current measurement can
be adjusted to the desired values.
5. Simulation results of the emulator system
For the purpose of testing and validating the operating principle of the PV panel emulator, the simulation
system based on a DC/DC buck converter was carried out in MATLAB-Simulink. The details of the simulation
of the PV panel emulator system are shown in Figure 4. The parameters of the emulated PV panel and the
simulation system are shown in the Table.
Table. PV panel and simulation circuit parameters.
The PV panel specications (1 kW/m
2
, 25

C) Simulation circuit parameters
Typical peak power 55 W Switching frequency 50 kHz
Voltage at peak power 18.5 V Filter inductance 1.5 mH
Current at peak power 3.5 A Filter capacitance 25 F
Short-circuit current 3.85 A Integral coecient 240
Open-circuit voltage 23.3 V Proportional coecient 0.21
Simulations have been carried out with 2 dierent scenarios to analyze the performance of the simulation
system. In the rst scenario given in Figure 5, the load resistance was increased gradually and the dynamic
response of the emulator was evaluated. The worst settling time was less than 10 ms and occurred in the nal
step of the simulation, as shown in Figure 5. Here, the solar irradiation and temperature values were set to
1000 W/m
2
and 25

C, respectively.
In the second scenario presented in Figure 6, the dynamic response of the emulator was tested for various
solar irradiance and temperature. Here, the load resistance was set to a constant (6 ) during each state of
the simulation. The irradiation and temperature levels in each case are shown. As can be seen from Figure 6,
the response of the PV panel emulator system lasted for less than 10 ms. Note that the maximum ripple on
the output voltage and current waveform stayed within the range of a few percentages during the steady-state
condition.
306
CAN/Turk J Elec Eng & Comp Sci
0 0.05 0.1 0.15 0.2 0.25
0
10
20
30
V
o
l
t
a
g
e

(
V
)
0 0.05 0.1 0.15 0.2 0.25
0
1
2
3
4
C
u
r
r
e
n
t

(
A
)
Time (ms)
Figure 5. Output characteristics of the PV panel emulator system with load variations.
0 0.05 0.1 0.15 0.2 0.25
0
10
20
V
o
l
t
a
g
e

(
V
)
0 0.05 0.1 0.15 0.2 0.25
0
2
4
C
u
r
r
e
n
t

(
A
)
0 0.05 0.1 0.15 0.2 0.25
0
500
1000
G

(
W
/
m
2
)
0 0.05 0.1 0.15 0.2 0.25
0
50
T

(

C
)
Time (ms)
Figure 6. Output characteristics of the PV panel emulator system with irradiation and temperature variations.
6. Conclusion
In this paper, we presented a simulator that can model all of the hardware and software components of an
emulator in one MATLAB-based software environment, hence enabling us to design and test emulators prior
to their physical implementation. The hardware component of the underlying emulator that we simulated is a
buck converter. The software component of the emulator is a 5-parameter model of a PV panel and the related
PI controller. Our overall simulation system can produce the electrical behavior of the PV emulator for various
solar irradiance, temperature, and load conditions. The performance of the proposed PV emulator model has
been tested under dynamic conditions, and satisfactory results have been obtained.
Acknowledgments
This work was supported by the Scientic and Technological Research Council of Turkey (T

UB

ITAK) under
research grant EEEAG-109E163.
307
CAN/Turk J Elec Eng & Comp Sci
References
[1] H. Nagayoshi, I-V curve simulation by multi-module simulator using I-V magnier circuit, Solar Energy Materials
and Solar Cells, Vol. 82, pp. 159167, 2004.
[2] S. Armstrong, C.K. Lee, W.G. Hurley, Investigation of the harmonic response of a photovoltaic system with a
solar emulator, Power Electronics and Applications, pp. 18, 2005.
[3] S.H. Lloyd, G.A. Smith, D.G. Ineld, Design and construction of a modular electronic photovoltaic simulator,
8th International Conference on Power Electronics and Variable Speed Drives, pp. 120123, 2000.
[4] Q. Zeng, P. Song, L. Chang, A photovoltaic simulator based on DC chopper, IEEE Canadian Conference on
Electrical and Computer Engineering, Vol. 1, pp. 257261, 2002.
[5] G. Martin-Segura, J. Lopez-Mestre, M. Teixido-Casas, A. Sudria-Andreu, Development of a photovoltaic array
emulator system based on a full-bridge structure, 9th International Conference on Electrical Power Quality and
Utilization, pp. 16, 2007.
[6] E. Koutroulis, K. Kalaitzakis, V. Tzitzilonis, Development of an FPGA-based system for real time simulation of
photovoltaic modules, 17th IEEE International Workshop on Rapid System Prototyping, pp. 200208, 2006.
[7] M.C. Di Piazza, G. Vitale, Photovoltaic eld emulation including dynamic and partial shadow conditions, Applied
Energy, Vol. 87, pp. 814823, 2010.
[8] M. Cirrincione, M.C. Di Piazza, G. Marsala, M. Pucci, G. Vitale, Real time simulation of renewable sources by
model-based control of DC/DC converters, IEEE International Symposium on Industrial Electronics, pp. 1548
1555, 2008.
[9] D. Dolan, J. Durago, J. Crowfoot, Tauk, Simulation of a photovoltaic emulator, North American Power
Symposium, pp. 17, 2010.
[10] Z. Ziming, Z. Jianwen, S. Haimeng, W. Gang, H. Xiwen, Z. Shi, Research on photovolta array emulator sys-
tem based on a novel zero-voltage zero-current switching converter, Asia-Pacic Power and Energy Engineering
Conference, pp. 14, 2010.
[11] Y.J. Wang, P.C. Hsu, Analytical modelling of partial shading and dierent orientation of photovoltaic modules,
IET Renewable Power Generation, Vol. 4, pp. 272282, 2010.
[12] Y.J. Wang, P.C. Hsu, Modelling of solar cells and modules using piecewise linear parallel branches, IET Renewable
Power Generation, Vol. 5, pp. 215222, 2011.
[13] M.G. Villalva, J.R. Gazoli, E.R. Filho, Comprehensive approach to modeling and simulation of photovoltaic
arrays, IEEE Transactions on Power Electronics, Vol. 24, pp. 11981208, 2009.
[14] O. Cifdaloz, S. Konasani, A.A. Rodriguez, M. Islam, D. Allee, DC-DC buck converter design: a sampled-data
approach, American Control Conference, pp. 27652770, 2006.
[15] M. Sokolov, T.C. Green, P.D. Mitcheson, D. Shmilovitz, Dynamic analysis of photovoltaic system with MPP locus
emulation, Electrical and Electronics Engineers in Israel, pp. 000212000215, 2010.
308

You might also like