#### Abstract

Fluctuating photovoltaic (PV) output power reduces the reliability in power system when there is a massive penetration of PV generators. Energy storage systems that are connected to the PV generators using bidirectional isolated dc-dc converter can be utilized for compensating the fluctuating PV power. This paper presents a grid connected energy storage system based on a 2 kW full-bridge bidirectional isolated dc-dc converter and a PWM converter for PV output power leveling. This paper proposes two controllers: a current controller using the d-q synchronous reference and a phase-shift controller. The main function of the current controller is to regulate the voltage at the high-side dc, so that the voltage ratio of the high-voltage side (HVS) with low-voltage side (LVS) is equal to the transformer turns ratio. The phase-shift controller is employed to manage the charging and discharging modes of the battery based on PV output power and battery voltage. With the proposed system, unity power factor and efficient active power injection are achieved. The feasibility of the proposed control system is investigated using PSCAD simulation.

#### 1. Introduction

Many countries are implementing PV solar panels as they are a clean and sustainable source to meet their power demands. However, the grid connected PV unit without energy storage unit can affect the utility grid in a negative manner due to the intermittent nature of PV. In order to solve this problem, integration of energy storage system to level the output power of PV is necessary [1–4].

There are many types of energy storage systems such as superconducting magnetic energy storage, flywheel, capacitor, battery, and pump hydrostorage. The battery energy storage device is modular, making it easy to be connected close to the point of load and the PV generators. Li-ion batteries have high energy density and are being increasingly used in battery connected PV systems [5]. However, as long as it is employed for PV application, an efficient bidirectional system is required to perform the charging and discharging of the batteries.

Various configuration of a bidirectional isolated dc-dc converter has been investigated in [6]. Bidirectional dc-dc converter can be categorized as isolated and nonisolated topologies. Although an isolated converter is more complicated and expensive than a nonisolated converter, it benefits the system safety, reliability, and flexibility. In addition, the full-bridge topology has a high efficiency, while providing minimum switching loss, improved EMI, and galvanic isolation for energy storage systems. It is also preferred due to its minimal voltage and current stress in high-power applications [7–9]. The bidirectional full-bridge isolated dc-dc converter is a reliable system with high efficiency for PV applications in order to remove probable fluctuations and stabilize the PV output.

As Figure 1 shows, typically, a battery energy storage system (BESS) consists of a battery bank, a bidirectional full-bridge isolated dc-dc converter, and a grid connected PWM converter. In addition to the power circuit of the converters, a reliable control system is required for two main purposes. Firstly, it is to manage the power flow in both directions, achieving charging and discharging modes of the battery. Secondly, it is to adjust the voltage of HVS with respect to the voltage of LVS of the converter so that the voltage ratio of the HVS with LVS is close to the transformer turns ratio [10]. The voltage adjustment is necessary to decrease the peak switching current and the turn-off overvoltage across the semiconductor switches.

A 6 kW bidirectional isolated dc-dc converter connecting a Li-ion battery bank to the utility grid via a PWM converter has been presented in [10, 11]. The paper in [11] mitigated the effects of the dc-bias currents in the high frequency transformer through the design of an air gap in the transformer. The control method employed is feed-forward phase-shift modulation with no online voltage regulation of the HVS. Hence, the voltage ratio of the HVS with LVS was manually controlled so that it is close to the transformer turns ratio.

This paper focuses on the overall control of the BESS which includes the controls of the bidirectional isolated dc-dc converter and the PWM converter. This paper proposes two controllers for the BESS. The first part is a feedback controller that regulates the voltage of HVS DC capacitor based on the battery bank voltage and the second part determines the direction and the amount of the required BESS power based on the PV output power and battery bank voltage. Accordingly, while the 2 kW bidirectional isolated dc-dc converter operates to regulate the power at the PCC, the proposed control system continuously adjusts the voltages of HVS so that the voltage ratio of the HVS with LVS is close to the transformer turns ratio, resulting in increasing the converter efficiency. This paper verifies the proposed BESS for the application of PV output power leveling via simulation in PSCAD.

