Chopper ‐ Based Control Circuit for BESS Integration in Solar PV Grids

: The power delivered by photovoltaic (PV) arrays is dependent on environmental factors, and hence the availability and quality of power delivered by the PV array is low. These issues can be mitigated by integrating a battery energy storage system (BESS) with PV arrays. The integration of the BESS with PV arrays requires controller circuits to regulate power flow between the BESS, PV array, and the load. In this paper, a boost converter ‐ based controller is proposed. The proposed controller has higher reliability and efficiency, and lower operational complexity. It improves the power quality and availability by adjusting the power flow to/from the BESS while delivering the required load power. A simulation study was performed to validate the proposed controller under varying irradiance and temperature of the PV array. The controller was validated against both lithium ‐ ion and lead ‐ acid BESSs.


Introduction
The high energy demand and pollution awareness has led to the need for green energy systems [1]. As a result, a lot of focus has been on using renewable energy sources. Solar power and the use of PV arrays have emerged as a promising technology due to the abundant availability of solar energy. This has paved the way for small and medium-sized PV grids operating in remote locations. Integration of PV array is a great challenge and is not like conventional power plants [2]. The use of PV arrays has some major challenges, as follows:  They are non-dispatchable;  Uncertainty of generation time;  Low availability and power quality.
The power delivered by a PV grid is subject to environmental factors. The power delivered may change based on the amount of irradiance received by the PV panels and the temperature of the PV modules. These types of power sources which generate power but cannot deliver power in a reliable manner are called non-dispatchable power sources. Solar energy is not available during night; therefore, the availability of a conventional PV grid is very small. In order to improve this, a hybrid solar PV grid [3] with a battery energy storage system (BESS) is used. This increases the efficiency of the grid in terms of availability and power quality. Non-dispatchable resources are converted to dispatchable energy sources by integrating them with an energy storage system [4]. The standalone PV array grids in conjunction with integrated energy storage systems can play an important role in power delivery to isolated areas far away from distribution systems [5]. The annual operating cost of the hybrid PV grid has decreased due to reductions in the cost of the batteries. This has led to a wider adoption of PV arrays with BESSs in standalone off-grid peak power delivery systems [6][7][8][9][10][11][12]. BESSs, along with PV arrays, are needed to reduce power disturbances in the system, for providing continuous power to the load, and for improving utilization factors of the system.
The integration of a BESS to a grid requires a controller to regulate the power flow between the PV grids, the BESS, and the connected load. In previous works, controllers for integrating the batteries with PV arrays have used multiple H bridges [13]. The power generated from the PV array is converted to AC, and then if excess power is generated, AC to DC converters is used to charge the batteries [14]. The AC-DC converters need complex gating signals and introduce harmonics in the output power, thus reducing the power quality. Capacitor banks are used to filter these harmonics and improve the power quality [15]. Due to the large number of components used in these converters, there are multiple points of failure, resulting in reduced reliability. In the conventional approach [16], the DC power is converted to AC and then back to DC, resulting in a loss of power due to dissipation in the conversion process. In this paper, a chopper-based control circuit is proposed to integrate the BESS with a standalone PV grid [17]. The proposed controller operates on the DC side of the PV grid and directly taps into the DC power generated by the PV array. Thus, a simpler DC-DC converter is sufficient to control the power flow to/from the BESS [18]. Due to reductions in the number of components and a simpler gating signal requirement, the proposed controller has a higher efficiency and reliability, and lower operational complexity. The proposed controller implements a closed loop control circuit to regulate the power flow between the BESS and PV array and maintain steady output power, even when the power generated by the PV array varies due to variation in irradiance [19,20]. Most of smart grids and micro grids use lithium-ion and lead-acid batteries in the BESS [21][22][23][24]. The proposed controller was validated by performing a simulation study using both a lithium-ion and lead-acid BESS [25,26].
The paper is organized in the following manner. The proposed controller is discussed in Section 2. A description of the simulation circuit and its components are given in Section 3. The simulation scenarios are discussed in Section 4. The simulation results and observations are discussed in Section 5. The conclusion is given in Section 6.

Proposed Controller
The diagram below in Figure 1 shows the proposed controller which consists of boost converter, Insulated-gate bipolar transistor (IGBT) switch, Proportional Integral (PI) controller, Comparator and Duty Cycle Generator. The value of the output power delivered on the load side is used as feedback to the discharge controller. The feedback signal is then compared with the set reference value and a control signal is generated. Using the control signal generated from the comparator, the PI controller generates a duty cycle value. This value is fed to the duty cycle generator, which in turn is fed to the IGBT switch of the boost converter. Based on the duty cycle of the IGBT switch, the boost converter changes the output power delivered to the load side. The accuracy of the corrective action taken depends on the tuning parameters and the type of controller used to generate the duty cycle.
The proposed controller can further be enhanced by using a proportional-integralderivative (PID) controller instead of using a PI controller. A PI controller is used because it is easy to tune and will sufficiently demonstrate the proof of concept.

