Implementation of Variable Step Size MPPT Controller for Photovoltaic System on FPGA Circuit Justin Baby, Jibin M Varghese* *Assistant Professor, ECE Department, UKF College of Engineering & Technology, Kollam Abstract Energy demand across the world increases and resources become scarce, which increase the search for alternative energy resources and their associated technology. With advancements in power electronic technology, the solar Photovoltaic energy has been recognized as an important natural energy resource because it is clean, abundant and pollution free. This paper presents the implementation of Field Programmable Gate Array (FPGA) based Maximum Power Point Tracking (MPPT) of PV system using modified perturb and observe controller algorithm and comparing the results with perturb and observe controller algorithm. This strategy of control has, in first time, been validated by Matlab and Psim co-simulation. The modified P&O algorithm has been designed using the very high-speed description language (VHDL) and implemented on Xilinx Spartan-3 (XC3S400) families of Field Programmable Gate Array (FPGA). The VHDL-modules have been simulated, synthesized and tested using the ISE 10.0 of XILINX and the ModelSim.. Index Terms FPGA, MPPT, Photovoltaic, Perturb and Observe. I. INTRODUCTION Photovoltaic energy is the conversion of solar energy to electrical energy through a PV cell, a non-mechanical device usually made from silicon alloys. As sunlight strikes a PV cell, it creates an electron imbalance between the front and back surfaces of the cell. Electricity occurs when these two surfaces are joined together by a conductor. Individual PV cells are electrically connected into a packaged, weather-tight module. Depending on the power output needed, modules can be further connected to form a PV array, essentially a generating plant made up of any number of modules When a solar PV module is used in a system, its operating point is decided by the load to which it is connected. Since solar radiation falling on a PV module varies throughout the day, the operating points of module also change. The maximum power produced by a solar cell change according to the solar radiation and temperature. A PV module is a non linear generator. In order to ensure the operation of PV module for maximum power transfer, a special method called Maximum Power Point Tracking (MPPT) is employed in PV systems. The maximum power tracking mechanism makes use of an algorithm and an electronic circuitry. This mechanism is based on the principle of impedance matching between load and PV module, which is necessary for maximum power transfer. This impedance matching is done by using a DC to DC converter by changing duty cycle of the switch. These converters are normally named as maximum power point trackers (MPPTs). It consists of a topology and a control circuit and a MPP seeking algorithm. The maximum power point tracking is basically a load matching problem. In order to change the input resistance of the panel to match the load resistance (by varying the duty cycle), a DC-DC converter is required. Fig 1 shows the entire block diagram of system. Voltage and current from the PV panel is measured using voltage and current measurement block and given to MPPT controller. MPPT controller generates duty ratio and gives to switch circuit in the boost converter through DAC and output obtained across the load. Some limitations of Perturb and Observe method are oscillations around the maximum power point in steady state operation and slow response speed [6]. In conventional P&O method perturbation size is a constant. Large step size leads to oscillations at the steady-state and continuous power loss, while reduction in the step size impairs the 320
Current Sensor Voltage Sensor dynamics of the converter and leads to poor utilization of solar cells [7]. To minimize it a modified P&O method is proposed here. In proposed method, initially perturbation value is more, and then reduces step size such that it approaches maximum power point. Solar Panel Power DC-DC Boost Converter Power Battery Modified P&O Based MPPT Algorithm Control via DAC Fig (1): Block diagram representation II. METHODOLOGY Maximum power point tracking (MPPT) is a technique that grid tie inverters, solar battery chargers and similar devices use to extract the maximum possible power from the PV array. Solar cells have a complex relationship between solar irradiation, temperature and total resistance that produces a non-linear output efficiency known as the I-V curve. MPPT system samples the output of the cells and applies a resistance (load) to obtain maximum power for any given environmental conditions [10]. A. Perturb and Observe Controller The algorithm perturbs the operating voltage in a given direction and samples dp/dv. If dp/dv is positive, then the algorithm knows it adjusted the voltage in the direction toward the MPP. It keeps adjusting the voltage in that direction until dp/dv is negative. The step size is dependent on the gradient of the power voltage curve [9]. Conventionally, while using the P&O technique the following equations are considered. dp P n P n 1 n = (1) dv PV V PV n V PV n 1 dp n > 0 (2) dv PV When equation (2) is true, an increase in the duty cycle of the switch of a fixed step is required, while when dp n < 0 (3) dv PV The duty cycle of the converter is decreased. The MPP of the PV module is reached when the gradient is zero. The use of a fixed increment size leads to follow slowly the MPP. For this reason, the size of the perturbation step has been chosen proportional to the gradient of the power-voltage characteristic at the previous sample. The size of the perturbation step influences the convergence speed of the MPPT control system, and also leads to less oscillation near the MPP [8]. Large step sizes intrinsically lead to fast convergence to the MPPT; however, the oscillations near the MPP are in this case large, while small step sizes give smaller oscillations. B. Modified Perturb and Observe Controller The P&O algorithm has the advantage of simple software and hardware realization. In this pioneering implementation, the reference voltage (V ref ) is perturbed in an arbitrary direction and the power levels of two consecutive samples are compared. Depending upon the sign of the power change, the direction for further perturbation is decided. A feedback control loop ensures that the output voltage tracks its reference. The following equation is followed to locate the voltage at which the MPP is reached. V (k) = V (k 1)± C (4) Where k and k 1 are the present and the previous instants and C is the constant search step. In MPPT systems, the power versus duty cycle (P D) curve also has maxima at some duty cycle D corresponding to the MPP. This result has been used for searching the MPP by changing the duty cycle according to the following equation. D (k) = D (k 1)±C (5) Large step size C in the equations leads to oscillations at the steady-state and continuous power loss, while a reduction in the step size impairs the dynamics of the converter and leads to poor utilization of the solar cells [11]. 321
V(k) and P(k) are output voltage and the power of PV which is calculated from V(k).I(k) at time k, respectively. D and ΔD denote duty ratio and change in duty ratio. To achieve faster MPPT response and more accurate MPP under dynamic environment, variable perturbation step-size, i.e. ΔD can be employed. In fact, ΔD can be selected as function of PV power as: ΔD(k)= α.β(p(k)-p(k-1)) (6) Where α is the constant value to control the movement toward the MPP and the accuracy of convergence for MPPT, β is the sign of step dependent on perturbation direction. Fig (2): Overall circuit diagram III. SIMULATION OF OVERALL SYSTEM The individual models are integrated to get the combined Simulink model of proposed scheme. Fig 3 shows the overall simulation model of MPPT algorithm. Simulation of PV panel and boost converter with current and voltage feedback using Co-simulation of MATLAB/Simulink and Psim. The power circuit implemented in Psim and the controller algorithm is simulated in MATLAB and duty ratio is given to boost converter switch in the PSIM using Simcoupler block. 322
Power (Watts) A. Simulation Results & Analysis Fig (3): Simulation model of entire system Fig. 4 shows simulation results of boost converter output voltage and current waveforms for the 36W photovoltaic panel. Fig (4): Voltage and current output of boost converter 40 30 Pmax 20 10 Modified P&O P&O 0 0 2 4 6 8 10 12 14 Response time (steps) Fig (5): Performance of two controllers Fig 5 shows the variation power with respect to response time for a 36W panel. It can be observed that the maximum power reached by P&O controller in 13 steps and modified P&O controller takes only 5 steps. Table I compares the performance of perturb and observe and modified perturb and observe controller in detail. P&O controller has some limitations like oscillation around maximum power point and slow response speed. It uses a fixed step size in the increment of duty cycle to be given to converter. The fixed step size makes the P&O to perform slowly. Table I: Comparison Results of Algorithms Algorithm Duty Ratio Max. Power (W) No. of Iterations Perturbation & Observation 0.05 35.81 13 Modified P&O 0.038 36.12 5 IV. IMPLEMENTATION A Maximum power point tracker is a DC/DC converter sets the photovoltaic module to operate at maximum power point independently from the load. Its main function is to adjust the module output voltage to a value corresponding to the maximum power deliverable to the load. The entire hardware set up is shown in Fig 6. The solar panels connected in parallel to feed the boost converter which was controlled by the duty cycle pulses from the FPGA. The output from the boost converter is fed to the battery load. The system is made of four main blocks: 323
A. Voltage and current measurement circuit B. DC/DC Boost Converter C. Controller implemented on FPGA D. Solar charge controller circuit V & I measurement Supply +12V Solar charge controller ckt. Boost converter It follows a brief description of each block A. Boost Converter Fig (6): Prototype of Designed Hardware In order to overcome the undesired effects on the output PV power and draw its maximum power, it is possible to insert a DC/DC converter between the PV generator and the batteries, which can control the seeking of the MPP, besides including the typical functions assigned to the controllers. These converters are normally named as maximum power point trackers (MPPTs). It consists of a topology and control circuit where there will be a MPP seeking algorithm. The input of DC DC converter part is formed by the PV array and the output section by the batteries and load. The maximum power point tracking is basically a load matching problem. In order to change the input resistance of the panel to match the load resistance (by varying the duty cycle), a DC to DC converter is required B. Voltage & Current Measurement Circuit Voltage from the PV panel is measured using voltage measurement circuit. It contains an Op-amp and few resistors connecting to a voltage divider. Adjusting gain of the circuit, maximum voltage is reduced to 5.1V to the input of ADC. C. Controller (Modified P&O algoritham) The control tool is the most important block of this study. The control tool allows seeking the maximum power deliverable from the PV-modules for given irradiation and temperature by adjusting the duty cycle of the converter. The modified P&O algorithm has been developed with the Very High Description Language (VHDL). The VHDL-modules have been simulated, synthesized and tested using the ISE 10.0 of XILINX and the ModelSim. A generated bitstream code has been loaded into the FPGA Spartan-3. The implemented digital 324
controller seeks the maximum power point according to the measured current (I pv ) and voltage (V pv ), while an output signal sets the duty cycle (D) of a pulse width modulation (PWM) boost converter. D. Solar Charge Controller Circuit Connecting a solar panel to a Lead-acid battery, it is usually necessary to use a charge controller circuit to prevent the battery from overcharging. The circuit used in this paper was a shunt-mode charge controller. In a shunt-mode circuit, the solar panel is permanently connected to the battery via a series diode. When the solar panel charges the battery up to the desired full voltage, the shunt circuit connects a resistive load across the battery to absorb the excess power from the solar panel. The main advantage of shunt-mode solar regulation is the lack of a switching transistor in the power path between the PV panel and battery. V. CONCLUSION AND FUTURE ACTION In this work, P&O algorithm and modified P&O algorithm has been implemented on a FPGA for extracting maximum power point of a photovoltaic system. A low cost hardware prototype has been developed & tested. Prototype includes DC/DC Converter, current and voltage measurement, ADC converter circuit. The efficiency of modified P&O based controller is more than P&O controller is compared using perturbation steps. In future, a suitable controller for rapid variation of climate conditions will be implemented. REFERENCES [1] A. S. Masoum, H. Dehbonei, and E. F. Fuchs, Theoretical and Experimental Analyses of Photovoltaic Systems with voltage and current based maximum power point tracking, IEEE Trans. on Energy Conversion, vol. 17, pp. 514-522,Dec. 2002 [2] N. Femia, G. Petrone, G. Spagnuolo, and M. Vitelli, Optimization of Perturb and Observe Maximum Power Point Tracking Method, IEEE Transactions On Power Electronics, vol.20, pp. 963-973, July 2005 [3] Issam Houssamo, Fabrice Locment, and Maneula Sechilariu, Maximum Power Tracking for Photovoltaic Power Systems: Development and Experimental Comparison of Two Algorithms, Elsevier- Renewable energy, vol. 35, pp. 2381-2387, April 2010 [4] D. P. Hohm, and M. E. Ropp, Comparative Study of Maximum Power Point Tracking Algorithms, Progress in Photovoltaics : Res. Appl., vol. 11, pp. 47-62, Nov. 2002 [5] Marcelo Gradella Villalva, Jonas Rafael Gazoli, and Ernesto Ruppert Filho, Comprehensive Approach to Modeling and Simulation of Photovoltaic Arrays, IEEE Transactions on Power Elect., vol. 24, pp. 1198-1208, April 2009 [6] Chokri Ben Salah, and Mohamed Ouali, Comparison of fuzzy logic and neural network in maximum power point tracker for PV systems, Elsevier- Electric Power Systems Research, vol. 81, pp. 43-50, Jan. 2011 [7] L. Zhang, and Yun Fei Bai, Genetic Algorithm-Trained Radial Basis Function Neural Networks for Modelling Photovoltaic Panels, Elsevier- Engineering Applications of Artificial Intelligence, vol. 18, pp. 833-844, Oct. 2005 [8] Y. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, Electron spectroscopy studies on magneto-optical media and plastic substrate interface, IEEE Transl. J. Magn. Japan, vol. 2, pp. 740-741 [9] Ashish Pandey, Nivedita Dasgupta, and Ashok Kumar Mukerjee, High Performance Algorithms for Drift Avoidance and Fast Tracking in Solar MPPT System, IEEE Trans. on Energy Convers. vol. 23, pp. 681-689, April 2008 [10] F. Chekired, C. Larbes, D.Rekioua, and F.Haddad, Implementation of MPPT Fuzzy Controller for Photovoltaic Systems on FPGA Circuit, Elsevier- Energy Procedia, vol. 6, pp. 541-549, June 2011 [11] Koutroulis, Eftichios, Kostas Kalaitzakis, and Vasileios Tzitzilonis. "Development of an FPGA-based system for realtime simulation of photovoltaic modules," Microelectronics Journal 40.7, 2009, pp. 1094-1102. AUTHOR BIOGRAPHY Justin Baby received his B-Tech degree in Electrical & Electronics Engineering from Adi Shankara Institute of Engineering & Technology Kalady, MG University, Kerala, India in 2007. He obtained M-Tech in Power Electronics and Drives from Karunya University, Coimbatore, Tamil 325
Nadu, India. He has published various papers in international journals and conferences. He is a member of ISRD (UK) and also in International Association of Engineers (IAENG). Jibin M Varghese received his graduate degree in Electronics & Communication from College of Engineering, Perumon, CUSAT, India. He obtained M-Tech in Power Electronics and Drives from Karunya University, Coimbatore, Tamil Nadu, and India. Presently he is working as an Assistant Professor in ECE Department, UKF College of Engineering & Technology, Parippally, India. 326