Research on Power Quality Optimization Control of Microgrids with Hybrid Battery Energy Storage

As a necessity for the rapid development of human society, the demand for electric energy is increasing day by day. However, the shortage of electric energy occurs from time to time. At this time, the microgrid has become an important supplement to the large power grid. Microgrids integrate distributed generators, energy storage systems, power conversion devices, monitoring devices, protection devices, and loads, forming a small power grid with self-monitoring and energy dispatch capabilities. Meanwhile, microgrids can also further utilize distributed renewable energy sources. Due to the power supply characteristics of the microgrid, the large number of power electronic interface devices such as converters, and the existence of sensitive loads in the microgrid, power quality problems such as voltage fluctuations, frequency fluctuations, and harmonic effects in the microgrid need to be further studied and solved. The characteristics of energy storage devices to stabilize fluctuations and cut peaks and fill valleys play a key role in ensuring the power quality of sensitive users in the microgrid. A well-designed energy storage battery system can effectively improve power quality and therefore guarantee the reliability of a microgrid.

With the continuous development of microgrid technology, the structural composition and application purposes of microgrids are diversified. Therefore, energy storage devices with different functions are flexibly applied in microgrids. The primary requirement is that the microgrid needs a reasonable configuration of energy storage devices, compatible with the integrated utilization of renewable energy, so as to reduce power fluctuations within the microgrid. The main functions provided by energy storage devices in microgrids include maintaining operation reliability, participating in frequency regulation, participating in peak shaving, and maintaining voltage deviation, frequency deviation, harmonics, voltage fluctuations, voltage sags, and three-phase unbalance within relevant national standards. Given that high-quality power supply is essential for the safe and stable operation of microgrids, this research focuses on the optimization control of microgrid power quality using a hybrid energy storage battery system. The research mainly covers the analysis of power quality characteristics, voltage and frequency control strategies, and harmonic suppression strategies within a grid-connected/off-grid photovoltaic storage microgrid.

1. Power Quality Characteristics of PV-Storage Microgrids and System Modeling

The PV-storage microgrid is a microgrid system that uses solar photovoltaic power generation as the main energy source and battery energy storage as a backup power source. Compared with ordinary microgrid systems, it can maximize the local consumption of renewable energy and meet user load demands. The PV-storage microgrid system mainly includes a photovoltaic power generation subsystem, an energy storage subsystem, a load subsystem, and a system operation monitoring and measurement subsystem. A simplified structural diagram of the PV-storage microgrid system is shown in the following figure.

In the simplified structural diagram of the PV-storage microgrid system, the photovoltaic subsystem converts solar energy into DC electrical energy through photovoltaic arrays, and the DC electrical energy is then converted into AC electrical energy through a unidirectional converter and transmitted to the AC bus for AC loads. The energy storage subsystem is connected to the DC bus through a bidirectional DC/DC converter, which can directly supply power for DC loads or convert power through the DC/AC bidirectional converter between the DC bus and the AC bus.

The power quality problems of the microgrid can be classified into steady-state power quality problems and dynamic power quality problems. The former mainly refers to voltage deviation, harmonics, and three-phase unbalance under relatively constant distributed generation output and load conditions. The latter includes voltage fluctuations, voltage sags, and frequency fluctuations caused by changes in distributed generation output, load changes, or short-circuit faults. Due to the randomness and volatility of photovoltaic power generation, the output power of the photovoltaic array often fluctuates, especially when the array works under partial shadows or is partially shaded. At the same time, the user side is also possible to cause voltage fluctuations. Since the microgrid has less margin than the large power grid, it is more seriously affected by load impacts, resulting in sudden changes in power deficiency and finally voltage fluctuations in the microgrid. Voltage fluctuation is usually expressed as the percentage of the difference between the maximum and minimum effective voltage values and the rated voltage level:

$$d = \frac{U_{\max} – U_{\min}}{U_N} \times 100\%$$

where \(U_{\max}\) and \(U_{\min}\) are the maximum and minimum effective voltage values, and \(U_N\) is the system rated voltage level.

Because of the randomness of distributed generation output, active power imbalance between generator sets and loads often occurs in the microgrid. Moreover, because the microgrid contains impact loads and lacks sufficient reactive power support, the system frequency will fluctuate up and down around the power frequency (50 Hz), causing frequency deviation. When the microgrid runs in grid-connected mode, the main grid can balance load changes and reduce frequency deviation. However, when the microgrid runs in island mode, it is generally necessary to add an energy storage device at the DC part of the distributed generator and control the energy storage device to reduce frequency deviation. The frequency deviation is calculated as follows:

$$\Delta f = f_0 – f_N$$

where \(f_0\) is the actual system frequency and \(f_N\) is the system rated frequency.

The conversion of electric energy in the PV-storage microgrid requires converting DC electric energy into AC electric energy before supplying it to users. Therefore, a large number of converters are inevitably used. However, the operation of a large number of power electronic devices such as converters leads to the generation of harmonics, which are usually high-order harmonics. At the same time, the large access of nonlinear loads leads to a large number of low-order harmonics in the microgrid. The multiple superposition of low-order harmonics and high-order harmonics makes the harmonic content in the PV-storage microgrid difficult to control. If no additional devices and strategies are used for optimization control, it will not only affect the load users and electrical equipment in the microgrid itself, but also have adverse effects on the large power grid when the microgrid runs in grid-connected mode, even affecting the stable operation of the large power grid. Therefore, it is necessary to optimize and control the total harmonic distortion rate of the microgrid within the national standard.