Operating Range of Controller
The operating range of the proposed controller is directly related to the operational range of the boost converter being used. The operating voltage of the boost converter should be chosen in such a way that it matches the input voltage variation and provide the required output voltage.
The input voltage variation is dependent on the type of batteries used in the battery bank and the maximum depth of discharge (DOD) until which the battery is used. For example, the voltage variations of lead-acid batteries are greater when compared to lithium-ion batteries, so if this controller needs to be used with lead-acid battery banks then a converter with a wider operating range will have to be selected, resulting in higher costs.
The input and output voltage relationship of a boost converter is given by Equation (1) as:

Simulation Model of Photovoltaic Grid System with Battery Integration Using a Controller
In this section, a detailed description of the simulation model of a PV grid system with a battery is introduced. The simulation model was constructed using Simulink blocks in the MATLAB R2018b environment.

Description of Simulation Model and Its Components
The detailed PV system configuration and system description block diagram are shown in Figure 2. Power delivered by the 100 kW PV array is channeled through a DC-DC boost converter which is connected to a three-phase, three-level voltage source converter (VSC). A three-phase three-level VSC feeds into a coupling transformer used to deliver power to a 25 kV grid. The algorithm employed in maximum power point tracking (MPPT) is "Incremental Conductance + Integral Regulator" [6]. A total of 330 Sun Power (San Jose, CA, USA) modules (SPR-305E-WHT-D) were used in the 100 kW PV array. Five modules were connected in series making a string; 66 such strings were connected in parallel. The solar cell equivalent circuit is shown in Figure  3. Solar cell characteristics are given by Equation (2). The selection of PV array ratings is given in Table 1.

PV Array Ratings 330 Sun Power Modules (SPR-305E-WHT-D) Remarks
Rating of PV Array 100 kW The DC link voltage is stepped up by a DC-DC boost converter which is connected to the PV array. Boost converters' suitable switching regulates the PV voltage for maximum average PV array power output. PV array operational voltage at a given irradiation condition varies with the PV power flow. The inverter and boost converter are connected by using the DC link in between them.
The solar irradiance (W/m 2 ) and temperature (°C) were the two inputs given to the block PV array. The block of the signal builder in Simulink library was used to set the input values for PV array solar irradiance and temperature.  DC-DC boost converter: At maximum power, PV output voltage was 273 V DC, which increased to 500 V DC by a DC-DC boost converter of 5 kHz. The optimization of the switching duty cycle was performed by a maximum power point tracking (MPPT) controller by using the "Incremental Conductance + Integral Regulator" algorithm. The duty cycle is automatically varied by the MPPT system to provide the voltage required to take out maximum power;  Three-level three-phase VSC: The simulation circuit and working details of the VSC are presented elsewhere. The output voltage of boost converter was converted from 500 V DC to 260 V AC, and the power factor of unity was maintained by the VSC. VSC uses a switching frequency of 1980 Hz;  Capacitor bank:VSC harmonics are filtered by DC link capacitors;  Three-phase coupling transformer: Three-phase coupling transfer of rating 100 kVA 260 V/25 kV was used for stepping-up the VSC output voltage of 260 V AC to 25 kV AC;  Utility grid: The utility grid consisted of a 25 kV distribution feeder and a 120 kV equivalent transmission system;  The battery bank and charge/discharge controllers are discussed in separate sections.

Battery Bank Description
Four batteries of either lead-acid or lithium-ion type were connected in parallel to form a battery bank. The PV array was connected to the boost converter and maintained 500 V at coupling capacitor. The voltage across coupling capacitors is marked as Vdc in Figure 2. For the batteries to maintain the same voltage at coupling capacitors, the battery Simulink block voltage parameter was set to 582.5 V. Demand of the utility grid was 100 kW. Minimum voltage to be maintained at coupling capacitor had to match the voltage generated by the PV array, i.e., 500 V. Many battery models are available in the literature [27][28][29][30][31][32][33][34][35][36][37][38][39] but not all of them can be used in simulation because of algebraic loop problem. A generic battery model from the MATLAB SimPower Systems library with appropriate parameters was used for analyzing battery charging and discharging performance [40]. The selection of battery ratings is given in Table 2.

