Next Article in Journal
The Use of Convolutional Neural Networks and Digital Camera Images in Cataract Detection
Next Article in Special Issue
Intelligent Design of Multi-Machine Power System Stabilizers (PSSs) Using Improved Particle Swarm Optimization
Previous Article in Journal
Soft-Switching Full-Bridge Topology with AC Distribution Solution in Power Converters’ Auxiliary Power Supplies
Previous Article in Special Issue
A New Approach for the Incorporation of the End-User’s Smart Power–Electronic Interface in Voltage Support Application
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Digital Implementation of Harmonic and Unbalanced Load Compensation for Voltage Source Inverter to Operate in Grid Forming Microgrid

Department of Electrical Engineering, National Cheng Kung University, Tainan 701, Taiwan
*
Author to whom correspondence should be addressed.
Electronics 2022, 11(6), 886; https://doi.org/10.3390/electronics11060886
Submission received: 28 November 2021 / Revised: 6 March 2022 / Accepted: 8 March 2022 / Published: 11 March 2022

Abstract

:
Voltage source inverter (VSI) is a good candidate for grid forming microgrid because it provides constant amplitude, frequency, and sinusoidal shape voltage at point of common coupling (PCC). As the microgrid is separated from utility grid, voltage quality of the PCC is easily affected by the type of load. To ensure power quality in grid operation, a three-phase VSI providing automatic voltage compensation for unbalanced or nonlinear load is presented in this paper. To maintain voltage quality at a certain level, the Fast Fourier Transform (FFT) algorithm is embedded in a proportional-resonant (PR) controller to mitigate the total harmonic distortion (THD) at PCC. In the meantime, any change of voltage magnitude that is caused by the unbalanced load could be reduced as well. To further enhance the transient response with the change of load, a predictive current (PC) controller is integrated into the PR controller. All the control strategies are implemented by digital approach. The effectiveness of proposed controls is verified through experiments on a testbed of the three-phase stand-alone system.

1. Introduction

The emerging technologies developed for renewable energy resources are making the microgrid operation more resilient in the distribution network. When an outage occurs at the utility grid, the microgrid could quickly switch back to the stand-alone operation for sustaining the electrical power for the loads [1].
Nowadays, DC sources, such as photovoltaic panel (PV) and battery energy storage (BES), are widely acknowledged as distributed energy resources (DERs). Since the DC source cannot directly deliver power to the AC loads, inverters are playing the key role to perform power conversion in between [2,3,4]. In the grid-connected mode, the voltage at the point of common coupling (PCC) is supported by the utility grid. Without the stiff voltage support by the utility grid, voltage at PCC in the stand-alone operation is heavily affected by the types of loads. The unbalanced loads would cause uneven voltage magnitude. Besides, nonlinear load could draw non-sinusoidal current and generate harmonic components in the voltage waveform. Therefore, the voltage source inverter (VSI) that operates in the grid forming microgrid should be able to maintain quality voltage at PCC [5,6].
The schematics of a three-phase three-wire six-bridge VSI is shown in Figure 1. The VSI is the most commonly used topology in the islanded microgrid operation. The merits of this topology include relatively simple control strategy, faster response speed, and low power loss. Making use of a simple control strategy could save computational resource as it is implemented by the digital micro-controller unit (MCU). Consequently, additional functions could be carried out to improve the power quality of the converter-based system. From the cost–benefit effect point of view, implementing the software control is the most effective way for the VSI to comply with the power quality standards that were issued by ANSI, IEC, and IEEE. Therefore, this paper proposes a software implementation to improve power quality.
The conventional wisdom to regulate the AC voltage is to use the proportional-integral (PI) controller for the dq transformation [7]. However, the control type does not perform well in the harmonic compensation. A numbers of control techniques were introduced to serve the harmonic compensation. Reference [8] mentioned pros and cons of various control techniques. For example, the negative sequence current component control is usually used to mitigate the uneven burdens on the phase voltage and current, i.e., the unbalanced load. It does not have the full ability to compensate the nonlinear load. The sliding mode control can be employed to acquire robust performance against the harmonics in load. However, some flaws including the chattering phenomenon in discrete implementation and the complex design issues under the transient and zero-steady-state operations [9,10,11,12]. The hysteresis current control is well known as the bang-bang type nonlinear control. The benefits of this control are of having fast dynamic performance, easy implementation with unconditioned stability. However, the uneven switching frequency leads to another problem of switching harmonics and loss. To obtain a better compensation with less switching disturbance, a weighted adaptive control combined with the hysteresis band current controller was introduced [13,14].
The operating principle of the aforementioned controls belongs to active filter (AF) type. An AF type VSI needs to generate the same harmonic components that are absorbed by the nonlinear load, so that the harmonics observed at PCC could be neutralized. Because the proportional-resonant (PR) compensation can generate the voltage component at some specific frequency, the PR compensation is right for this purpose. In addition, the decoupling of the αβ axis components derived from the PR control is right for both positive- and negative-sequence compensation as the VSI is dealing with the unbalanced load condition [15]. Therefore, the PR controller is a good candidate to be further improved for better performance, easier implementation, and wider industry application.
To determine the harmonic components for the compensation, the prerequisite is to identify the harmonics of the voltage spectrum at PCC. In this paper, Fast Fourier Transform (FFT) algorithm is embedded inside the PR controller to acquire the information of voltage spectrum. Combining FFT function inside the PR controller, a turn-key voltage compensation could be realized in a stand-alone VSI for the quality voltage supply.
To realize the PR compensation, both voltage and current loops are required to give satisfactory performance. The role of the current loop is to facilitate the voltage loop compensation for a fast response. However, the signal processing and communication latency that generally exist in the digital control loop could deteriorate the dynamic response. To further improve the transient performance, this paper proposes a predictive current (PC) approach to replace the PR current controller. The testing case shows that a PR compensator combining with the predictive controller outperforms the dual PR controllers in the transient response.
The paper is organized as follows. Section 2 introduces the operating principle of PR controller to improve voltage quality under unbalanced and nonlinear loads. The deduction of FFT algorithm from discrete Fourier transform (DFT) is described in Section 3. Section 4 introduces the design flow of the PC controller that is integrated to the PR voltage control loop. Section 5 illustrates the automatic voltage compensation strategy for dealing with unbalanced and nonlinear loads. Experimental results are given in Section 6 to validate the effectiveness of the control scheme. Section 7 draws the concluding remarks.