#### 2. Power Circuit Configuration

Figure 2 shows the battery bank connected at the low-voltage side (LVS) of the 2 kW dc-dc converter. The PWM converter interfaces the high-voltage side (HVS) of the dc-dc converter with the utility grid at the PCC via the switching ripple filters and AC inductors. A 20 kHz high frequency transformer with a turns ratio of 6 : 1 is utilized as it is small in size and light in weight. It also provides galvanic isolation to ensure system safety and reliability. The circuit configuration is similar to that in [10]. However, this paper investigates the feasibility of the system in PV output power leveling via the proposed control system.

Table 1 summarizes the parameters of the circuit in Figure 2. The operating voltage of the battery, , is set between 50 V and 60 V and at the high-voltage side, is regulated between 300 V and 360 V to maintain the ratio of HVS and LVS close to the transformer turns ratio. The rated voltage of 60 V is selected taking into consideration user safety. The minimum voltage of 60 V is based on the specification of Li-ion battery available. The BESS is sized for active power injection at the PCC of up to 2 kW. The power transfer, , of the bidirectional isolated dc-dc converter can easily be controlled by adjusting the phase-shift angle between two AC voltages and as expressed as [12] where is the high-side voltage, is the battery voltage at the low-voltage side, is the angular switching frequency, and is the sum of the transformer leakage and auxiliary inductance referred to as the high-voltage side. In a practical system, the leakage inductance of the high-frequency transformer should be minimized to prevent the so-called spot heating on the transformer. In the simulation system, the leakage inductance of the transformer is neglected.

A start-up circuit, consisting of four circuit breakers, is employed to prevent a large inrush current flow into the dc capacitors, which will result in saturating the AC inductors in a practical system. Therefore, the start-up procedure is employed to charge capacitors and through 5 Ω and 20 Ω resistors connected on the utility and battery sides, respectively.

#### 3. Overall Control System

Figure 3 presents the proposed overall control system. The proposed control system regulates the injected power at the PCC to be at 2 kW. The current control technique has been employed to regulate the voltage across dc-link capacitor . Three-phase - axis transformation control strategy is employed to regulate the capacitor voltage of the PWM converter, , based on the battery voltage . In fact, this system monitors and keeps at a level where the voltage ratio between and is close to the transformer turns ratio. On the other hand, the phase shift controller considers output power of PV, , to determine the desired output power from the BESS such that where in this paper kW. The controller also considers the battery voltage, , and the HVS capacitor voltage, . Then it calculates the new phase shift angle, , needed to level the PV output power through battery charging or discharging. Note that for the purpose of simulation, the PV output power is assumed and the modelling of PV generation system is outside the scope of this paper.

Figure 4 shows the verification flow chart of the power management system of the phase-shift controller in the battery energy storage system. The amount of active power required to compensate the PV output power is calculated by the phase-shift controller. Three PV output power conditions are considered during the operation of the proposed control system. In the first condition, the output power of PV is less than 2 kW. The controller checks the battery voltage to be between 50 V and 60 V (). Then the BESS operates in the discharging mode to compensate for the reduced PV output power. In the second condition, the output power of PV is 2 kW. In this case BESS goes to standby mode by changing the phase shift to zero. In the third condition, the output power of PV is more than 2 kW. The controller checks the battery voltage to be less than 60 V ( V). Then the BESS is charged to absorb the surplus power of PV. As shown in Figure 4, there are two other conditions where the BESS goes on standby mode:(i)when the battery voltage is less than 50 V and the is less than 2 kW,(ii)when the battery voltage is more than 60 V and the is more than 2 kW.This is to protect the Li-ion battery bank from being overcharged and over discharged [13]. Apart from putting the BESS on standby, the excess power of PV can be discharged through a dump load [14].

##### 3.1. Control Algorithm of PWM Converter