Reference Equations of the Generic Battery Model
For the lead-acid battery type, the model uses these equations: The discharge model ( * 0 is given in Equation (3) [40].
For the lithium-ion battery type, the model uses these equations: The discharge model ( * 0 is given in Equation (5) [40].
Equation (7) shows the simple dynamic battery model which consisted of a controlled-voltage source (E), which was the battery open-circuit voltage and battery variable internal resistance ( ). The discharge-controlled voltage is given in Equation (8) [40].
The maximum battery energy extracted is represented by in Equation (9) [41].
The Simulink diagram of the generic battery model is shown in Figure 4.

Charge/Discharge Controller
The power generated by the PV array depends on environmental factors; due to this, the energy delivered or absorbed by the battery has to be constantly throttled to maintain constant power delivery on the load side. For this purpose, charge and discharge controllers are used.

Simulation Scenarios
Two scenarios were simulated to analyze the discharging and charging performance of the batteries while using the proposed controller.
Scenario 1: In this scenario, the PV array was initially supplying power of 98.72 kW to utility grid. At t = 1 s, solar irradiation was brought down from 1000 W/m 2 to 250 W/m 2 . A battery bank as connected to the PV array to supply power to the utility grid. This scenario simulates a situation in which the PV array is not able to meet utility grid load demand due to cloudiness in the sky. It is expected that under such circumstances, the additional power demand is met by the battery bank. The controller used starts extracting power from the battery bank and supplies the required load power. The proposed controller was connected to the simulation circuit as shown in Figure 5. The controller operation of the Figure 5 is shown in Section 2. The controller circuit comprises a boost converter, PI controller, duty cycle generator, and a comparator. The value of the output power delivered to the load was used as feedback to the controller. The feedback signal is then compared with the set reference value, and a control signal is generated. Using the control signal generated from the comparator, the PI controller generates a duty cycle value. This value is fed to the duty cycle generator which in turn is fed to the IGBT switch of the boost converter. Based on the duty cycle of the IGBT switch, the boost converter changes the output power delivered to the load side. The controller can be further enhanced by using a PID controller instead of using a PI controller. The details of the working and the changes taking place in the simulation circuit are as follows.
The simulation circuit DC link capacitors were charged by boosting the PV voltage above 500 V. Voltage across DC link capacitors was used to drive the voltage source inverter which acted as a three-phase rectifier. Boost and VSC circuits were activated at t = 0.05 s. The voltage of Vdc = 500 V at the DC link was maintained. The duty cycle applied to the boost converter was 0.5. Initially, at t = 0.05 s, only the PV Array was catering to the power demand of the utility grid. When solar irradiance fell from 1000 W/m 2 to 250 W/m 2 at t = 1 s, as shown in Figure 6, the PV array was unable to support the power demand alone; then, power from the battery energy storage bank was drawn to compensate for the shortage of the power delivered by the PV array. At t = 1.2 s, the steady-state was reached. The temperature of the PV array has been varied from 25 °C to 50 °C. The effect of this can be seen in the form of a dip in output power around t = 2 s. Output power of the PV array at t = 0.05 s + was Pmean = 96 kW. The MPPT was enabled at t = 0.4 s. The MPPT regulator started regulating PV voltage by varying the duty cycle to extract maximum power. From t = 1 s to t = 12 s, the batteries started delivering power to the utility grid. The input values were given to the PV array by the signal builder block. The battery banks were discharged while maintaining constant power output to the utility grid.
Scenario 2: In this scenario, initially (at t = 0 s), the PV array alone was catering to the utility grid power demand. The input values were given to the PV array by the signal builder block. The battery banks were charged while maintaining constant power output to the utility grid. This scenario demonstrates charging of the battery banks when excess power is delivered to utility grid while maintaining constant load power. The proposed controller was connected to the simulation circuit as shown in Figure 7. The controller operation of Figure 7 is given in Section 2. The boost converter in the circuit boosts the voltage from the grid to charge the battery bank when excess power is produced from the PV grid. In the case of this controller, the reference signals given to the comparator are reversed. When the power delivered to the load increases, the comparator produces a negative feedback signal, resulting in lower duty cycles to stop delivering power to the grid and start consuming the power from the grid. The excess power from the grid is stored in the battery bank. When solar irradiance increased from 1000 W/m 2 to 1200 W/m 2 at t = 1 s and from 1200 W/m 2 to 1400 W/m 2 at t = 4 s, as shown in Figure 8, the excess power generated by the PV array was used to charge the battery bank.  Step-up solar irradiance and temperature.

Comparison of Discharging with and without the Controller
The graphs in Figure 9 show the discharge parameters of the battery without using the grid controller. As can be seen from the graphs, the power delivered gradually decreased as time elapsed. The decrease in power is due to the decrease in battery voltage as it discharges.

Time (s) Time (s)
Time (s) Figure 9. Battery discharging voltage, discharge current, battery state of charge (SOC), and utility grid power at 40% of SOC without discharge controller.
When comparing this with the graphs with the controller, as shown in Figure 10, it can clearly be seen that the output power is more stable and does not taper off as the voltage decreases.

Voltage (V) Current (A) SOC (%)
Utility Grid Power P (kW) Figure 10. Battery discharging voltage, current, SOC, and utility grid power comparison at 80% of SOC with discharge controller.

Recovery Time of Discharge Controller
As detailed in scenario 1, there was a decrease in irradiance of PV array at t = 1 s and increase in temperature of the PV array at t = 2 s, both of which caused a reduction in power delivered by the PV array. Because of this, a dip can be seen in the power delivered at both t = 1 s and t = 2 s, approximately. The output power reached its set limit and stabilized at about 3 s. It took about one second for the controller to restore the output load power to set power, i.e., the controller had a recovery time of 1 s. The recovery time of one second is quite large, but it could be reduced by using a PID controller instead of a PI controller and by tuning the control parameters more precisely.

Comparison of Charging with and without the Controller
The graphs in Figures 11 and 12 show the charging parameters with and without using the proposed controller. When not using the controller, the excess power generated by the PV array due to an increase in irradiance was directly passed on to the grid, leading to a higher grid power delivery than needed. Even though the battery was connected to the grid, it had considerable control on how much power to send to the battery bank. The amount of power delivered to the grid was approximately 146-150 KW when not using the controller, as shown in Figure 11.
Utility Grid Power P (kW) Figure 11. Battery charging voltage, battery charging current, battery SOCs, and utility grid power at 20% SOCs of batteries without the charge controller. When using the controller, it can be seen from the graphs in Figure 12 that the power on the load side was maintained at the set level, and the excess power was sent into the battery bank. It has a lot of control on how much power needs to be sent to the battery bank. As the power delivered to the grid increases and rises higher than the set point, the controller then receives a negative feedback and it starts transferring the excess power to the battery bank and maintains the power at the required level.

Recovery Time of Charge Controller
The irradiance to the PV array increased at t = 1 s and at t = 4 s. The corresponding increase in output power can be seen at those times in the graph (Figure 12). The load power increased, but returned to the set point. The recovery time, or the time it takes to recover from the disturbance, was approximately 1 s. The recovery time could be improved by making the controller more sensitive.

Improving the Quality of the Output Power
The output power shown in Figure 13 had some amount of jitter. This jitter can be reduced by using output capacitors. The recovery time of the controller was about 1 s. These performance characteristics could be improved by replacing the PI controller with a PID controller and increasing the gain in the control parameters. Increase in gain will result in a greater corrective effect applied when the output deviates from the set reference. However, too much gain can make the controller unstable and result in more jitter. A PI controller would be used to reduce the tuning effort. Tuning a PID controller manually is difficult because there is a need to tune one or more parameters using a trialand-error method. Figure 13. Battery discharging voltage, current, SOC, and utility grid power comparison at 40% of SOC with discharge controller.

Performance Range of Controllers
The graphs in Figures 13 and 14 show the discharge parameters of the PV grid at various levels of battery charge, or SOC. The controller is able to compensate for the reduction in battery voltage at 40% SOC and 20% SOC in the case of the lithium-ion battery bank, but fails to compensate in the case of the lead-acid battery. This is because the variation in voltage has crossed the threshold beyond which the corrective action of the controller is ineffective. Similarly, in the case of the charge controller at 79% SOC, it can be seen in Figure 15 that it cannot direct as much power as it can when the batteries are at 20% SOC. There is a limit to the amount of power that can be pushed into the battery bank, and it reduces with the increase in the terminal voltage of the batteries. The terminal voltage of the battery at various levels of SOC is different for different type of batteries. For example, lead-acid batteries have higher voltages than lithium-ion batteries at SOCs higher than 80%; therefore, it is more difficult to transfer power to lead-acid batteries at higher SOCs. The voltage range within which the controller can maintain the output power depends on the amount of minimum and maximum voltage generated by the boost converter. The boost converter has to be designed to match the operating voltage range of the battery bank being used.

Conclusions
Conventional PV array grids have low availability and low power quality due to the variation in environmental factors. Integration of the proposed controller improves the power quality by compensating for the variation in the power generated by the PV grid. The results from the simulation study show that it is capable of operating effectively at various SOC conditions of the BESS and handles both charging and discharging scenarios effectively. The proposed controller does not require a complex gating signal generator and is easy to design when compared to rectifier-based controllers. There can be further improvements to the controllers, such as taking the battery temperature into account, and using a better feedback controller, i.e., a PID instead of a PI controller. Extracted capacity (Ah) Ebatt Nonlinear voltage (V)