2. Voltage Regulation for Unbalanced and Nonlinear Loads

2.1. Transfer Function of PR Controller

The traditional transfer function of the DC signal regulation by the PI control is shown in Equation (1)
G D C = K P + K I s
where KP and KI are the proportional and integral gains, respectively. Using the low-pass to band-pass transformation, DC signal controller can be transformed to AC signal as shown in the following form.
G A C = G D C ( s 2 + ω c 2 2 s )
The equation of the PR controller can be represented by the PI gains, where the PR controller has infinity gain at resonant frequency ωc. However, the realization of the infinity gain of the center frequency is not feasible. We need to add a cut-off frequency ωc to the equation [16].
G A C = K P + 2 K R ω c u t s s 2 + 2 ω c u t s + ω 2

2.2. Unbalanced Load Compensation

The unbalanced load is always associated with positive- and negative-sequence components. One way to solve the unbalanced load is to separately compensate these sequence signals using positive and negative sequence PI controllers as shown in Figure 2. Figure 2 shows a general solution to compensate AC power unbalance load using the positive and negative dq transformation. It is relatively complicated to realize the dq transformation because it needs a phase lock loop (PLL) to obtain the frequency information.
To reduce the complexity, the other way to deal with the AC signal is to use universal integral equation. The concept of the universal integration of a sinusoidal signal is shown in Figure 3 [17].
Figure 4 shows the positive sequence integral equation while Δω equals to 0 by applying L’Hopital’s Rule.
Likewise, Figure 5 shows the negative-sequence integral equation while Δω equals to −2ω,
Define the alpha and beta axes of the system,
[ e α e β ] = [ A sin   ( ω t + θ ) A cos   ( ω t + θ ) ]
The positive- and negative-sequence integral of the alpha and beta axes are illustrated by Equations (5) and (6), which can be depicted as shown in Figure 6 and Figure 7, respectively.
[ A sin ( ω t + θ ) d t A sin ( ω t + θ ) d t ] = [ s s 2 + ω 2 A sin ( ω t + θ ) + ω s 2 + ω 2 A cos ( ω t + θ ) s s 2 + ω 2 A sin ( ω t + θ ) ω s 2 + ω 2 A cos ( ω t + θ ) ]
[ A cos ( ω t + θ ) d t A cos ( ω t + θ ) d t ] = [ s s 2 + ω 2 A cos ( ω t + θ ) ω s 2 + ω 2 A sin ( ω t + θ ) s s 2 + ω 2 A cos ( ω t + θ ) + ω s 2 + ω 2 A sin ( ω t + θ ) ]
Obtaining the individual sinusoidal controller by cascading Figure 6 and Figure 7, the controller is shown in Figure 8.
Figure 8 shows two decoupled axes and the sinusoidal controller that can compensate not only positive but also negative sequence signal at the same time. The structure of the traditional dq transformed PI control (as shown in Figure 2) can be replaced by the structure of the αβ transformed integral control (as shown in Figure 8). The control structure is much simpler.

2.3. Nonlinear Load Compensation

The nonlinear load causes the non-sinusoidal current waveform that distorts output voltage with high order harmonics. The high THDv (voltage total harmonic distortion) may reduce the life-time and efficiency of the appliances. Figure 9 shows the phenomena of the nonlinear load pollution to the in-feed current of the linear load.
The nonlinear loads that cause higher order harmonics could be compensated by the PR controller. By setting the resonant frequency at the target frequency, PR controller can neutralize the component at that target frequency [18]. Figure 10 depicts an example of the PR controller to neutralize the fifth order harmonic component that is caused by the nonlinear load. When the PR controller is applied, the linear load would have a sinusoidal-like current in-feed that is shown in Figure 11.

2.4. Design Procedure of a Proportional and Resonant Controller