Figure 5 illustrates the equivalent circuit of PWM converter and grid. The proposed control system regulates the three phase currents, , , and to achieve unity power factor and to regulate the dc-link voltage at the PWM converter. A PLL has been employed for providing the grid phase angle information, . The PLL provides fast and accurate synchronization information with a high degree of immunity and insensitivity to disturbances, harmonics, unbalances, sags/swells, notches, and other types of distortions in the input signal. An accurate estimation of utility phase angle is critical for maintaining the power quality at the PCC. The Kirchhoff voltage law (KVL) can be applied to Figure 5, and the three-phase KVL equation is expressed as where is the three-phase voltage at the PCC, () is the total per phase series inductance, and is the three-phase output voltage of the PWM converter. The supply voltage can be defined as where is the magnitude of the voltage at the PCC, is the phase angle, and is for a balanced three-phase system. The proposed control system is based on the - transformation method. The and components of the three-phase current , , and are obtained using Park’s transformation through the transformation matrix, The inverse of the Park’s transformation matrix is defined as Using (5) and (6), equation (3) can be rewritten as In a balance system, the zero sequence component is equivalent to zero and can be omitted, resulting in Equation (8) can be divided into The steady-state condition is achieved when the derivative terms of and are equal to zero. Then and can be obtained as Equations (10) are implemented as part of the control in Figure 6. The goal of the control system is to regulate the voltage of HVS dc-link capacitor, , by controlling the line currents, , , and . To generate the reference direct component of current, , the instantaneous battery voltage is multiplied by the transformer turns ratio and is compared with the HVS capacitor voltage . Then the error is passed through a proportional-integral controller, . Therefore, the reference direct component of current is calculated as The quadrature reference current, is set at zero to avoid any reactive power transfer. These two references are compared with the actual values of and and the differences are passed through two PI controllers, and . The outputs of PI controllers are added with measured and , based on (10) for achieving and . The proportional-integral controllers and transform the errors from the comparisons of - components of current into voltage value as where is the measured magnitude of the grid voltage and is almost zero. The gain from is considered to provide the decoupling terms. The parameters and are tuned by trial and error method. Table 2 presents the parameter of each PI controller. Finally, the dq reference voltages are transformed to , , and which are the sinusoidal reference voltages of the PWM generator.

##### 3.2. Control Algorithm of the Bidirectional Isolated dc-dc Converter

Figure 7 shows the control system of the bidirectional isolated dc-dc converter. The battery is charged or discharged through the bidirectional isolated dc-dc converter connected to the PWM converter. Based on this concept, the control system determines the desired BESS power as in (2) in order to regulate the injected power at the PCC at 2 kW as the PV output power varies. The battery power is assumed to be equal to the power transfer . The measured values of , , and are employed to compute the phase-shift angle for the required battery charging power as and the phase-shift angle for the required battery discharging power as In the phase-shift controller block, it generates 8 gate signals for the gate driver. The gate driver amplifies the signals and sends it to the full bridge converter.

##### 3.3. Simulation Method

A simulation model with the control system is built using PSCAD based on Figures 2 and 3. The circuit parameters and gains in Tables 1 and 2 are used, respectively. The rated output power of the BESS is 2 kW, for a PV generation system rated at 2 kW. The rms voltage of the grid is 200 V and its rated frequency is 50 Hz. The switching frequency of the PWM converter is 10 kHz and for the bidirectional isolated dc-dc converter it is 20 kHz. The simulation duration is 3.5 s and the time step is 0.3 *μ*s.

Table 3 shows the operating sequence of the circuit breakers during startup. When the charging or discharging mode begins, the startup control circuit closes circuit breakers 1 and 4. The voltage across the high-voltage capacitor, , increases and stabilizes at 270 V causing circuit breaker 2 to operate. Then, the control system starts to regulate to 360 V, provided that the battery voltage is 60 V. As soon as is adjusted at 360 V, circuit breaker 3 will be closed and the BESS will operate as per the requirement of the system.

#### 4. Simulation Waveforms

Figure 8 illustrates the battery voltage at 60 V, 55 V, and 50 V. Figure 9 shows that the capacitor voltage is regulated to 360 V, 330 V, and 300 V to correspond to the change in the battery voltage. The initial voltage of is 270 V because of the start-up sequence. The total duration for the start-up sequence to charge from 0 to 270 V is 1.17 s. The start-up sequence only occurs once at the beginning. When the BESS is in the standby mode, no start-up sequence is required.

