Lab 1 - Modeling Photovoltaic Module in Matlab-Simulink
Lab 1 - Modeling Photovoltaic Module in Matlab-Simulink
Laboratory 1
Modeling Photovoltaic Module in Matlab/Simulink
Objectives:
At the end of this laboratory, students will be able to:
Important
The model to be developed in this lab is based on “A detailed modeling of photovoltaic module using
MATLAB” from https://doi-org.ezproxy.aut.ac.nz/10.1016/j.nrjag.2014.04.001.
Laboratory Exercises
Notes: make sure the running time is at least the same as the open circuit voltage value if you use 1
as the slope of your ramp voltage inside the model as shown in Fig. 9 of the reference.
a) Observe that the developed model in Part 1 is not in the form of electric circuit. It cannot
be connect to an electric circuit element such as a resistor.
b) Modify the model so that it will be in the form of electric circuit as shown in Fig. 1.
c) Observe that there is no PV terminal voltage in the original model. The voltage is generated
independently by using a ramp function as shown in Fig. 9 of the reference. This ramp
voltage is used to calculate the diode current and the shunt resistor current as shown in Fig.
6 of the reference.
d) For the modified model, the diode voltage must be measured and fed back to the model to
be used in the diode current equation as shown in Fig. 2. The shunt resistor current equation
does not need to be represented since the resistor is existing in the modified model as an
electric circuit element as shown in Fig. 1.
e) To characterize the PV model on all its voltage range, use a controlled voltage source in
combination with a ramp function as shown in Fig. 3.
a) Use “To File” from the Simulink Library to save the data. An example of the “To File”
usage is shown in Fig. 4.
b) Double click on the “To File” to set data. For the sample in Fig. 4, the file name is PV1000
as shown, the variable name is G1000 (not shown), and the save format is Array.
c) Based on Fig. 4, the first input to the file is voltage, the second one is current, and the third
one is power. The corresponding Matlab codes to plot the data is shown in Fig. 5.
4. Report
Discuss all the above tasks in your report. The report should be written by considering the report grading
rubric.