The PR controller is designed by the dual loop concept. Figure 12 shows the dual loop PR controller dealing with the aforementioned example. The transfer function and equivalent mathematical equation are expressed as follows. The voltage controller transfer function, G(s), is shown in Equation (7) where ωo is the fundamental frequency.
G ( s ) = K V P + 2 K V R 1 ω c u t 1 s s 2 + 2 ω c u t 1 s + ω o 2 + 2 K V R 5 ω c u t 5 s s 2 + 2 ω c u t 5 s + ( 5 ω o ) 2
The Current Controller Transfer Function, H(s), is shown in Equation (8).
H ( s ) = K I P + 2 K I R 1 ω c u t 1 s s 2 + 2 ω c u t 1 s + ω o 2
Open loop Transfer Function, T(s),
T ( s ) = 0.435 V d c ( 1 L C ) s 2 + ( R L L + 1 Z L C ) s + R L Z L L C
Sensor Delay Equivalent Transfer Function, D(s),
D ( s ) = 1 τ s + 1
The sensor delay block is neglected for simplicity. Several inferences are made from the closed loop transfer functions.
  • Inference 1: Steady state error of the voltage component at the xth order frequency is related to the resonant coefficient of voltage controller (KVRx).
  • Inference 2: Proportional coefficient of voltage and current controller (KVP, KIP) are related to the system’s frequency bandwidth.
  • Inference 3: Resonant coefficient of current controller (KIRx) is related to the response of inductor current. For example, KIR1 is related to transient response of the current component at fundamental frequency.
  • Inference 4: Resonant bandwidth of controller (ωcutx) at the order of frequency order selection x is related to its transient response.
The design criteria of the PR controller are listed in the following steps according to the aforementioned inferences.
  • Step 1: Obtain Open Loop Transfer Function
The coefficient of the PR controller is derived from the open loop transfer function of the power stage of the inverter system. Figure 13 shows the Bode plot of the inverter model.
  • Step 2: Determine System Bandwidth
Figure 14 shows that the system bandwidth is proportion to proportional coefficient in the PR controller. It is important to design the proportional coefficient in the appropriate region or system might become unstable. The upper limit of the proportional coefficient is dependent on the phase margin of the system. Assume that the phase margin should be larger than π/4, the proportional coefficients in relation to the upper bound of phase margin is shown in Equation (11).
π tan 1 ( I m [ K V P K I P T ( j ω c l o s e d ) ] R e [ K V P K I P T ( j ω c l o s e d ) ] ) π 4
The closed loop gain is shown in Equation (12).
Gainclosed_dc = Gainopen_dc + 20log|KVP| + 20log|KIP|
The lower limit of the coefficient is to make sure that the dc gain is not lower than 0 dB. Therefore, KVP and KIP need to follow the rule in Equation (13).
K V P K I P 10 G a i n o p e n _ d c 20
  • Step 3: Determine bandwidth of resonant controller, ωcut
The bandwidth of individual PR controller determines the transient response of the system. Wider bandwidth performs faster transient but impacts the phase margin of the system. To ensure enough phase margin, the bound of ωcut is selected according to Equation (14).
π [ tan 1 ( I m [ G ( j ω c u t ) H ( j ω c u t ) T ( j ω c u t ) ] R e [ G ( j ω c u t ) H ( j ω c u t ) T ( j ω c u t ) ] ) ] π 4
  • Step 4: Select Kvr1 and Kvr5 to suppress the steady state error of voltage component at specific frequency
To neutralize the higher order harmonic component in the output voltage (the fifth harmonics in this example), it is needed to focus on the target frequency component. The steady state error (e.s.s) of the output voltage is related to the resonant coefficient in the voltage controller. The associated relationship is illustrated by Equation (15) to Equation (18). We could obtain a lower error, e.s.s. from Equation (15) to Equation (16), by choosing higher gains (KVR1 or KVR5) of the voltage resonant controller from Equation (14) to Equation (15).
e . s . s ( j ω o ) = | 1 a ( j ω o ) | V m 1 * = | 1 | P 1 1 + P 1 | | V m 1 *
e . s . s ( j 5 ω o ) = | 1 a ( j 5 ω o ) | V m 5 * = | 1 | P 5 1 + P 5 | | V m 5 *
where P1 and P5 are
P 1 = ( K V P + K V R 1 ω c u t 1 ) ( K I P + K I R 1 ω c u t 1 ) ( 0.435 V d c ( 1 L C ) ω 0 2 + ( R L C + 1 Z L C ) j ω 0 + R L Z L L C )
P 5 = ( K V P + K V R 5 ω c u t 5 ) ( K I P + K I R 5 ω c u t 5 ) ( 0.435 V d c ( 1 L C ) ( 5 ω o ) 2 + ( R L C + 1 Z L C ) j 5 ω 0 + R L Z L L C )
Figure 15a shows the steady state error reduction using a high gain coefficient KVR1 at 60 Hz frequency. However, KVR1 has its own limitation in phase margin, which is shown in Figure 15b.
  • Step 5: Select KIR for the current controller
The current controller is usually designed to facilitate the current transient response. The higher order harmonic components shall not exist in the inductor current. For this reason, the higher order harmonic of the resonant coefficient on the PR controller is set to zero. The choice of fundamental resonant coefficient, KIR1, just follows the same rule as that of the voltage resonant coefficient.

3. Fast Fourier Transform