To carry out targeted research, this study relies on an actual microgrid project to build a simulation model of a PV-storage microgrid with a hybrid energy storage battery system. The microgrid model is established in the MATLAB software environment. The main equipment parameters are set according to the actual microgrid. The PV power generation total capacity is 63 kWp, composed of 6.2 kWp double-glass polycrystalline PV modules, 41.5 kWp ordinary polycrystalline PV modules, and 15.3 kWp monocrystalline PV modules. The number of PV modules in series is 20, and the string-type wiring scheme is adopted. They are connected to four PV grid-connected inverters in parallel, with capacities of 30 kW, 18 kW, 10 kW, and 5 kW, respectively. The DC input voltage MPPT working range of the inverter is 450 V to 850 V.

The complete microgrid simulation model includes a photovoltaic power generation system, a hybrid energy storage battery system, and a load system. The main components of the photovoltaic power generation model are the photovoltaic array module, the boost circuit module, and the MPPT algorithm control module. The MPPT control module adopts the perturbation observation method with a perturbation step of 0.001, so that the photovoltaic cells can finally work at the maximum power point. The load system model is divided into linear load and nonlinear load parts. Load 1 and load 2 are linear loads, among which load 1 is a fixed capacity load with a fixed active load capacity of 30 kW; load 2 is used to simulate load mutation, with an active capacity ranging from 0 to 60 kW. The nonlinear load is generated by an uncontrolled rectifier bridge with a resistive-inductive load, which is used to simulate the harmonics generated in the microgrid.

2. Hybrid Battery Energy Storage System Analysis and Modeling

The hybrid energy storage battery system is the core device for power quality optimization in the microgrid. Different types of energy storage batteries have different performance characteristics. Energy storage technologies can be classified into physical energy storage, chemical energy storage, and electromagnetic energy storage. According to the storage performance, they can be divided into energy-type storage and power-type storage. The advantages of energy-type storage are that the capacity of the energy storage system is large, and there is still a long endurance time when working in off-grid mode. The power-type storage can charge and discharge very quickly, so it can quickly regulate the grid to enter a balanced state. A comparison of several commonly used energy storage battery technologies is shown in Table 1.

Table 1: Comparison of technical parameters of energy storage technologies
Storage type Specific capacity (W·h/kg) Specific power (W/kg) Efficiency (%) Life/cycles (DOD80%) Response time Energy cost ($/kW·h)
Flywheel energy storage 40-230 >5×10³ 70-80 10⁴-5×10⁴ <1 s 10-5000
Superconducting energy storage 1-50 10⁷-10¹¹ 80-95 10⁴-10⁵ <5 ms (1-10)×10³
Zinc-bromine flow battery 150-200 75-150 85-95 10³-10⁴ <10 s 600-2500
Supercapacitor 0.2-10 10²-5×10³ 80-95 10³-10⁵ <1 s 300-2000
Lithium titanate battery 35-50 300-415 80-90 <3×10³ <10 s 300-500

By comparing several energy storage methods, it can be seen that flywheel energy storage, superconducting energy storage, and lithium titanate battery energy storage have high power density and strong regulation performance, which can regulate the system stability in a short time. Zinc-bromine flow battery energy storage has high energy density and good peak-shaving and valley-filling effects. Based on the above analysis, a hybrid energy storage battery system composed of lithium titanate batteries and zinc-bromine flow batteries can ensure both a high power density to maintain the stability of the power system and a good energy density to ensure stable operation in off-grid mode. The advantages and disadvantages of storage methods are summarized in Table 2.

Table 2: Comparison of advantages and disadvantages of energy storage methods
Storage method Advantages Disadvantages
Flywheel energy storage High power density, short charge/discharge time, pollution-free Low energy density; requires multiple units, high cost
Superconducting energy storage High conversion efficiency, extremely short charge/discharge time Immature technology
Zinc-bromine flow battery Mature technology, high energy density, safe operation Low power density, long response time
Supercapacitor Very short response time Extremely low energy density, requires multiple units
Lithium titanate battery High power density, low cost, safe operation Limited application environment

For the hybrid energy storage battery system, the capacity is selected as follows: a 25 kW·2 h zinc-bromine flow battery is adopted. The zinc-bromine flow battery has a large storage capacity, an energy density of more than 100 W·h/L, a wide charge-discharge range from 0 to 100%, and can ensure normal discharge at a low state of charge. A capacity of 25 kW·h is adopted for the lithium titanate battery. The lithium titanate battery has the characteristics of high power density, high-rate discharge, and a cycle life of up to 30,000 times.

During the modeling of the energy storage battery, a series of constraints on charging and discharging need to be considered, including state of charge constraints, charge-discharge current constraints (charge-discharge rate), and charge-discharge power constraints, as shown in the following formulas:

$$SOC_{\min} \le SOC \le SOC_{\max}$$

$$I_{ch} \le I_{ch\max}$$

$$I_{dch} \le I_{dch\max}$$

$$0 \le P_{ch} \le P_{ch\max}$$

$$0 \le P_{dch} \le P_{dch\max}$$

