See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/315741756 Design of a MPPT Solar Charge Controller in Matlab-Simulink GUI Environment Conference Paper · February 2017 CITATIONS READS 6 19,062 4 authors, including: Md. Rokonuzzaman Mahmuda Mishu Universiti Tenaga Nasional (UNITEN) Universiti Tenaga Nasional (UNITEN) 33 PUBLICATIONS 147 CITATIONS 11 PUBLICATIONS 76 CITATIONS SEE PROFILE SEE PROFILE Mohammed Hossam -E- Haider Military Institute of Science and Technology 61 PUBLICATIONS 217 CITATIONS SEE PROFILE Some of the authors of this publication are also working on these related projects: Low Altitude Aircraft Tracking System View project DESIGN AND IMPLEMENTATION OF A CONTROL SYSTEM FOR CANSAT COMEBACK MISSION WITH GROUND STATION COMMUNICATION LINK View project All content following this page was uploaded by Md. Rokonuzzaman on 02 April 2017. The user has requested enhancement of the downloaded file. International Conference on Mechanical Engineering and Applied Science (ICMEAS), 22-23 February, 2017, MIST, Dhaka Design of a MPPT Solar Charge Controller in Matlab-Simulink GUI Environment Md. Rokonuzzaman1, Mahmuda Khatun Mishu2, Md Hossam-E-Haider3 and Md. Shamimul Islam4 1,3 Department of Electrical, Electronic and Communication Engineering (EECE) 2,4 Department of Electrical and Electronic Engineering 1,3 Military Institute of Science and Technology (MIST), Mirpur Cantonment, Dhaka-1216 2,4 University of Information Technology and Sciences, Baridhara, Dhaka-1212 1 ragib_isme@yahoo.com Abstract—In this paper a simulation model of perturb and observe (P&O) based maximum power point tracking (MPPT) controller has been developed. The controller consists of maximum power point (MPP) tracker and the optimal control unit. This proposed tracker estimates the voltages and currents corresponding to a maximum power delivered by solar photovoltaic (PV) array for variable irradiance and cell temperature. The cell temperature is considered as a function of ambient air temperature, wind speed and solar radiation. The accuracy of the MPP tracker has been validated by employing different test data sets. The control unit uses the estimates of the MPP tracker to adjust the duty cycle of the buck-boost converter to optimum value needed for tracking maximum power and transfer to the load. Keywords—mppt controller; solar charge controller; perturb and observe algorithm; MATLAB/SIMULINK I. INTRODUCTION This paper presents the mathematical models of the components of PV module, MPPT control unit, and BuckBoost converter, to implement a simulation based MPPT solar charge controller. This controller is implemented in MATLAB R2008a, Version-7.6 environment. MATLAB software and its facilities are used to design the proposed electric models of solar MPPT charge controller. With this software, it is possible to characterize the MPPT algorithm and to obtain an estimate charging time for the battery. Simulation program SIMULINK provides a graphical interface to build any specific models as a block diagrams. It offers the advantage of building hierarchical models, namely presenting the possibility to view the system at different levels. This presents the advantage that the models can easily be connected together in order to simulate a system. Such models are also very useful to optimize the components of the PV system. Each of the power electronic models represents subsystems within the simulation environment. These blocks have been developed so they can be interconnected in a consistent and simple manner for the construction of complex systems [1]. The subsystems are masked, meaning that the user interface displays only the complete subsystem, and user prompts gather parameters for the entire subsystem. Relevant parameters can be set by double-clicking a mouse or pointer on each subsystem block, then entering the appropriate values in the resulting dialogue window [2]-[4]. For practical use, the 1 SIMULINK model blocks for each component of the PV system can be gathered in a library. In this thesis, the library contains model blocks for a PV module, a MPPT controller, a Buck-Boost converter and a battery. II. ELECTRIC MODEL OF PHOTOVOLTAIC CELL During darkness, the solar cell is not an active device. Cells work like a normal diode, i.e. a p-n junction. It produces neither a current nor a voltage. However, if it is connected to an external supply current πΌπ , diode current, πΌπ· will be present. A solar cell is usually represented by an electrical equivalent one-diode model with a series resistance, π π as shown in Fig. 1. RS iD Isa Vsa IS Fig. 1 Solar cell electrical equivalent model The model contains a current source πΌπ , one diode and a series resistor π π . The net current πΌπ π is the Difference between the photocurrent πΌπ π and the normal diode current πΌπ· . The diode current is given by Equation (1) πΌπ· = πΌ0 × π ππ π +(π π ×ππ π ) π ππ −1 (1) Where, πΌπ = π·ππππ π ππ‘π’πππ‘πππ ππ’πππππ‘ π = π·ππππ πππππππ‘π¦ ππππ π‘πππ‘ π πΎπ ππ = π π = πππππππ π£πππ‘πππ ππ πππππ¦ (2) ππ = πΆπππ πππππππ‘ππ ππ π πππππ π = ππππππππ‘π’ππ ππ π‘ππ ππ ππ’πππ‘πππ πΎ = π΅πππ‘π§πππ ππππ π‘πππ‘ = 1.38 × 10−23 π½/πΎ π = ππππππππ‘π’ππ ππ π‘ππ ππ ππ’πππ‘πππ π = 0β = 273.16 πΎ π = πΈππππ‘πππ ππππππ = 1.6 × 10−19 πΆ π π = πΈππ’ππ£πππππ‘ π πππππ πππ ππ π‘ππππ ππ π‘ππ πππππ¦ International Conference on Mechanical Engineering and Applied Science (ICMEAS), 22-23 February, 2017, MIST, Dhaka The net current, ππ π is given by Equation (3), ππ π = πΌπ − πΌ0 × π π π π +(π π ×π π π ) π ππ −1 (3) Taking into account the model for a single solar cell, it is possible to determine the I-V characteristic of M cells in parallel and N cells in series: ππ π = πΎ × ππ × ππ πΌπ −ππ π π×πΌ0 + 1 − (π π × ππ π ) (4) In this simulation short circuit current coefficient 0.003 are taken. e. Cells series number A bulk silicon PV module consists of multiple individual solar cells connected, nearly always in series, to increase the power and voltage above that from a single solar cell. In this Simulation module, 36 cells are connected in series to produce a voltage sufficient to charge a 12V battery. Where, πΎ =π×π For the used PV panel M = 1, N =36 and it is assumed m = 1. III. PV MODULE MODELING A. PV Module Block In accordance with Equation (4) deducted above, It is possible to build the block of the solar panel. It represents the detailed SIMULINK implementation of the mathematical model of the PV module and allows simulating the nonlinear IV and P-V characteristic. The implicit function of the I-V characteristic of the solar module can be easily solved by this block. First part of Fig. 3 represents the PV module blocks. This block has three inputs and one output. Voltage, solar irradiance and cell temperature are the inputs and current is the output of this block. Second part of Fig. 3 shows the function block parameter of the PV module blocks. Block set are used to design this module are described below [5]. a. Ideal factor From ideal diode equation, qV πΌ = πΌπΏ − πΌ0 exp nkT − 1 (5) The ideality factor of a diode is a measure of how closely the diode follows the ideal diode equation. In this simulation inputted ideal factor is 1.3. b. Open circuit voltage The open-circuit voltage πππ is the maximum voltage available from a solar cell, and this occurs at zero current. In this simulation the open-circuit voltage is 19.7V are taken from the specification sheet of KYOCERA PV Module: SM-85KSM Model. c. Short circuit current The short-circuit current πΌπ π is the current through the solar cell when the voltage across the solar cell is zero. In this simulation the short-circuit current is 5.90A are taken from the solar panel specification sheet. d. Short circuit current temperature coefficient The short circuit current, πΌπ π increases slightly with temperature, since the band gap energy, EG, decreases. However, this is a small effect and the temperature dependence of the short-circuit current from a silicon solar cell is: 1 ππΌπ π ≈ 0.0006 πππ β πππ πππππππ πΌπ π ππ 2 (6) Fig. 3 Function block parameters of PV Module: SM-85KSM f. Cells parallel number Modules are paralleled in large arrays so the mismatch usually applies at a module level rather than at a cell level. In small modules the cells are placed in series so parallel cell number is 1. g. Reference temperature Most semiconductor modeling is done at 300 K since it is close to room temperature and a convenient number. However, solar cells are typically measured almost 2 degrees lower at 25 °C (298.15 K). B. Subsystem of PV Module Analyzing Fig. 4 it is possible to detect a transfer function. Saturation and delay functions are introduced to limit the fast response of the “controlled voltage source”, as well as to improve convergence. The other variables are directly obtain/calculated from the PV datasheet. The value of πΌπ π is imposed on this process in order to limit the complexity of this block, its value is taken from the PV International Conference on Mechanical Engineering and Applied Science (ICMEAS), 22-23 February, 2017, MIST, Dhaka datasheet and is equal to πΌπ π = 5.90π΄. Solar irradiance is taken maximum 1000 W/m2, Boltzmann constant, πΎ = 1.38 × 10−23 π½/πΎ. Thus, applying Equation (4), it is possible to obtain the voltage characteristic of the solar panel that allows the simulation. The percentage (%) of the rated capacity extracted from the battery until the voltage drops under the nominal voltage. This value should be between 0% and 100%. g. Exponential Zone The voltage zone that should lies between nominal voltage and full charged voltage. Fig. 4 Subsystem implementation of generalized PV Module: SM-85KSM IV. BATTERY MODELING Fig. 5 represents dialog box of a 12V, 100Ah Lead-Acid battery and also illustrates block parameters of this battery. Block sets consist some parameters are briefly discuss below [6]. a. Battery Type In this section, a set of predetermined charge behavior for four types of battery such as Lead-Acid, Lithium-Ion, NickelCadmium, and Nickel-Metal-Hydride are provided. Among them, Lead-Acid is chosen. b. Rated Capacity (Ah) The rated capacity in ampere-hour is the minimum effective capacity of the battery. The maximum theoretical capacity (when the voltage crosses 0 volts) is generally equal to 105% of the rated capacity. The rated capacity of this battery is in 100 Ampere-hour (Ah). Fig. 5 Dialog box and block parameters of 12V, 100Ah lead-acid battery h. Units In this section, a set of predetermined unit is available for two types. One is Time and another is Ampere-hour. c. Initial State-of-Charge (SOC) This parameter is used as an initial condition for the simulation and does not affect the discharge curve. 100% indicates a fully charged battery and 0% indicates an empty battery. 65% means it will start charging from this charge level of battery. d. Full Charge Voltage The voltage factor (% of the nominal voltage) corresponding to the fully charged voltage, for a given nominal discharge current. e. Internal Resistance (Ohms) The resistance is supposed to be constant during the charge and the discharge cycles and does not vary with the amplitude of the current. f. Capacity @ Nominal Voltage Fig. 3.7 Subsystem implementation of buck-boost converter 3 International Conference on Mechanical Engineering and Applied Science (ICMEAS), 22-23 February, 2017, MIST, Dhaka V. BUCK-BOOST CONVERTER MODELING Fig. 3.6 shows the dialog box and subsystem of a buckboost converter. For each converter to verity it’s working in open loop configuration trigger pulses have been derived using a repeating sequence generator and duty cycle block. Function block compares the duty cycle and saw tooth from repeating sequence-derived trigger pulses are connected as an input to the switch control. Hence inputs for the masked subsystem are duty ratio and input voltage, and the outputs are chosen to be inductor current, capacitor voltage, and output voltage. When double-clicking the pointer on the masked subsystem of first Fig. of dialog box, then it enters parameter values of the switching converter circuit in a subsystem of buck-boost converter in second figure. In this simulation SimPowerSystems library is used and created a buck-boost converter. The input of the subsystem is connected to the solar panel block and output to a battery. MOSFET used for switching operations. VI. MPPT MODELING MPPT block is the most important part of the MPPT based PV system. In this paper duty cycle of the buck-boost converter is controlled by Perturb and Observe (P&O) algorithm to track the MPP of the solar panel. Duty cycle, D is calculated and converted to digital pulses using repeating sequence, sum and compare to zero block. The PWM frequency was selected to be 20 KHz. Fig. 3.8 shows the MPPT block, consisting three inputs and one output of duty cycle, D and also represents the MPPT unit with repeating sequence, sum, comparison block to zero and a duty cycle monitoring display. Fig. 3.9 shows the implemented subsystem for MPPT block. Embedded MATLAB function unit designed based on perturb and observe (P&O) algorithm. Initial value of duty cycle is 0.45, Upper limit of duty cycle, D is 0.55 and Changed value of duty cycle βπ· = 0.005. VII. SIMULINK MODEL OF MPPT CHARGE CONTROLLER The simulated complete circuit involving the PV array, charge controller and battery is illustrated in Fig. 3.10. All the blocks described above are connecting together to design full MPPT based solar charge controller system. This system includes, PV module block, converter with battery block and MPPT block. The output of the solar panel block is the panel current and is connected to the input of the buck-boost converter. The converter with battery block gives panel voltage (πππ ), Load voltage (πππ’π‘ ) and current (πΌππ’π‘ ) as the output. Panel voltage is input of the solar panel block. The MPPT block generates duty cycle, D as the output which controls the converter block. Solar irradiance and cell temperature profile are given as input to the solar panel. VIII. SIMULATION RESULTS A typical discharge curve is composed of three sections, as shown in the Fig. 3.11. The first section, yellow marked circle on the plot represents the exponential voltage drop when the battery is charged. Depending on the battery type, this area is more or less wide. The second section represents the charge that can be extracted from the battery until the voltage drops below the battery nominal voltage. Finally, the third section 4 represents the total discharge of the battery, when the voltage drops rapidly. Fig. 3.8 Dialog box and simulation unit of MPPT block Fig. 3.9 Subsystem implementation of P&O MPPT block Fig. 3.10 Proposed MPPT based solar charge controller system in MATLAB/SIMULINK environment Fig. 3.12 shows scope waveforms of buck boost converter. First plot shows the output voltage of the converter. The performance of the system is measured with the time of 1 minute. The simulation output between the voltage multiplier output voltage in volts and the time in minutes. At the half of 0.1 second, output voltage of the converter reaches 17.6V. At the time of 0.1 second, the output voltage reaches 16V and attains the constant value. Second plot shows the output current. At the quarter of 0.1 second time the current was maximum, more than 3.5A and after crossing of 0.1 second time current attains to be constant at 2.25A. Third plot shows the battery level charging voltage. The limit of high voltage disconnect is 13.5V and this converter is providing constant 13.4V to the battery as charging voltage. Fig. 3.13 shows the International Conference on Mechanical Engineering and Applied Science (ICMEAS), 22-23 February, 2017, MIST, Dhaka Fig. 3.11 Discharge characteristics of lead-acid battery output of MPPT charge controller as wave forms. First plot shows the panel voltage, indicated as πππ . At the time of 0.01 second the voltage of the solar panel was 19.9V and this voltage decreases almost linearly to 17V at the time of 0.3 seconds. At the time period of 0.3 seconds to 0.38 seconds panel voltage was very non linear and some moments around 0.4 second panel provides stable voltage of 18V. At 0.43 seconds panel provides unstable voltages again. Second plot shows generated current from PV panel. This plot shows that current is proportionally increases or decreases with respect to the panel voltage. Third plot shows the generated power from the panel using MPPT control method. Finally, fourth plot shows the charging current of the battery. Comparing second and fourth plot, it’s clear that charging current is higher than the input current. That means, MPPT techniques working efficiently and extracted maximum power from the panel. Fig. 3.14 shows the generating power after using MPPT control techniques. It shows that the maximum extracted power from the panel is 68W in a certain time of 0.3 m seconds. This simulation runs for 0.5 minutes. IX. Fig. 3.12 Scope wave forms of buck-boost converter CONCLUSION This paper establishes MATLAB/SIMULINK based simulation model to design a MPPT solar charge controller for photovoltaic standalone system. The proposed model introduces a generalized structure so that it can be used for PV system as well as wind, fuel cells and small hydro system. The model is simulated connecting three different part of PV system: PV panel, charge controller and a 12V lead-acid battery. Possible feature also included to get ac voltage by interfacing an inverter as well as national grid. Therefore the model proposed here can be considered as a part of distributed power generation systems. REFERENCES [1] Fig. 3.13 Scope wave forms of MPPT based solar charge controller circuit [2] [3] [4] [5] [6] Fig. 3.14 Scope wave forms of extracting power from PV panel 5 View publication stats M. Assaf, D. Seshsachalam, D. Chandra and R. K. Tripathi, "DCDC converters via matlab/simulink." the Proc of WSEAS Conference on Automatic Control, Modelling and Simulation (ACMOS’05), Prague, Czech Republic. 2005. D. Logue and Ph. T. Krein. "Simulation of Electric Machinery and Power Electronics Interfacing Using MATLAB/SIMULINK." The 7th Workshop on Computers in Power Electronics, pp. 34-39. N. Mohan, T. Undeland and W. Robbins, “Power Electronics Converters, Applications and Design”, ISBN 9814-12-692-6. C. Batard, F. Poitiers, C. Millet and N. Ginot, “Simulation of Power Converters Using Matlab-Simulink, MATLAB–A Fundamental Tool for Scientific Computing and Engineering Applications – Vol. 1 mathworks.com, “PV Array”, 2016 [Online], Available: https://www.mathworks.com/help/physmod/sps/powersys/ref/pvarr ay.html [Accessed: 23 Oct 16] mathworks.com, “Battery”, 2016 [Online], Available: https://www.mathworks.com/help/physmod/sps/powersys/ref/batte ry.html;jsessionid=4ff1d83100ebe04f1e2b21df8fe7 [Accessed: 23 Oct 16]