Figure 10 illustrates the operation of the BESS with varying PV output power. The simulation assumes that the battery voltage is constant at 60 V and subsequently voltage is regulated at 360 V by operation of the control system. The output power of is 2 kW at s. The BESS start-up circuit operates and the voltage of HVS capacitor is regulated to 360 V in 1.17 s. Therefore, the output power from the BESS is equal to zero in this period. At s kW, phase-shift angle is increased from 0 to 0.214 rad, so that kW to mitigate the power at the to 2 kW. At s, the PV is not injecting any power and phase-shift angle is increased to 0.469 rad. Therefore, the BESS transfers 2 kW to the PCC.

**(a)**

**(b)**

**(c)**

**(d)**

**(e)**

**(f)**

**(g)**

Figure 11 illustrates the operation of the BESS during changes of the solar output power. Four step changes have been employed. The battery voltage is assumed to be constant at 55 V. The BESS provides 1 kW from s to s. The BESS transfers 2 kW from s to s, between s and s, it transfers 1.5 kW, and between s and s it provides 1 kW to level the PV output power at the PCC.

**(a)**

**(b)**

**(c)**

**(d)**

Figure 12 presents the operation of the BESS during both charging and discharging modes. The simulation assumes that the battery voltage is constant at 55 V. Between s and s, the PV is producing kW. The controller of the BESS detects the power which is less than 2 kW. Therefore, the BESS operates to discharge the battery by changing from 0 to 0.259 rad, so that the BESS discharges power of 1 kW and mitigates the power at the to 2 kW. Between s and s, the output of PV increases to 3 kW. In this mode, the control system detects the output of PV that exceeded 2 kW and battery voltage which is less than 60 V. Therefore, it changes the direction of power and charges the battery bank. So that kW to mitigate the power at the to 2 kW. When the battery voltage is 60 V, the BESS will go on standby mode.

**(a)**

**(b)**

**(c)**

**(d)**

**(e)**

**(f)**

**(g)**

**(h)**

Figure 13(a) presents the three phase AC current during the operation of the control system. Figure 13(b) shows the transient of the AC current. The transient lasted for 110 ms and the peak of the transient current is 10 A. Figure 13(c) shows the AC output voltage of the BESS. The THD of voltage during charging of the is around 0.7% and during the discharging operation of the dc-dc converter the THD it is negligible.

**(a)**

**(b)**

**(c)**

Figure 14 shows the AC voltage and AC current during the operation of the BESS at the rated power 2 kW and battery voltage 60 V. The synchronized voltage and current waveforms show that the power factor is unity. As explained in Section 3, the control system converges to zero. Therefore, the system works with unity power factor.

Figure 15 shows the AC voltage and current waveforms at the HVS and LVS of the transformer when the power transfer is changed from 1 kW to 2 kW. There are changes to the phase-shift angles from 0.214 rad to 0.504 rad during the change in power transfer requirement. The input and output voltages of transformer are close to the transformer turns ratio. Figure 15(c) shows flat top current. It reduces the rate of change of currents and over the time interval of conduction. Thus, this will minimize the peak switching current which causes a higher switch turn-off overvoltage and improve converter efficiency.

**(a)**

**(b)**

**(c)**

**(d)**

#### 5. Conclusion

The proposed controller that regulates the HVS dc-link capacitor voltage is successful in ensuring that the voltage ratio between the HVS and LVS is close to the transformer turns ratio. This strategy increases the efficiency of the system by minimising the switching current in the dc-dc converter. Unity power factor is also achieved during battery charging and discharging at the utility side. The feasibility of the controller in injecting the required power at the PCC to level the PV output power has been verified via simulation.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgment

The authors wish to acknowledge the financial support for this project from the Ministry of Higher Education (MOHE) of Malaysia under the Fundamental Research Grant Scheme (FRGS), project number FRGS/1/2012/TK07/UNITEN/02/11.