where \(I_{ch\max}\) and \(I_{dch\max}\) are the maximum charge and discharge currents, and \(P_{ch\max}\) and \(P_{dch\max}\) are the maximum charge and discharge powers, respectively. The state of charge of the energy storage battery is calculated by:

$$SOC = 1 – \frac{1}{C_{bat}}\int I \, dt$$

where \(C_{bat}\) is the total capacity of the energy storage battery in ampere-hours (Ah), and \(I\) is the discharge current in amperes.

In the Matlab/Simulink environment, the energy storage battery models are established with the following main parameter settings. The lithium titanate battery has a rated voltage of 400 V, an initial SOC of 80%, and a rated capacity set to 125/2 Ah, which is equivalent to 400 V × 125/2 Ah = 25000 W·h = 25 kW·h. The zinc-bromine flow battery also has a rated voltage of 400 V, an initial SOC of 80%, and a rated capacity of 125 Ah, which is equivalent to 400 V × 125 Ah = 50000 W·h = 50 kW·h. The simulation model capacities are consistent with the design values.

The topology structure of the hybrid battery energy storage is the basis for formulating the control strategy. Compared with passive structures, the active structure formed by connecting the two energy storage battery units through bidirectional DC/DC converters has great advantages. It can realize precise control of each energy storage battery unit, so that the hybrid battery energy storage can actively control its total transmission power to meet the demand of the external system. In this structure, the lithium titanate battery and the zinc-bromine flow battery are both connected to the external system through bidirectional DC/DC converters. By changing the control modes of the two batteries, the power transmission amount and terminal voltage of the two batteries can be effectively regulated. Moreover, the terminal voltages of the two batteries will not directly affect the DC bus voltage, making the operation mode and control strategy of the hybrid battery energy storage more flexible. Therefore, this topology is adopted in this study.

In the charging and discharging process of the hybrid energy storage battery system, since the capacity of the storage battery is limited, it is necessary to consider overcharge and overdischarge of the battery to extend the service life of the storage system. The operation strategy is as follows: when the photovoltaic power generation power is greater than the load power of the microgrid, the excess power is preferentially used to charge the storage battery, while checking the upper limit of the SOC of the storage battery. When the battery is fully charged and the distribution network allows, excess power is sent to the distribution network to ensure that the battery is not overcharged. When the photovoltaic power generation power is less than the load power of the microgrid, the energy storage system discharges to supply the load power, while checking the lower limit of the SOC of the storage battery to ensure that the battery is not overdischarged. When the photovoltaic and storage power cannot meet the load power of the microgrid, the power is purchased from the distribution network.

The specific protection strategy of each battery is determined according to the current direction and SOC. For the zinc-bromine flow battery, the charge-discharge range is set to 5% to 95%. When \(I_{znbr} > 0\) and \(SOC_{znbr} < 0.05\), the battery is discharging and the discharge should be interrupted; when \(I_{znbr} < 0\) and \(SOC_{znbr} > 0.95\), the battery is charging and the charge should be interrupted. For the lithium titanate battery, the charge-discharge range is set to 20% to 80%. When \(I_{lto} > 0\) and \(SOC_{lto} < 0.2\), the discharge is interrupted; when \(I_{lto} < 0\) and \(SOC_{lto} > 0.8\), the charge is interrupted.

3. Voltage and Frequency Optimization Control Based on Hybrid Battery Energy Storage

3.1 DC Bus Voltage Control Strategy

In a hybrid microgrid, the DC subgrid is not affected by reactive power and frequency fluctuation. The only criterion for judging whether the DC subgrid is stable is the stability of the DC bus voltage. The DC bus voltage is closely related to the power flowing through the DC bus. When the demand power of the DC bus is higher than the supply, a power shortage occurs, making the DC bus voltage drop; when the demand power is lower than the supply, a power surplus occurs, making the DC bus voltage rise. Therefore, the power supply and demand situation within the DC subgrid is the key condition to ensure the stability of the DC bus voltage. The DC bus voltage fluctuation is mainly caused by the active power imbalance caused by external micro-source disturbances or system faults. Therefore, the power balance of the DC bus should be taken as the core requirement for formulating the control strategy to ensure that the DC bus voltage is in a stable state. The control target is to keep the high-voltage side voltage of the DC/DC converter, i.e., the DC bus voltage of the DC subgrid, constant. The DC bus voltage is set to 700 V.

Considering the characteristics of the two energy storage battery units in the hybrid system, the lithium titanate battery has high power density and can quickly respond to sudden power changes, while the zinc-bromine flow battery has high energy density and maintains the power balance on the bus. Therefore, a frequency division control strategy based on a third-order low-pass filter is proposed for the DC/DC converter. The third-order low-pass filter has a shorter transition time and can make high-frequency power decay to zero more quickly and filter more accurately. The transfer function block diagram of the third-order low-pass filter is used to realize the power frequency division of the energy storage system.

First, the transfer function of the first-order low-pass filter is:

$$H(s) = \frac{1}{1 + \tau s}$$

The total expected output power compensation value of the hybrid energy storage battery system is \(P_h\), which is used to compensate the system power shortage. \(P_{znbr}\) is the power reference value provided by the energy-type zinc-bromine flow battery, and \(P_{lto}\) is the power reference value provided by the power-type lithium titanate battery. The power is distributed through the third-order low-pass filter. The reference power of the lithium titanate battery is calculated as follows:

$$P_{lto1} = \frac{1}{1 + T_{lto}s} P_h$$

$$P_{lto2} = P_h – P_{lto1} = \frac{T_{lto1}s}{1 + T_{lto1}s} P_h$$

$$P_{lto3} = P_{h1} – P_{h2} = \frac{T_{znbr}s}{1 + T_{znbr}s} P_{h2}$$

$$P_{lto} = P_{lto1} + P_{lto2} + P_{lto3}$$

The reference power of the zinc-bromine flow battery is calculated as follows:

$$P_{znbr} = \frac{1}{1 + T_{lto}s} \cdot \frac{1}{1 + T_{znbr}s} P_h$$

For the low-frequency component detection of load power shortage, the control block diagram includes the following: the actual voltage of the system is collected and compared with the system reference voltage, and after the proportional-integral controller, the output signal \(i_{fluct}\) is sent to the third-order low-pass filter. The low-frequency signal or DC stable signal passes through the third-order low-pass filter for output. At the same time, the high-frequency current signal \(i_{bat2}\) is obtained by correcting the output signal \(i_{fluct}\) and the low-frequency signal. The output signal \(i_{bat1}\) of the third-order low-pass filter and the input current \(i_{znbr}\) of the zinc-bromine flow battery are jointly added to the proportional-integral controller. The output signal PWM1 and the level-inverted PWM2 jointly control the charging and discharging of the zinc-bromine flow battery. The high-frequency current signal \(i_{bat2}\) that does not pass through the third-order low-pass filter and the current \(i_{lto}\) of the lithium titanate battery are input together to the proportional-integral controller, and the output signals PWM3 and PWM4 control the charging and discharging of the lithium titanate battery. Through this frequency division control strategy, the two batteries jointly compensate for the fluctuating power, and the hybrid energy storage battery system can solve the problem of rapid transition to a stable operation state when power mutation occurs in the microgrid.

3.2 AC Bus Voltage and Frequency Control Strategy

The AC subgrid has voltage fluctuations and frequency fluctuation problems. Voltage random fluctuations may be caused by the access of large impact loads, lightning strikes, and the randomness of distributed generation output. The frequency fluctuation is caused by the active power imbalance in the microgrid. If the microgrid runs in grid-connected mode, the frequency and voltage can rely on the large power grid to balance active power; if the microgrid runs in off-grid mode, the energy storage device is needed to increase or absorb power, and ultimately control the frequency within the allowable range.

In grid-connected mode, the frequency and voltage of the microgrid are determined by the large power grid. However, in order to make the instantaneous power of the thermal power units stable, when a large load switching or distributed generation fluctuation occurs in the microgrid, the hybrid energy storage battery system will act quickly at first. The main role of the hybrid battery energy storage system is to stabilize the power fluctuation caused by distributed sources such as photovoltaic power generation. In this study, multiple power exchange modes between the hybrid energy storage battery system and the grid are proposed. For active power, define the direction of power transmission from the microgrid to the distribution network as positive. The total active power supplied by the microgrid and the distribution network to the microgrid load can be expressed as:

$$P_{\sum} = P_{PV} + P_{znbr} + P_{lto} – P_{grid}$$

In various stages of microgrid operation, \(P_{load}\) and \(P_{\sum}\) are basically balanced, so the following relationship holds:

$$P_{ref} = P_{znbr} + P_{lto} = P_{load} – P_{PV} + P_{grid}$$

In exchange mode 1, \(P_{ref} = 0\), that is, \(P_{load} = P_{PV} – P_{grid}\). At this time, the energy storage system is in a standby state. This mode can make the hybrid energy storage battery system not charge or discharge under the stable grid-connected operation state of the microgrid, which is beneficial to extend the service life of the system, but the power change of the microgrid will directly affect the distribution network. In exchange mode 2, \(P_{ref} = P_{load} – P_{PV}\), so \(P_{grid} = 0\). This mode can make the transmission power of the tie line between the microgrid and the distribution network zero, reducing the mutual influence between the microgrid and the distribution network. In exchange mode 3, \(P_{ref} = P_{load} – P_{PV} + P_{grid}\), which considers keeping \(P_{grid}\) unchanged and realizes the control of tie-line power when the microgrid runs in grid-connected mode. The selection and switching of the power exchange modes ensure the accuracy of the reference power.

In order to ensure the voltage amplitude and frequency power quality during the independent operation of the microgrid, the DC/AC converter control strategy of the microgrid is switched from constant power control to improved droop control in this operation mode. Droop control simulates the output characteristics of a synchronous generator. By adjusting the output voltage and frequency, the output power is changed. The droop control can realize the separate control of active power and reactive power of the storage system, ensuring the unity of power balance and good power quality in the microgrid. Considering that the line reactance is much larger than the line resistance, the droop control is divided into P/f droop control and Q/V droop control. The basic formula is:

$$f – f_0 = -k_p (P – P_0)$$

$$V – V_0 = -k_q (Q – Q_0)$$

where \(k_p\) and \(k_q\) are the P/f droop control coefficient and the Q/V droop control coefficient, respectively. They reflect the relationship between the inverter output active power change and the output frequency change, and the relationship between the inverter output reactive power change and the output voltage change. \(f_0\), \(P_0\), \(V_0\), \(Q_0\) are the initial values of the droop control curves.