Fourier transform converts signals from time domain to frequency domain. The transformation contains the same information as the original signal but differs in the way the signal presented. Fast Fourier Transform (FFT) is an algorithm that can simplify computation process of discrete Fourier transform (DFT). FFT can be deduced from the definition of DFT in Equation (19),
X [ k ] = n = 0 N 1 x [ n ] e j 2 π N n k , k = 0 , 1 , 2 , , ( N 1 )
where N represents the number of points of DFT, x[n]s are the input samples in time domain, and X[k] represents the signal in frequency domain. The term E j 2 π N n k is called twiddle factor and is often represented as W N k .
Separating input signals into even and odd sequences as shown in Equation (20),
x 2 m = x 0 , x 2 , , x N 2 :   even   sequence x 2 m + 1 = x 1 , x 3 , , x N 1 :   odd   sequence
Substitute Equation (20) into Equation (19), the DFT equation can be expressed as Equation (21)
X [ k ] = m = 0 N 2 1 x 2 m e j 2 π N ( 2 m ) k + m = 0 N 2 1 x 2 m + 1 e j 2 π N ( 2 m + 1 ) k = m = 0 N 2 1 x 2 m e j 2 π N 2 ( 2 m ) k + ( e j 2 π N k ) × m = 0 N 2 1 x 2 m + 1 e j 2 π N ( 2 m + 1 ) k = E k + ( W N k ) × O k
where Ek represents the even-numbered DFT and Ok represents the odd-numbered DFT. The number of points of each DFT is N 2 . Due to the periodicity of DFT, E k + N 2 = E k = E k N 2 , O k + N 2 = O k = O k N 2 , the above equation is rewritten as follows.
X [ k ] = { E k + ( W N k ) × O k , 0 k N 2 E k N 2 + ( W N k ) × O k N 2 , N 2 k N
As twiddle factor has symmetry W N k + N 2 = W N k and periodicity W N 2 k + N 2 = W N 2 k , this allows us to cut the number of “twiddle factor” calculations into two. For 0 k N 2 Equation (23) is obtained.
X [ k ] = E k + ( W N k ) × O k X [ k + N 2 ] = E k ( W N k ) × O k
Equations (23) and (19) indicate that a DFT of length N can be decomposed into two DFTs of length N 2 . This process is called Cooley–Tukey algorithm [19,20]. The decomposition process is repeated log 2 N times. Comparing the complexity of DFT which takes O(N2) operations, FFT can compute the same DFT in only O(N log 2 N ) operations. Using this technique, the information of voltage spectrum can be quickly obtained.

4. Predictive Current Controller

4.1. Operating Principle of the Predictive Control

The predictive controller can also be called the deadbeat controller, which is translated as “minimum beat control” or “no oscillation control”. It is expected that this word can fully explain its concept. The predicted signal can be obtained through the construction and derivation of the circuit model in advance. With the feedback signal (voltage or current, etc.), the circuit model can give an expected signal before the next cycle of switching modulation [21,22]. To obtain the modulated signal in advance, the following principles must be met.
2 f s w f s
where
  • f s w —switching frequency.
  • f s —analog to digital sampling rate.
Figure 16 is shown to illustrate the operating principle, where:
  • n t h ~ ( n + 2 ) t h —modulation time stamp.
  • ( k 4 ) t h ~ ( k + 4 ) t h —sampling time stamp.
Figure 16 shows that the sampling frequency used in this system is four times the switching frequency. The figure shows the process of current convergence after two cycles of modulation. It is expected that the current control mechanism can make the current in the (k + 4)th step to achieve our control objective. Before the start of the (n + 2)th modulation period, it is expected that the current controller can reduce the deviation (Δi) generated in the nth period through the modulation action of the previous (n + 1)th modulation period, so that the controlled current can closely track the current command. In the next section, the PC controller model will be derived.

4.2. Modeling of the Predictive Current Control

The derivation of the current control model shall start with the derivation of the voltage–current relationship of the filtering inductor, which is shown in Figure 17 and Equation (25).
v L = L d i L d t
Applying the discrete signal concept, the inductor current in the next two steps can be expressed in the forms of Equations (26) and (27).
i L ( k + 1 ) = v i ( k ) v o ( k ) 2 L D n T s + i L ( k )
i L ( k + 2 ) = v i ( k + 2 ) v o ( k + 2 ) 2 L ( 1 D n ) T s + i L ( k + 1 )
where Dn is the duty ratio, TS is the switching period. Within a modulation cycle, the modulation signals are the same, so the output voltage of the converter is the same.
v i ( n + 1 ) = v i ( k ) = v i ( k + 2 )
Substituting Equations (26) and (27) into Equation (28), Equation (29) is obtained.
v i ( n + 1 ) = 2 L T s [ i L ( k + 2 ) i L ( k ) ] + ( 1 D n ) v o ( k + 2 ) + D n v o ( k )
The voltage and current variables at this time still include the future voltage and current components, the following steps are taken to carry out the predictive control:
  • Step 1: i L ( k ) should be re-formulated as follows.
    i L ( k ) = T s 2 L v i ( n ) T s 2 L ( 1 D n , o l d ) v o ( k 2 ) T s 2 L D n , o l d v o ( k ) + i L ( k 2 )
  • Step 2: Through the concept of Lagrange multiplier, the signal can be predicted in a linear way
    v o ( k + 2 ) = 3 v o ( k 2 ) 2 v o ( k 4 )
    v o ( k ) = 2 v o ( k 2 ) v o ( k 4 )
  • Step 3: The variation of the duty cycle during the steady state period is almost 0, let
    D n D n , o l d
The predicted voltage variable vi is obtained.
v i ( n + 1 ) = 2 L T s [ i L ( k + 2 ) i L ( k 2 ) ] + 4 v o ( k 2 ) 2 v o ( k 4 ) v i ( n )
Equation (34) implies a chance to further reduce the sampling frequency from four times the switching frequency to twice the switching frequency. This way can reduce the computational burden of the signal processor but keep the same effect. The updated vi becomes
v i * ( n + 1 ) = 2 L T s [ i L * ( k + 1 ) i L ( k 1 ) ] + 4 v o ( k 1 ) 2 v o ( k 2 ) v i ( n )
Equation (35) shows that the next step voltage, v i * ( n + 1 ) , can be predicted from the present and past feedback signals on the right-hand side. This model can help improve the system transient response.

5. Automatic Voltage Compensation Strategy

Theoretically, any voltage harmonics at PCC can be compensated by the individual resonant controller for that specific order of frequency. However, a distorted voltage could contain harmonics with many frequency orders. It is not economical to compensate all the harmonics due to the restriction of the hardware. Under limited controller resources, only dominant voltage harmonic components are to be neutralized. Except the resonant controller tuned at fundamental frequency ω 0 , two higher order voltage harmonics are considered. The design of the automatic voltage compensation is shown as follows.
  • Step 1: Set parameters of resonant controllers
Several sets of PR controllers that compensate specific order of the fundamental frequency are formed and saved in the DSP memory.
  • Step 2: Sample voltage feedback signal
Sample the feedback signal of voltage at PCC. Note that the size of FFT needs to be the power of 2, such as 256, 512, 1024, etc. If the sampling number cannot fit the size, it can insert zero-value samples to meet (zero-stuffing), but the results may be distorted and need to be adjusted.
  • Step 3: Execute FFT
Execute FFT of signal from Step 2 to acquire the voltage spectrum at PCC.
  • Step 4: Identify the major harmonic component
Calculate the amplitude of each harmonics and pick the highest two components (for example, the fifth and seventh order harmonics) as indices for the resonant controller selection.
  • Step 5: Choose the corresponding resonant controllers
Use the indices acquired from Step 4 to choose the resonant controllers that are set in Step 1 for that specific frequency (for example, the PR controller tuned at 300 Hz and 420 Hz).
  • Step 6: Integrate PC controller into the PR controller
Integrate the PC control loop into the PR control voltage loop together for voltage regulation. Figure 18 shows the Schematic diagram of the PR Controller integrating with PC Controller within a VSC.

6. Experimental Results

We implemented the FFT and controllers of the three-phase stand-alone VSI using the DSP manufactured by TEXAS INSTRUMENT®. The input DC bus voltage and AC output voltage is 360 V and 110 V in RMS, respectively. The loading conditions could be nonlinear and unbalanced. Two experiments were conducted to verify the effectiveness of the automatic voltage compensation. The experimental results were measured by the power analyzer HIOKI 3390.

6.1. Unbalanced Load Test

Without grid voltage support, the three-phase line-to-line voltage of the grid forming inverter-fed AC system could be very sensitive to unbalanced loading condition. Figure 19 shows waveforms of the inverter line-to-line output voltage and line current at PCC. A single-phase load with 1142 W was connected between phase a and b. The phase c is unloaded. Figure 19 shows that the magnitudes of line current Ia and Ib are quite evident compared to that of Ic, while the three-phase line-to-line voltages remain the same. The compensated %VUR measure was 0.12%, which was far below the standard of NEMA (%VUR < 3%). This experiment verifies that three-phase line-to-line voltages still keep in balance under unbalanced loading condition.

6.2. Unbalanced Load Plus Nonlinear Load Test

In the next test, a star connected unbalanced resistive load with a nonlinear load that consists of a 200 W three-phase full-bridge rectifier, in parallel with a 470 μF capacitor and a 100 Ω resistor were used to test the inverter. System configuration of the three-phase inverter serving the unbalanced as well as the nonlinear load is shown in Figure 20. In addition to the unbalanced condition, another test was made to evaluate the effectiveness of the proposed resonant controller in reducing the total harmonic distortion of line-to-line voltage.
Figure 21 shows the load test results using different resonant controller settings. The harmonics identification using different PR controllers for voltage compensation is shown in Figure 21a, where Mag_1st and Mag_2nd represent the highest two harmonics components. The subplot at the top of Figure 21a shows that the uncompensated voltage contains the fifth and seventh order harmonics in the beginning. After using the PR controller with (60 + 300 Hz) harmonics compensation, the fifth harmonics was decreased. The subplot in between of Figure 21a shows that the fifth order harmonics was no longer the highest one. The highest two harmonics became the order of seventh and third. Following that, a further compensation of the seventh harmonics was also made using the PR controller. The subplot at the bottom of Figure 21a shows that the fifth and seventh order harmonics were decreased. The highest two harmonics became the order of 11th and third. Although the highest two harmonics switched to the other order, the magnitudes were lower. Figure 21d demonstrates the voltage harmonic spectra measured from the PCC. The voltage spectrum validates the result of harmonics identification that is shown in Figure 21a. Figure 21b shows the %THDv (Voltage Total Harmonic Distortion) measured from different PR voltage compensation. The decrease from 5.84% to 2.89% proves that this control strategy can effectively improve voltage quality. The changes of voltage waveforms are shown in Figure 21c. Note that the harmonic compensation of the VSI is automatically executed. The FFT program first identified the orders of the highest two harmonic component, then the corresponding settings of the resonant controller were used to neutralize the identified harmonic components.
Table 1 shows the steady-state operating test of the dual PR and PR + PC controlled VSIs under the unbalanced and nonlinear loading condition. The PR controller that was used for both VSIs were designed to compensate 60 + 300 + 420 Hz components. The results of Table 1 show the PR + PC controlled voltage and current harmonic distortions, as well as the phase voltage unbalance rate are lower than that of the dual PR controlled VSI, which means that the power quality is better. The next section will further analyze the data and waveform measurement of the control structure with the resonant controller and the PC control.

6.3. Transient Load Test

In the transient load test, a comparison of the response speed between the dual PR controllers and a PR controller combined with the PC control was made. The initial loading condition of this experiment was a three-phase balanced load of 200 W, then a load of 1000 W was suddenly applied to phase a.
Figure 22a,b are the testing result of the VSI implemented by the dual PR controllers and the PR controller combined with the PC controller, respectively. Figure 22a shows that the voltage peak momentarily decreased by about 10 V, while the current had 2A fluctuation during the transient state. The 1000 W load was instantaneously applied to make the current transient for 150 ms until it reached steady state again. Figure 22b shows that the voltage peak also momentarily decreased by about 10 V, then the voltage and current returned to steady state in just about 50 ms. There was no current fluctuation during transient state, which helped improve the system stability. The testing case shows that a PR + PC controller outperforms the dual PR controllers in the transient response.

7. Conclusions

This paper demonstrates a turn key solution for a VSI to compensate unbalanced and nonlinear load conditions in a grid forming microgrid. The operating principle and the design flow of the PR as well as the PC controller are illustrated in detail for the purpose of compensation on unbalanced and nonlinear load. With the embedded FFT identification technique, the PR controlled VSI can automatically neutralize the most influential harmonic components to improve the voltage quality. The PC controller can help advance current sampling inside the current control loop to minimize the digital control latency. The steady-state and transient tests were conducted to validate the effectiveness of the proposed control scheme. Testing results show that the VSI not only keeps voltage balance under unsymmetrical loading condition, but also reduces the %THDv at the PCC under nonlinear load. The PC controller can help enhance both steady-state and transient performances under the digital implementation.

Author Contributions

The conceptualization, review and editing, and funding acquisition were contributed by the project manager L.-R.C.-C. The implementation of the proposed methodology, software development and circuit performance validation were conducted by X.-H.G. and C.-W.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the ministry of science and technology of Taiwan under grant: MOST 110-3116-F-006-002-.

Acknowledgments

This research was funded by the ministry of science and technology of Taiwan under grant: MOST 110-3116-F-006-002-.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Do, T.D.; Leu, V.Q.; Choi, Y.-S.; Choi, H.H.; Jung, J.-W. An Adaptive Voltage Control Strategy of Three-Phase Inverter for Stand-Alone Distributed Generation Systems. IEEE Trans. Ind. Electron. 2013, 60, 5660–5672. [Google Scholar] [CrossRef]
  2. Wai, R.-J.; Lin, C.-Y.; Huang, Y.-C.; Chang, Y.-R. Design of High-Performance Stand-Alone and Grid-Connected Inverter for Distributed Generation Applications. IEEE Trans. Ind. Electron. 2013, 60, 1542–1555. [Google Scholar] [CrossRef]
  3. Nian, H.; Shen, Y.; Yang, H.; Quan, Y. Flexible Grid Connection Technique of Voltage-Source Inverter Under Unbalanced Grid Conditions Based on Direct Power Control. IEEE Trans. Ind. Appl. 2015, 51, 4041–4050. [Google Scholar] [CrossRef]
  4. Das, B.; Panigrahi, P.K.; Das, S.R.; Mishra, D.P.; Salkuti, S.R. Power quality improvement in a photovoltaic based microgrid integrated network using multilevel inverter. Int. J. Emerg. Electr. Power Syst. 2021. [Google Scholar] [CrossRef]
  5. El Mariachet, J.; Guan, Y.; Matas, J.; Martín, H.; Li, M.; Guerrero, J.M. HIL-Assessed Fast and Accurate Single-Phase Power Calculation Algorithm for Voltage Source Inverters Supplying to High Total Demand Distortion Nonlinear Loads. Electronics 2020, 9, 1643. [Google Scholar] [CrossRef]
  6. Jun, E.-S.; Park, S.-y.; Kwak, S. Model Predictive Current Control Method with Improved Performances for Three-Phase Voltage Source Inverters. Electronics 2019, 8, 625. [Google Scholar] [CrossRef] [Green Version]
  7. Haque, M.E.; Muttaqi, K.M.; Negnevitsky, M. Control of a Stand Alone Variable Speed Wind Turbine with a Permanent Magnet Synchronous Generator. IEEE Power Energy Soc. Gen. Meet. 2008, 1–8. [Google Scholar]
  8. Das, S.; Ray, P.; Sahoo, A.; Ramasubbareddy, S.; Babu, T.; Kumar, N.; Elavarasan, R.; Mihet-Popa, L. A Comprehensive Survey on Different Control Strategies and Applications of Active Power Filters for Power Quality Improvement. Energies 2021, 14, 4589. [Google Scholar] [CrossRef]
  9. Ray, A.S.; Bhattacharya, A. Improved tracking of shunt active power filter by sliding mode control. Int. J. Electr. Power Energy Syst. 2016, 78, 916–925. [Google Scholar]
  10. Fei, J.; Zhang, S.; Zhou, J. Adaptive Sliding Mode Control of Single-Phase Shunt Active Power Filter. Math. Probl. Eng. 2012, 2012, 1–22. [Google Scholar] [CrossRef]
  11. Ghamri, A.; Benchouia, M.T.; Golea, A. Sliding-mode control based three-phase shunt active power filter: Simulation and experimentation. Electr. Power Compon. Syst. 2012, 40, 383–398. [Google Scholar] [CrossRef]
  12. Fei, J.; Liu, N.; Hou, S.; Fang, Y. Neural Network Complementary Sliding Mode Current Control of Active Power Filter. IEEE Access 2021, 9, 25681–25690. [Google Scholar] [CrossRef]
  13. Swain, S.; Panda, P.C.; Subudhi, B.D. Three phase shunt Active Power Filter using a new Weighted Adaptive Hysteresis Band Current Controller. In Proceedings of the 2014 International Conference on Circuit, Power and Computing Technologies (ICCPCT 2014), Nagercoil, India, 20–21 March 2014; pp. 781–786. [Google Scholar]
  14. Rodriguez, P.; Candela, J.I.; Luna, A.; Asiminoaei, L.; Teodorescu, R.; Blaabjerg, F. Current harmonics cancellation in three-phase four-wire systems by using a four-branch star filtering topology. IEEE Trans. Power Electron. 2009, 24, 1939–1950. [Google Scholar] [CrossRef] [Green Version]
  15. Teodorescu, R.; Blaabjerg, F.; Liserre, M.; Loh, P.C. Proportional-resonant controllers and filters for grid-connected voltage-source converters. Electr. Power Appl. IEE Proc. 2006, 153, 750–762. [Google Scholar] [CrossRef] [Green Version]
  16. Yuan, X.; Merk, W.; Stemmler, H.; Allmeling, J. Stationary-Frame Generalized Integrators for Current Control of Active Power Filters With Zero Steady-State Error for Current Harmonics of Concern Under Unbalanced and Distorted Operating Conditions. IEEE Trans. Ind. Appl. 2002, 38, 523–532. [Google Scholar] [CrossRef]
  17. Hsu, P.; Behnke, M. A Three-phase Synchronous Frame Controller for Unbalanced Load. Power Electron. Spec. Conf. 1998, 2, 1369–1374. [Google Scholar]
  18. Sato, Y.; Ishizuka, T.; Nezu, K.; Kataoka, T. A New Control Strategy for Voltage-Type PWM Rectifiers to Realize Zero Steady-State Control Error in Input Current. IEEE Trans. Ind. Appl. 1998, 34, 480–486. [Google Scholar] [CrossRef]
  19. Zhi, D.; Yimeng, Z.; Zhiping, H.; Guilin, T.; Chunwu, L. Simulation and Application of FFT Based Pipelined Stream. Int. Conf. Inf. Eng. Comput. Sci. 2009. [Google Scholar]
  20. Cyre, W.; Lipovski, G. On Generating Multipliers for a Cellular Fast Fourier Transform Processor. IEEE Trans. Comput. 1972, c-21, 83–87. [Google Scholar] [CrossRef]
  21. Holmes, D.; Martin, D. Implementation of a direct digital predictive current controller for single and three-phase voltage source inverters. Ind. Appl. Conf. 1996, 2, 906–913. [Google Scholar]
  22. Rodriguez, J.; Pontt, J.; Silva, C.; Correa, P.; Lezana, P.; Cortes, P.; Ammann, U. Predictive Current Control of a Voltage Source Inverter. IEEE Trans. Ind. Electron. 2007, 54, 495–503. [Google Scholar] [CrossRef]
Figure 1. Schematics of the VSI within a three-phase stand-alone system.
Figure 1. Schematics of the VSI within a three-phase stand-alone system.
Electronics 11 00886 g001
Figure 2. The conventional structure for unbalance component compensation.
Figure 2. The conventional structure for unbalance component compensation.
Electronics 11 00886 g002
Figure 3. Universal integral equation.
Figure 3. Universal integral equation.
Electronics 11 00886 g003
Figure 4. Positive sequence integral equation.
Figure 4. Positive sequence integral equation.
Electronics 11 00886 g004
Figure 5. Negative sequence integral equation.
Figure 5. Negative sequence integral equation.
Electronics 11 00886 g005
Figure 6. Positive-sequence of alpha and beta axes.
Figure 6. Positive-sequence of alpha and beta axes.
Electronics 11 00886 g006
Figure 7. Negative-sequence of alpha and beta axes.
Figure 7. Negative-sequence of alpha and beta axes.
Electronics 11 00886 g007
Figure 8. Integral of alpha and beta axis.
Figure 8. Integral of alpha and beta axis.
Electronics 11 00886 g008
Figure 9. Current waveforms under the nonlinear load condition.
Figure 9. Current waveforms under the nonlinear load condition.
Electronics 11 00886 g009
Figure 10. PR controller to neutralize the fifth order harmonic component.
Figure 10. PR controller to neutralize the fifth order harmonic component.
Electronics 11 00886 g010
Figure 11. The current waveforms under the compensated nonlinear load condition.
Figure 11. The current waveforms under the compensated nonlinear load condition.
Electronics 11 00886 g011
Figure 12. The dual loop PR controller block.
Figure 12. The dual loop PR controller block.
Electronics 11 00886 g012
Figure 13. Bode plot of the open loop transfer function of the three-phase inverter.
Figure 13. Bode plot of the open loop transfer function of the three-phase inverter.
Electronics 11 00886 g013
Figure 14. Variation of the proportional coefficient of the PR controller (a) Voltage resonant controller (b) Current resonant controller.
Figure 14. Variation of the proportional coefficient of the PR controller (a) Voltage resonant controller (b) Current resonant controller.
Electronics 11 00886 g014
Figure 15. Variation of the voltage resonant coefficient KVR1 of the PR controller on (a) amplitude (b) phase.
Figure 15. Variation of the voltage resonant coefficient KVR1 of the PR controller on (a) amplitude (b) phase.
Electronics 11 00886 g015
Figure 16. Predictive controller signal waveform (a) Digital controller built-in counter (b) Command current and feedback current.
Figure 16. Predictive controller signal waveform (a) Digital controller built-in counter (b) Command current and feedback current.
Electronics 11 00886 g016
Figure 17. Circuit diagram of voltage–current relationship of the filtering inductor.
Figure 17. Circuit diagram of voltage–current relationship of the filtering inductor.
Electronics 11 00886 g017
Figure 18. Schematic diagram of PR Controller with PC Controller within a VSC.
Figure 18. Schematic diagram of PR Controller with PC Controller within a VSC.
Electronics 11 00886 g018
Figure 19. Waveforms of inverter output voltage and current under unbalanced load.
Figure 19. Waveforms of inverter output voltage and current under unbalanced load.
Electronics 11 00886 g019
Figure 20. System configuration of the three-phase inverter serving both unbalanced and nonlinear loads.
Figure 20. System configuration of the three-phase inverter serving both unbalanced and nonlinear loads.
Electronics 11 00886 g020
Figure 21. Nonlinear load (three-phase full bridge rectifier) compensated by different PR controllers (a) harmonics identification using FFT algorithm (b) THDv (c) voltage waveforms (d) voltage harmonic spectra measured from power analyzer.
Figure 21. Nonlinear load (three-phase full bridge rectifier) compensated by different PR controllers (a) harmonics identification using FFT algorithm (b) THDv (c) voltage waveforms (d) voltage harmonic spectra measured from power analyzer.
Electronics 11 00886 g021
Figure 22. Voltage waveforms when the 1000 W load was instantaneously loaded to a VSI with (a) Dual PR controller (b) PR controller combined with PC controller.
Figure 22. Voltage waveforms when the 1000 W load was instantaneously loaded to a VSI with (a) Dual PR controller (b) PR controller combined with PC controller.
Electronics 11 00886 g022
Table 1. Measurement data of the dual PR and PR + PC controlled VSIs under the unbalanced and nonlinear loading test.
Table 1. Measurement data of the dual PR and PR + PC controlled VSIs under the unbalanced and nonlinear loading test.
Dual PR ControllerPR + PC Controller
Loading condition25 Ω, 5 Ω, 50 Ω + 100 Ω25 Ω, 25 Ω, 50 Ω + 100 Ω
Output voltage (Vrms)110.51 Vrms109.75 Vrms
Output current (Irms)2.62 A(25 Ω), 1.5 A(50 Ω)2.61 A(25 Ω), 1.49 A(50 Ω)
%THDv (%)4.41%3.15%
%THDi (%)3.54%2.91%
%VUR (%)0.5%0.13%
Input power (W)715.1 W717.7 W
Output power (W)557.73 W557.03 W
Total efficiency (%)77.99%77.61%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Guo, X.-H.; Chang, C.-W.; Chang-Chien, L.-R. Digital Implementation of Harmonic and Unbalanced Load Compensation for Voltage Source Inverter to Operate in Grid Forming Microgrid. Electronics 2022, 11, 886. https://doi.org/10.3390/electronics11060886

AMA Style

Guo X-H, Chang C-W, Chang-Chien L-R. Digital Implementation of Harmonic and Unbalanced Load Compensation for Voltage Source Inverter to Operate in Grid Forming Microgrid. Electronics. 2022; 11(6):886. https://doi.org/10.3390/electronics11060886

Chicago/Turabian Style

Guo, Xiu-Hua, Che-Wei Chang, and Le-Ren Chang-Chien. 2022. "Digital Implementation of Harmonic and Unbalanced Load Compensation for Voltage Source Inverter to Operate in Grid Forming Microgrid" Electronics 11, no. 6: 886. https://doi.org/10.3390/electronics11060886

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop