Professional Documents
Culture Documents
MATLAB PV MODEL
Geoff Walker
Dept of Computer Science and Electrical Engineering,
University of Queensland, Australia.
email: walkerg@csee.uq.edu.au
Abstract
An accurate PV module electrical model is presented based on the Shockley diode equation. The
simple model has a photo-current current source, a single diode junction and a series resistance, and
includes temperature dependences. The method of parameter extraction and model evaluation in
Matlab is demonstrated for a typical 60W solar panel.
This model is used to investigate the variation of maximum power point with temperature and inso-
lation levels. A comparison of buck versus boost maximum power point tracker (MPPT) topologies
is made, and compared with a direct connection to a constant voltage (battery) load. The boost con-
verter is shown to have a slight advantage over the buck, since it can always track the maximum
power point.
1 PHOTOVOLTAIC MODULES IL I
RS
Solar cells consist of a p-n junction fabricated in a thin
wafer or layer of semiconductor. In the dark, the I-V G
output characteristic of a solar cell has an exponential
V
characteristic similar to that of a diode.
When exposed to light, photons with energy greater
than the bandgap energy of the semiconductor are ab- T
sorbed and create an electron-hole pair. These carri- Figure 1: The circuit diagram of the PV model.
ers are swept apart under the influence of the internal
electric fields of the p-n junction and create a current
proportional to the incident radiation. When the cell is Temperature dependence of the photo current IL .
short circuited, this current flows in the external circuit; Series resistance RS , which gives a more accurate
when open circuited, this current is shunted internally shape between the maximum power point and the
by the intrinsic p-n junction diode. The characteristics open circuit voltage.
of this diode therefore sets the open circuit voltage char-
acteristics of the cell. Shunt resistance RP in parallel with the diode.
1.1 Modelling the Solar Cell Either allowing the diode quality factor n to be-
come a variable parameter (instead of being fixed
Thus the simplest equivalent circuit of a solar cell is a at either 1 or 2) or introducing two parallel diodes
current source in parallel with a diode. The output of (one with A = 1, one with A = 2) with indepen-
the current source is directly proportional to the light dently set saturation currents.
falling on the cell. The diode determines the I-V char-
acteristics of the cell. For this research work, a model of moderate complexity
was used. The model included temperature dependence
of the photo-current IL and the saturation current of the
Increasing sophistication, accuracy and complexity can
diode I0 . A series resistance RS was included, but not
be introduced to the model by adding in turn
a shunt resistance. A single shunt diode was used with
Temperature dependence of the diode saturation the diode quality factor set to achieve the best curve
current I0 . match. This model is a simplified version of the two
msx60 model, 1Sun, 25C, 1.0 < A < 2.0
diode model presented by Gow and Manning [1]. The 4
IL = IL(T ) (1 + K0 (T , T1 ))
1
(2) 1.5
I0 = I0(T ) (T=T1)3=n
0
0 5 10 15 20 25
Module Voltage (V)
1
( 1) 1
1
(8) Rs = 16mOhm
the model.
The photo-current IL (A) is directly proportional to ir-
0.5
Im
% G = num of Suns (1 Sun = 1000 W/mˆ2)
Current, max power 3.5 A % T = Temp in Deg C
T1 = 273 + 25;
Voc_T1 = 21.06 /Ns; % open cct voltage per cell at temperature T1
rameters are evaluated during execution using the equa- Isc_T1 = 3.80; % short cct current per cell at temp T1
tions listed in the previous section using the above data T2 = 273 + 75;
Voc_T2 = 17.05 /Ns; % open cct voltage per cell at temperature T2
points contained in the script. The current I is then eval- Isc_T2 = 3.92; % short cct current per cell at temp T2
uated using these parameters, and the variables Voltage, TaK = 273 + TaC;
TrK = 273 + 25;
% array working temp
% reference temp
Irradiation, and Temperature. If one of the input vari- % when Va = 0, light generated current Iph_T1 = array short cct current
ables is a vector, the output variable (current) is also a % constant "a" can be determined from Isc vs T
method used converges much more rapidly, and for both X2v = Ir_T1/(A*Vt_T1) * exp(Voc_T1/(A*Vt_T1));
dVdI_Voc = - 1.15/Ns / 2; % dV/dI at Voc per cell --
positive and negative currents. Rs = - dVdI_Voc - 1/X2v;
% from manufacturers graph
% series resistance per cell
Vc = Va/Ns;
Ia = zeros(size(Vc));
The output of the Matlab function is shown first for var- % Iav = Ia;
for j=1:5;
ious irradiation levels (Fig. 5), and then for various tem- Ia = Ia - ...
(Iph - Ia - Ir.*( exp((Vc+Ia.*Rs)./Vt_Ta) -1))...
peratures (Fig. 6). A number of discrete data points are ./ (-1 - (Ir.*( exp((Vc+Ia.*Rs)./Vt_Ta) -1)).*Rs./Vt_Ta);
% Iav = [Iav;Ia]; % to observe convergence for debugging.
shown on the curves in figure 6. These are points taken end
model. The load was presumed to be a 12V lead Figure 5: The Matlab model VI curves for various irra-
acid battery, whose voltage varied from 12V (flat) to diation levels.
13.8V (fully charged “float” voltage). This simple
msx60 model, 1Sun, T = 0, 25, 50, 75 degC Min (19 Feb) and Max (21 Feb) solar radiation at Townsville
4 1400
T=0C 1200
3.5
T = 75 C
3 1000
2.5 800
Module Current (A)
Insolation
2 600
1.5 400
1 200
0.5 0
6 8 10 12 14 16 18
hour
0
0 5 10 15 20 25
Figure 7: Instantaneous global solar radiation at
Module Voltage (V)
Townsville for the days with a cumulative maximum
Figure 6: The Matlab model VI curves for various tem-
(21st) and minimum (19th) radiation in February 1991.
peratures. The discrete data points shown are taken
from the manufacturer’s curves, and show excellent
correspondence with the model. than or equal to its output voltage, so the panel volt-
age must exceed the battery voltage for power to flow.
The maximum power point (MPP) of a nominal 12V
arrangement is typical of low power stand-alone PV- commercial PV module is above 13V for most combi-
battery systems powering electric fence energisers or nations of insolation and temperature. A buck converter
data telemetry systems. can operate at the MPP under most, but not all, condi-
tions.
Three possible connections between source and load
were considered. The input voltage of a boost converter must lie between
zero and the output voltage, for complete control of the
The most typical arrangement in a simple system as de-
power flow. Hence the module maximum output volt-
scribed is a single series blocking diode between the
age, the open circuit voltage, must be less than the min-
PV module and the battery. A shunt regulator may
imum battery voltage. This is possible because many
be placed in parallel with the battery to prevent over-
modern PV modules have substrings wired out to per-
charging when the battery reaches its fully charged
mit bypass diodes to be added. For example the MSX60
“float” voltage by shunting excess charge around the
has two series connected 18 cell strings, with a maxi-
battery. A more typical modern regulator arrangement
mum open circuit voltage of approximately 11.5V each.
places a series MOSFET switch between the PV mod-
A boost converter will always be able to operate at the
ule and battery. This regulator disconnects the module
panel’s MPP.
when the module current falls to zero and reverses, or
when the battery is fully charged. This method has the A buck converter with a MOSFET switch still requires
advantage of very low forward voltage drop when the an additional diode or MOSFET to block reverse cur-
MOSFET switch is closed. rent flow when the panel voltage drops below the bat-
tery voltage. As an additional advantage, a boost con-
These arrangements are modelled as a direct connec-
verter naturally has this diode (or MOSFET) as part
tion between module and battery. The voltage of the
of its structure, which removes an additional source of
PV module is set by the battery voltage, and the battery
voltage drop and power loss.
current and hence power delivered is determined by the
PV module operating point. 2.2 Insolation data used
The other arrangement is the use of a MPPT DC-DC
The insolation data used was Global solar radiation data
converter inserted between the PV module and battery.
kindly supplied by Dr Harry Suehrcke of James Cook
The ratio of the input and output voltages is controlled
University [5]. The radiation measurements used here
by varying the on-off duty cycle of the converter switch-
is beam and diffuse horizontal surface radiation gath-
ing device, typically a MOSFET. Since the output volt-
ered with a photovoltaic pyranometer located at James
age of the converter is fixed by the battery, the input
Cook University, Townsville. The data points were
voltage and hence module operating point is controlled
taken every minute for a whole year. The curves used
by the duty cycle.
in these simulations were for the best day (21st) and
The two possible converter topologies considered are the worst day (19th) in February, based on cumulative
the buck converter and the boost converter. insolation (Fig. 7).
The input voltage of a buck converter is always greater Usually insolation data is presumed to follow a daily
msx60 model, T = 50 degC, G = 0.05, 0.25, ... , 1.0 Suns
sinusoidal curve from dawn to dusk, with the peak value 4
Power = 54 W
set to the value calculated for that day of the year [2]. 3.5
G = 1 Sun
This averaged data removes the rapid peaks and troughs Power = 40 W
3
caused by passing clouds. It was presumed that this
introduced some potential sources of error in modelling 2.5
ing heavy cloud cover, the power flow from PV module 1 Power = 13 W
0.5
the MPP or Open Circuit (OC) voltage of the module G = 0.05 Suns Power = 2 W
25
20
Amps, Amp−hours
15
10
Amps, Amp−hours collected −− direct connect vs. buck and bo ost MPPT, 19 Feb 1991
2.5
0
6 8 10 12 14 16 18
hour
Amps, Amp−hours
MPPT converters are overlayed (upper trace), with the 1.5
0.9
0.5
0.8
0.7
0
6 8 10 12 14 16 18
0.6 hour
0.5
0.3
0.5
MPP and battery voltages.
0.4
0.3
References 0.2
0.1
[1] J. A. Gow, C. D. Manning “Development of
a photovoltaic array model for use in power- 0
6 8 10 12
hour
14 16 18
electronics simulation studies,” IEE Proceedings Figure 12: The efficiency of different matching strate-
on Electric Power Applications, vol. 146, no. 2, gies. The direct connection and the buck converter
pp. 193-200, March 1999. both perform poorly at low light and high temperature
conditions. The boost converter always remains 100%
[2] T. Markvart, Solar Electricity, John Wiley & matched.
Sons, 1994.
[3] M. A. Green, Solar Cells, University of New
South Wales, 1992.