Through analysis, droop control cannot achieve complete power compensation in practice. In order to make the compensation power closer to the difference value, a proportional-integral controller is introduced in the conventional droop control, and an improved droop control is proposed. The frequency and voltage calculation formulas are:

$$f_{ref} = f_0 + \Delta P_D \left(K_P + \frac{K_I}{s}\right) \frac{1}{T_{D0}s + 1}$$

$$f_{ref} = \frac{f_0}{1 + \frac{K_P}{s T_{D0} + 1}} + \frac{\Delta P_D \frac{K_I}{s}}{1 + \frac{K_P}{s T_{D0} + 1}}$$

$$U_{ref} = U_0 + \Delta Q_D \left(K_P + \frac{K_I}{s}\right) \frac{1}{T_{D0}s + 1}$$

$$U_{ref} = \frac{U_0}{1 + \frac{K_P}{s T_{D0} + 1}} + \frac{\Delta Q_D \frac{K_I}{s}}{1 + \frac{K_P}{s T_{D0} + 1}}$$

When the system approaches steady state, from the above formulas, when \(t \to \infty\) and \(s \to 0\), \(f_{ref} = f_0\) and \(U_{ref} = U_0\). Therefore, the introduction of PI control can theoretically make the frequency and voltage of the PV-storage microgrid infinitely close to the reference value, improving the power quality of the independently operated microgrid. The engineering purpose of the improved droop control is that when the load active power changes suddenly, the microgrid frequency decreases, and the frequency change reference value calculates the compensation value of active power through the proportional-integral link. If the compensation value is consistent with the change value, complete compensation of active power can be realized. Similarly, in order to realize the compensation of reactive power in the microgrid, the proportional-integral link is used to calculate the reference value of reactive power, which can also play a role in stabilizing the AC bus voltage of the microgrid and improving power quality.

3.3 Simulation Verification of Voltage and Frequency Control

In order to verify the improvement of power quality such as voltage and frequency and the dynamic response of power in the microgrid system, Matlab/Simulink simulations are carried out. The simulation model has a total PV power of 63 kWp, and the hybrid energy storage battery system capacity is 75 kW·h, corresponding to the zinc-bromine flow battery capacity of 25 kW·2h and the lithium titanate battery capacity of 25 kW·h. The initial SOC of the batteries is set to 80%.

First, the DC bus voltage control effect is verified during island operation when the load active power steps from \(P_{load} = 30\) kW to \(P_{load} = 63\) kW at 0.3 s. The power-type lithium titanate battery (battery 2) rapidly discharges, reaching the maximum discharge power of nearly 33 kW at about 0.32 s, and the discharge ends at 0.37 s. The energy-type zinc-bromine flow battery (battery 1) gradually reduces the absorption power when the lithium titanate battery reaches the maximum discharge power. Under single energy storage battery (zinc-bromine flow battery) control, when the active load changes in steps at 0.3 s, the DC bus voltage drops to about 680 V at 0.34 s and recovers to stability at 0.38 s. Under hybrid battery energy storage control, the DC bus voltage drops to about 685 V at 0.32 s and recovers at 0.34 s. The fast compensation of the lithium titanate battery reduces the DC bus voltage fluctuation range and fluctuation time, verifying the effectiveness of the strategy in coping with load sudden changes.

Second, the microgrid operates in island mode, and the load active power and reactive power fluctuate randomly between 0.2 and 0.4 s, with the fluctuation range controlled within 20% of the rated value of PV power. The lithium titanate battery continuously adjusts the charge-discharge state with the load fluctuation, and the zinc-bromine flow battery is responsible for absorbing the surplus power. Compared with single energy storage battery control, the hybrid energy storage control reduces the peak-to-peak fluctuation range of the AC bus voltage by about 5 V and reduces the fluctuation time by about 0.05 s; the frequency peak-to-peak fluctuation range is reduced by about 0.03 Hz and the fluctuation time is shortened by about 0.02 s.

Third, the microgrid initially runs in grid-connected mode, then disconnects from the distribution network at 0.2 s and starts island operation. From 0.3 s to 0.5 s, multiple simultaneous fluctuations of active and reactive power of the load occur. Under hybrid energy storage battery control, the voltage fluctuation range is reduced by 3 V to 5 V and the fluctuation time by about 0.03 s compared with single energy storage control. The frequency peak value is reduced by about 0.03 Hz, and the recovery time is shorter. The simulation results show that the hybrid battery energy storage control strategy can effectively improve the voltage and frequency quality of the microgrid under different operating conditions. The comparison results are summarized in Table 3.

Table 3: Comparison of single battery storage and hybrid battery storage control effects
Operating condition Performance indicator Single battery storage Hybrid battery storage
Island mode, load step change DC bus voltage drop (V) ~20 ~15
Recovery time (s) ~0.08 ~0.04
Island mode, random fluctuation AC voltage fluctuation range (V) ~7 ~2
Frequency fluctuation range (Hz) ~0.05 ~0.02
Grid-connected to island transition AC voltage fluctuation range (V) ~8 ~3.5
Frequency peak deviation (Hz) ~0.12 ~0.09

4. Harmonic Optimization Control Based on Hybrid Battery Energy Storage

4.1 Harmonic Sources and Suppression Technology

In the microgrid, the harmonic sources mainly include nonlinear loads, electronic switching devices such as rectifier-inverter related devices and PWM frequency converters, and transformers and reactors that cause iron core magnetic saturation due to overcurrent. In the PV microgrid, harmonics mainly come from the photovoltaic power generation system and nonlinear loads. The converter device in the photovoltaic power generation system is the core harmonic source. Although the converter is designed according to the SPWM principle, the modulation of the carrier signal still produces a large number of high-order harmonics, mainly including 6nth harmonic voltages and 6n+1th harmonic currents. In addition, because the output characteristics of photovoltaic cells are closely related to weather conditions, changes in light intensity and photovoltaic cell angle will also cause voltage asymmetry and voltage harmonic distortion. Most nonlinear loads contain rectifier circuits, which can be equivalent to resistive-inductive elements, and mainly produce 6n+1th harmonic currents. Therefore, the load in the microgrid is a very important source of harmonics. The presence of a large number of harmonics affects both the power supply side and the user side, reducing the stable operation of the microgrid.

In order to suppress harmonics, passive filters and active power filters (APF) are commonly used. Passive filters have a simple structure and wide application, but under operating conditions with multiple harmonic contents, there is mutual interference between different filters, affecting the final filtering effect. For users with high power quality requirements, APF is usually considered. The APF can be divided into current-type and voltage-type. The voltage-type APF has a higher cost performance and is more suitable for microgrids. Parallel APF is mainly used to compensate harmonic current and reactive current. In this study, considering that the energy storage converter and the parallel APF have similar functions and structures, the remaining capacity of the energy storage converter is used to realize the harmonic compensation function. This can improve the harmonic indicators of the microgrid when it comes with nonlinear loads.

4.2 Harmonic Detection Method

The accuracy of harmonic current detection directly affects the harmonic compensation and suppression effect. The instantaneous reactive power theory is widely used in harmonic detection. Based on this theory, the p-q harmonic detection method and the ip-iq harmonic detection method have been developed.

For a three-phase three-wire PV-storage microgrid with symmetrical three-phase voltages, the instantaneous values of the three-phase grid voltages are \(e_a\), \(e_b\), \(e_c\), and the instantaneous values of the currents are \(i_a\), \(i_b\), \(i_c\). The voltage and current instantaneous values are transformed to the two-phase stationary coordinate system to simplify the calculation. The transformation is:

$$\begin{bmatrix} e_\alpha \\ e_\beta \end{bmatrix} = C_{32} \begin{bmatrix} e_a \\ e_b \\ e_c \end{bmatrix}$$

$$\begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix} = C_{32} \begin{bmatrix} i_a \\ i_b \\ i_c \end{bmatrix}$$

where

$$C_{32} = \sqrt{\frac{2}{3}} \begin{bmatrix} 1 & -\frac{1}{2} & -\frac{1}{2} \\ 0 & \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2} \end{bmatrix}$$

In the \(\alpha\beta\) coordinate system, the voltage vector \(e\) and the current vector \(i\) are expressed as:

$$e = e_\alpha + e_\beta = e \angle \theta_e$$

$$i = i_\alpha + i_\beta = i \angle \theta_i$$

The instantaneous active current \(i_p\) and instantaneous reactive current \(i_q\) are:

$$i_p = i \cos \theta$$

$$i_q = i \sin \theta$$

where \(\theta = \theta_e – \theta_i\). The instantaneous active power and instantaneous reactive power are:

$$p = e i_p$$

$$q = e i_q$$

In matrix form:

$$\begin{bmatrix} p \\ q \end{bmatrix} = \begin{bmatrix} e_\alpha & e_\beta \\ e_\beta & -e_\alpha \end{bmatrix} \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix}$$

The p-q harmonic detection method calculates the fundamental wave components of the current through the instantaneous active power and reactive power. However, the p-q method has a limitation: when the grid voltage is distorted, the fundamental current and harmonic current cannot be accurately obtained. Therefore, the ip-iq harmonic detection method is proposed. This method uses a phase-locked loop and a sinusoidal/cosine generating circuit to improve the detection error caused by distorted three-phase voltage and current waveforms. The phase-locked loop can fix the frequency and phase of one phase voltage, and cooperate with the sinusoidal/cosine generating circuit to finally obtain the sinusoidal and cosine waveforms consistent with the frequency and phase of the three-phase voltage.

The three-phase currents are transformed to obtain \(i_\alpha\) and \(i_\beta\) in the two-phase stationary coordinate system, and then through Park transformation, the instantaneous active current component \(i_p\) and instantaneous reactive current component \(i_q\) are obtained:

$$\begin{bmatrix} i_p \\ i_q \end{bmatrix} = \begin{bmatrix} \sin \omega t & -\cos \omega t \\ -\cos \omega t & -\sin \omega t \end{bmatrix} \begin{bmatrix} i_\alpha \\ i_\beta \end{bmatrix}$$

After low-pass filtering, the DC components \(\bar{i}_p\) and \(\bar{i}_q\) are obtained. Then through the inverse transformation, the fundamental current components are obtained:

$$\begin{bmatrix} i_{af} \\ i_{bf} \\ i_{cf} \end{bmatrix} = C_{23} \begin{bmatrix} \bar{i}_p \\ \bar{i}_q \end{bmatrix}$$

Finally, the harmonic current components are obtained by subtracting the fundamental current components from the three-phase currents:

$$\begin{bmatrix} i_{ah} \\ i_{bh} \\ i_{ch} \end{bmatrix} = \begin{bmatrix} i_a \\ i_b \\ i_c \end{bmatrix} – \begin{bmatrix} i_{af} \\ i_{bf} \\ i_{cf} \end{bmatrix}$$

When the voltage waveform is sinusoidal, the ip-iq harmonic detection method can ensure that the calculation process is not affected by voltage distortion, so the result of the ip-iq harmonic detection method is accurate. This is the advantage of the ip-iq detection method, which provides an accurate benchmark for harmonic compensation and further improves the power quality level of the microgrid. The comparison between the p-q method and the ip-iq method is shown in Table 4.

Table 4: Comparison between p-q and ip-iq harmonic detection methods
Item p-q method ip-iq method
Voltage distortion influence Affected Not affected
Phase-locked loop Not required Required
Accuracy under distorted voltage Low High
Application range Ideal sinusoidal voltage Both ideal and distorted voltage

4.3 APF Function Realization Strategy of Energy Storage Converter

Realizing the APF function of the energy storage converter is to make the hybrid energy storage battery system output harmonic compensation current while outputting active power. The control method is composed of harmonic current detection, command current synthesis, command current control, and DC side voltage control. The specific process is: first, detect the current in the microgrid to determine the harmonic current; second, convert the harmonic current into the command current to be compensated; third, use the double closed-loop double PR control algorithm to control the command current so that the energy storage converter produces the opposite compensation current; finally, keep the DC side voltage of the energy storage converter stable.

From the structural comparison between the energy storage converter and the parallel APF, the core components of both are insulated gate bipolar transistors, and they are connected to the load and the microgrid in the same way, i.e., through a filter inductor. The difference is mainly on the DC side. The DC side of the energy storage converter is connected in parallel with the energy storage battery, while the DC side of the parallel APF is connected in parallel with a capacitor, but the structures are basically the same. From the functional analysis, both can be equivalent to controlled current sources. Therefore, the energy storage converter can output harmonic compensation command current when providing active power, using the remaining capacity, to realize the APF function and improve the harmonic power quality.

The current control part adopts the PR control algorithm. The PR controller is a control algorithm based on the internal model principle, composed of a proportional term and a resonant term. Its transfer function is:

$$G_{PR}(s) = k_p + \frac{k_I s}{s^2 + \omega_0^2}$$

where \(\omega_0\), \(k_p\), and \(k_I\) are the resonant frequency, proportional factor, and resonant factor, respectively. The PR controller has the characteristic of large amplitude gain at the resonance point and very small gain outside the resonance point. Therefore, multiple PR controllers can be connected in parallel to compensate for signals of multiple frequencies. For example, the pole frequency set to 100\(\pi\) is used to control the negative-sequence fundamental component compensation current, the pole frequency set to 500\(\pi\) is used to control the 5th harmonic component compensation current, and the pole frequency set to 700\(\pi\) is used to control the 7th harmonic component compensation current.

When there is a disturbance, the output current of the PR controller can be expressed as:

$$I(s) = \frac{G_{PR}(s) K_{PWM} I^*(s)}{R + sL + G_{PR}(s) K_{PWM}} – \frac{U_g(s)}{R + sL + G_{PR}(s) K_{PWM}}$$

At the resonant frequency, the amplitude-frequency characteristic of the PR controller is:

$$|G_{PR}(j\omega_0) K_{PWM}| = \infty$$

Therefore, by adjusting the parameters, the output current of the energy storage converter can be consistent with the reference current, and the control is not affected by the grid voltage disturbance.

The double closed-loop control adopts the voltage-current double closed-loop structure, that is, the voltage outer loop and the current inner loop. The voltage outer loop ensures that the DC side voltage of the energy storage converter is stable at a high value, and provides the reference voltage for the current inner loop. The current inner loop compares the detected harmonic current with the output current of the voltage outer loop to obtain the compensation command current, and quickly adjusts the harmonic command current to improve the accuracy of the final output command current.

The stability of the DC side voltage of the APF is an important link to ensure fast harmonic compensation. When using the energy storage converter for harmonic compensation, the DC side voltage should also be stable. During the actual operation of the APF, the internal power loss causes the DC side voltage to gradually decrease. Therefore, when realizing the APF function of the energy storage converter, it is necessary to ensure that the DC side maintains a sufficiently high and stable voltage. The method used in this study is to use the lithium titanate battery to compensate the DC side voltage of the energy storage converter. Because the lithium titanate battery has high power density, high charge-discharge efficiency, high-rate discharge, and long cycle life, it can satisfy the requirements of fast power compensation and frequent charge-discharge. The zinc-bromine flow battery, due to its large capacity and wide charge-discharge range, is selected to provide harmonic compensation current.

The voltage outer loop control block diagram of the lithium titanate battery includes comparing the set value of the DC side voltage \(U_{dc1}^*\) with the actual DC side voltage \(U_{dc}\). The difference is the input signal of the controller. After the transfer function of the PI controller, the delay transfer function, and the inverter transfer function, the command current is obtained and used as the input signal to control the lithium titanate battery compensation. In order to meet the sufficiency of the remaining capacity of the hybrid energy storage, the hybrid energy storage battery system is in a constant-current fast charging state during the stable operation of the microgrid, which is beneficial to ensure the fast and stable charging of the hybrid energy storage battery system.

The harmonic compensation control strategy of the energy storage converter is summarized as follows. First, ensure that the voltage fluctuation and frequency fluctuation of the microgrid meet the requirements through the hybrid energy storage battery control. Second, analyze the harmonic distribution of the target microgrid. The harmonics of the nonlinear load mainly contain 5th and 7th harmonic currents. Third, apply the remaining capacity of the energy storage converter to treat the harmonic components. In the PR control link, the resonant frequency is set to control the 5th and 7th harmonic currents, and the zinc-bromine flow battery provides the compensation current while the lithium titanate battery compensates the DC side voltage to keep it stable.

4.4 Simulation Verification of Harmonic Compensation

To verify the effectiveness of the APF function of the hybrid energy storage converter, Matlab/Simulink simulations are carried out under nonlinear load access, comparing the governance degree and effect of single energy storage battery and hybrid battery energy storage.

First, only the single zinc-bromine flow battery is put into operation. The single-phase current waveform before compensation shows obvious distortion due to the access of nonlinear loads. After the zinc-bromine flow battery energy storage converter emits harmonic compensation current through the APF function, the current waveform after compensation basically tends to a sinusoidal current waveform, but there is still slight distortion. The FFT analysis results show that the system has a large number of 5th, 7th, 11th, 13th, and 17th harmonic components, resulting in a total harmonic distortion rate (THD) of 12.22% before compensation. The compensation current contains a large number of 5th, 7th, 11th, and 13th compensation components, and the final THD is reduced from 12.22% to 4.94%, which basically meets the national standard of THD less than 5%.

Second, the hybrid energy storage battery system is put into operation. The zinc-bromine flow battery still emits harmonic compensation current through the APF function, while the lithium titanate battery compensates the DC side voltage of the energy storage converter quickly, making up for the loss of DC side voltage, increasing the harmonic compensation current, and making the current waveform after compensation basically a sinusoidal waveform. From the comparison of the FFT analysis of the compensation current between single and hybrid energy storage, the hybrid energy storage battery compensation current contains more 5th and 7th harmonic compensation components, improving the overall harmonic compensation effect. The hybrid energy storage battery compensation reduces the THD to 2.08%, which is lower than that of single energy storage battery compensation, further reducing the harmonic content and improving the power quality. The harmonic compensation comparison is shown in Table 5.

Table 5: Comparison of harmonic compensation effects between single and hybrid battery energy storage
Item Before compensation Single battery storage Hybrid battery storage
5th harmonic current (%) ~10.5 ~3.2 ~1.5
7th harmonic current (%) ~5.8 ~2.1 ~0.9
THD (%) 12.22 4.94 2.08

5. Conclusion

This research focuses on the power quality optimization control of microgrids based on a hybrid energy storage battery system, mainly covering voltage fluctuation, frequency fluctuation, and harmonic influence. The conclusions are as follows:

(1) Through the analysis of the characteristics and functions of common energy storage methods, and combined with the optimization analysis of the energy storage device for power quality, a hybrid energy storage battery system composed of lithium titanate batteries with high power density and strong regulation performance and zinc-bromine flow batteries with high energy density and strong peak-shaving and valley-filling characteristics is proposed. This system can simultaneously provide the power of stabilizing fluctuations and peak shaving and valley filling, making up for the limitations of single battery energy storage.

(2) Through the study of the topology structure, operation strategy, and protection strategy of the hybrid battery energy storage in the PV-storage microgrid, overcharge and overdischarge of the battery are prevented, ensuring the normal operation of the hybrid energy storage battery system during the charge-discharge process. A DC/DC converter frequency division control strategy based on a third-order low-pass filter and a proportional-integral improved droop control strategy for the DC/AC converter are proposed. By utilizing the characteristic differences between the lithium titanate battery and the zinc-bromine flow battery, the two battery energy storage units can give play to their respective advantages and quickly control the DC bus voltage and AC bus voltage and frequency. At the same time, multiple power exchange modes between the hybrid energy storage battery system and the grid are proposed to ensure the accuracy of the reference power. Simulation results verify that the hybrid battery energy storage has a better control effect on voltage and frequency than the single battery energy storage.

(3) On the basis of the control of frequency and voltage fluctuation, the harmonic optimization control is carried out. The harmonic generation and distribution of the PV-storage microgrid and the harmonic suppression technology are analyzed. Through the principle analysis of the commonly used harmonic detection methods, the comparison shows that the ip-iq harmonic detection method can make up for the defect of low detection accuracy of the p-q harmonic detection method under voltage distortion and has certain superiority. Then, based on the functional and structural similarity between the energy storage converter and the APF, a proportional resonant control strategy based on double closed-loop control is designed. By setting different pole frequencies, the corresponding harmonic component compensation currents can be output, which can accurately compensate specific harmonic components. The lithium titanate battery and the zinc-bromine flow battery are used to compensate the DC side voltage and output the harmonic current of the energy storage converter, respectively, improving the compensation effect of the energy storage converter. Simulation results verify that the hybrid energy storage battery has a better harmonic compensation effect than the single battery energy storage.

In future research, other power quality indicators such as fault voltage sags, three-phase unbalance, and voltage flicker can be further studied based on the hybrid energy storage battery system to form a complete power quality optimization control system. In addition, the research results need to be further verified in practical applications with more operating conditions.

Scroll to Top