A phase-locked loop using ESO-based loop filter for grid-connected converter: performance analysis

An extended state observer (ESO)-based loop filter is designed for the phase-locked loop (PLL) involved in a disturbed grid-connected converter (GcC). This ESO-based design enhances the performances and robustness of the PLL, and, therefore, improves control performances of the disturbed GcCs. Besides, the ESO-based LF can be applied to PLLs with extra filters for abnormal grid conditions. The unbalanced grid is particularly taken into account for the performance analysis. A tuning approach based on the well-designed PI controller is discussed, which results in a fair comparison with conventional PI-type PLLs. The frequency domain properties are quantitatively analysed with respect to the control stability and the noises rejection. The frequency domain analysis and simulation results suggest that the performances of the generated ESO-based controllers are comparable to those of the PI control at low frequency, while have better ability to attenuate high-frequency measurement noises. The phase margin decreases slightly, but remains acceptable. Finally, experimental tests are conducted with a hybrid power hardware-in-the-loop benchmark, in which balanced/unbalanced cases are both explored. The obtained results prove the effectiveness of ESO-based PLLs when applied to the disturbed GcC.


Introduction
Grid-connected converters (GcCs) have various applications such as grid-integrated renewable energy generation systems [1], active power filters [2], uninterruptible power supplies [3], etc. The phase-locked loop (PLL) is widely used for the GcCs to obtain the information of the voltage phase and the grid frequency [4,5]. A PLL is a closed-loop feedback control system, which consists of three basic elements: phase detector, loop filter (LF), and voltage-controlled oscillator [5]. The LF is used to suppress disturbances inside the PLL control loop. The tracking characteristics, response dynamics, and stability properties of the PLL are also mainly determined by the LF [5]. The PLLs commonly use a PI controller as the LF [4][5][6][7]. However, the PLL control systems involve various disturbances such as phase jumps, frequency deviations, voltage magnitude variations, and nonlinear dynamics [6][7][8][9][10]. The PLL systems may loose its synchronization after a sudden large disturbance [11,12].
Large efforts are devoted to enhancing the steady-state performance and the quality of the transient of conventional PLLs. The author of [4] reviews various types of LFs including Type-1, quasi-Type-1, quasi-Type-2, and Type-3, which are applied for particular purposes. Moreover, the grid voltage measurements involve switching noises and ripples, and sensor noises [13,14]. Under such circumstances, the expected results of PLL would be not reliable. Some works 1 3 attempt to use the prefilter before its input or add the lowpass filler inside the control loop to address such issues [13,14]. Furthermore, some adaptive LF-based PLLs are proposed such as the adaptive frequency estimation loop design [15] and the adaptive loop gain mechanism [16]. However, the strategy proposed in [15] has a high requirement on the PLL control input. The adaptive loop gain may cause oscillations problems [16].
The extended state observer (ESO) is a partial-modelbased observer, which is first defined in the frame of active disturbance rejection control (ADRC) [17]. Although it is originally proposed in a nonlinear structure [17], a linear ESO has been increasingly used as it is easier to design and simpler to implement [18]. The ESO-based control treats all disturbed factors affecting the plant such as system nonlinearities, uncertainties, and external disturbances as a generalized disturbance [17]. The generalized disturbance is then observed by ESO and compensated into the closedloop dynamics. Such structure enables excellent capabilities in dealing with disturbances or uncertainties [19]. Moreover, the previous work indicates that the ESO-based control achieves better ability to attenuate high-frequency noises [20]. This work attempts to exploit the ESO's potential advantages to achieve an efficient and robust PLL system, and therefore, improve control performances of the disturbed GcCs.
The previous works commonly compare the ESO-based controller with PI controllers to verify its effectiveness [21][22][23]. The critical point is to determine under which conditions, the comparison might be viewed as fair. The conventional PI is a single-degree-of-freedom controller [24]. The proportional term and integral term are selected by considering the stability conditions and the quality of the transient [7]. An ESO-based controller, however, is a two-degree-of-freedom (2DOF) controller [25]. The controller bandwidth and the observer bandwidth can be adjusted separately. The observer bandwidth is mainly limited by sensor sensitivity [26]. In [8], a linear ESO is used to enhance control dynamics of the PLL. The natural frequency of PI closed-loop control system and the control bandwidth of ESO-based control are tuned to be the same for the comparison study [8]. However, such comparison is not really fair [20]. The authors of [20] formulate the linear ADRC by a feedback compensator with a prefilter. The compensator can be generated with a PI controller filtered by a low-pass filter [20]. The tuning approach discussed in [20], which is based on the well-tuned parameters of PI controller, is considered in this work. The feedback compensator is tuned to have almost the same gain at cross frequency with the PI control system, which results in a relatively fair comparison between these two different types of controllers.
This work can be viewed as an extension of our previous work [8], which particularly deals with the following three aspects:

ESO-based SRF-PLL design
An ESO-based synchronous reference frame phase-locked loop (SRF-PLL) is shown in Fig. 1. In the figure, v a , v b , v c are the three-phase grid voltages, v de , v qe are the voltages in a rotating dq reference frame, V m is the magnitude of grid voltage, g is the grid nominal angular frequency, ̂ is the estimated grid angular frequency, Δ̂ is the estimated angular frequency deviation, is the actual phase angle of grid voltage, and ̂ is the estimated phase angle of grid voltage. Moreover, the general design rules for an SRF-PLL have been highlighted in [10], which are also followed in this work.
The proposed ESO-based LF can be incorporated into SRF-PLLs equipped with additional filters for abnormal grid conditions, whose filters are placed before its input [27] or inside the control loop [28]. Two representative designs under unbalanced grid, decoupled PLL (DPLL) [27] and moving average filter (MAF)-PLL [28], as illustrated in Figs. 2 and 3, are particularly studied for the performance analysis. The design details of DPLL/MAF-PLL can be found in previous works [27,28].

SRF-PLL modelling
The modelling of SRF-PLL is briefly reviewed (see Fig. 1). The grid voltages are generally represented by where is the phase angle and V m is the voltage magnitude.
The v dqe = [v de , v qe ] T under a synchronous dq frame can be transformed by: with the phase difference =̂− . For small values of , the term sin behaves linearly as follows [7]: As indicated by (3), the v qe contains the phase error information of the actual phase angle and the estimated phase angle ̂ [7]. Therefore, the phase-locked mechanism can be achieved by controlling the q-axis voltage v qe to be zero. The relation between v qe and ̂ is derived by where = d dt and ̂= dd t are the actual and estimated frequency, respectively.

Extended state observer
A linearised model of ESO-based SRF-PLL control system is detailed in Fig. 4. The ESO can estimate the total disturbances and track the information of the output y = v � qe simultaneously. The estimated output x 1 is disturbance-free, with less measurement noises. The estimated disturbances x 2 are compensated into the signal u 0 . A proportional controller k p is employed to regulate the q-axis voltage. We can choose either the estimated x 1 via an ESO or the measured output by the voltage sensor as the feedback signal, as shown in Fig. 4. If we use the estimated x 1 to compare with the reference for the feedback control, the design is actually the same as a first-order linear ADRC PLL. We could also use the measurement as the feedback on condition that the voltage sensor has a good noise rejection ability. Otherwise, the measurement noises would be introduced into the closed-loop control system via the feedback. For the second case, the ESO is only used for observing the total disturbances. Note that the estimated x 1 is chosen as the feedback signal to present the controller design, the tuning approach, and the forthcoming stability analysis.
A key procedure is to reformulate a practical control issue to the canonical model of cascade integrators with total disturbances [29]. Based on expression (4) and Fig. 4, the manipulation is conducted as follows: A proper disturbance definition is critical to enable a highefficiency ESO [29]. Since, in the PLL, the v de is the realtime estimation of V m , the control gain b = V m ∕v de approximates 1. Therefore, the estimation of control gain is set to b 0 = 1 . Besides, the nominal grid frequency g is feed-forwarded in the control input. Such operation helps improving the ESO estimation's efficiency [29]. Finally, the total disturbance d is formulated by where (b − b 0 )Δ̂ is due to the small mismatch between b and b 0 , g − is the grid frequency variations, and w represents the extra unknown input disturbances induced by phase jumps, time-varying parameters, nonlinear dynamics, etc.
In the sequel, the following definitions are used: Δ̂ is the control input u, v * qe is the reference r, v ′ qe is the output y, which is defined as a state variable by x 1 = v � qe , d is treated as an extended state variable, and expressed by x 2 = d , and its time derivative is given by ̇x 2 = h [8]. Now, the state space model is built as follows: Based on (7), the ESO can be formulated as follows: By subtracting (8) from (7), the error dynamics are defined by: where e 1 = x 1 −x 1 is the state estimation error, and e 2 = x 2 −x 2 is the disturbances estimation error.
The positive gains of ESO are given by 1 = o and 2 = 2 o , the coefficient = 2 is commonly chosen for the Hurwitz stable consideration [18], and the o is referred to as the bandwidth of ESO. The coefficient is introduced to ensure the control stability for the PLL with in-loop filter [28]. Regarding the classical definition in [18], the o cannot be called the bandwidth of ESO for ≠ 2 . Then, the o can be viewed as a general parameter to be tuned.

Control law formulation
Based on Fig. 4, the control law is represented by The original plant model is reduced to be an integrator within the ESO's bandwidth [30,31]. Therefore, we can approximate the closed-loop transfer function by with the closed-loop control bandwidth c ≈ k p .

Tuning approach
The previous research [20] has proved that, under some conditions, a first-order ESO-based controller can stabilize the plant if it can be stabilized by a PI controller. Therefore, we can configure an ESO-based controller based on a welltuned PI controller. More importantly, such design enables a relatively fair comparison between the PI and the ESO-based controller.

Formulation of 2DOF block diagram
First, the transfer functions can be obtained from (5)-(10) as follows: where r(s), u(s), and y(s) are the Laplace transforms of r = v * qe , u = Δ̂ , and y = v � qe , respectively. By introducing the following notations: the ESO-based controller is formulated to a 2DOF closedloop system as shown in Fig. 5a. Now, we have a similar structure as a classical PI control system Fig. 5b except the prefilter. The authors of [32] indicate that the prefilter does not affect the feedback properties.

Updating ESO-based controller with PI controller
The feedback compensator C(s) can be updated with a PI controller filtered by a low-pass filter as follows: The well-tuned PI controller is expressed by with where the gain correction factor N is introduced to ensure that the ESO-based control has the similar behaviour with PI control in low frequency. By solving Eq. (18), we have Note that the denominator ( K P o − 2K I ) in Eq. (19) must be positive to satisfy the stability condition, leading to the following expression: Once the parameters and o are determined, the gain correction factor N can be obtained with Eq. (18). As shown in Fig. 6, the transfer functions (14) and (16) present the same bode behaviours by introducing the gain correction factor. The gain correction factor N is introduced to ensure that the ESO-based control has the similar behaviour with PI control in low frequency. Otherwise, there would exist a constant gain difference between them. The parameters tuning guidelines will be detailed as follows.

Tuning guidelines
Now, we can generate the ESO-based controller with the PI controller. Based on the above discussions, the tuning guidelines are summarized as follow: • First, we choose the well-tuned PI parameters that have been validated in previous works. • Regarding the parameter b 0 , since, in the PLL, the v de is the real-time estimation of V m , the control gain b = V m ∕v de approximates 1. It is reasonable to set the estimation of control gain to b 0 = 1. • The coefficient = 2 is commonly chosen for the Hurwitz stable consideration [18]. Starting from o > K I ∕K P , we increase o for Eqs. (16)- (19) until reaching noise limitations [26]. • Then, the parameters N and c are the solutions of (18)- (19), respectively. • Note that, for a PLL with in-loop filter, the coefficient has to be corrected to ensure the control stability. • Finally, it is mandatory to validate the applied parameters of ESO-based controller in the physical tests.
The parameters of the chosen PI controllers for PLLs are given in Table 1. The parameters K P and K I for SRF-PLL are selected based on the design method described in [7]. Besides, the well-designed parameters for the DPLL and the MAF-PLL provided in [27,28] are considered, as well.

Frequency domain analysis
The stability index is a crucial factor for evaluating the quality of a controller [10,20,33]. An ESO-based PLL is described in [8]; however, no detailed stabilities analyses are provided. The stability properties are, therefore, quantitatively analysed in this work. Besides, the high-frequency noise rejection ability and the closed-loop performance are analysed, as well. The noise suppression effect of ESO itself is also presented. Note that the tuning guidelines discussed in Sect. 3 will be followed in the forthcoming analysis.

Stabilities analysis
The stability of the prefilter H(s) (15) is guaranteed, as all coefficients of its denominator are positive [33]. Indeed, the prefilter does not affect the feedback properties [32]. Therefore, the closed-loop stability can be determined by the forward gain transfer function, which is given by where the plant model is G p (s) = b∕s , and b = V m ∕v de . The stability will be analysed with respect to the observer bandwidth o , the robustness for plant model uncertainness, and the effects of extra filters. The bode diagram of L(s) = C(s)G p (s) is shown in Fig. 7, with o ∈ {3 n , 5 n , 7 n } rad/s. The remaining parameters  DPLL [27] k f = 0.707 , K DP = 222 , K DI = 24649 MAF-PLL [28] T w = 0.01s , K MP = 83 , K MI = 2893 Fig. 7 Bode plots of L(s) for o ∈ {3 n , 5 n , 7 n } are selected by following the tuning guidelines summarized in Sect. 3. Figure 7 shows that, in low-frequency range, the ESO-based control behaves closely to the bode feature of the PI controller. Compared to the PI controller, however, its stability margin decreases due to the effect of low-pass filter. The phase margin (PM) within a range of 30 • ∼ 60 • is commonly recommended regarding the control stability [28]. Therefore, the phase margin remains acceptable ( PM > 50 • ). It can also be observed that the PM increases with larger o , which can therefore enhance the control stabilities. However, the o cannot be too large, because it is limited by sensor noises and practical considerations. The parameter o must be validated in practical conditions. The stability of the control system can be affected by the plant model discrepancies. The main uncertain parameter for the SRF-PLL is the plant gain b as indicated by Eq. (22). The control robustness are therefore assessed under different values of b: The control gain b = V m ∕v de approximates 1, and its estimation is set to b 0 = 1 . The bode plots of the loop transfer function L b (s) for b ∈ {0.5, 1.0, 2.0, N, 3.0} are provided in Fig. 8. The phase margin decreases when the Nb 0 is far from the real value of b. Though the phase margins are always acceptable. Now, the stabilities of ESO-based PLLs with extra fillers are discussed. Regarding the DPLL, the prefilter has no direct effect on the control stability [27,32]. However, the stability of the ESO-based MAF-PLL could be affected, because a Moving Average Filter (MAF) is placed inside the control loop (see Fig. 3). The parameters have to be corrected; otherwise, the oscillation problems would occur in the practical tests. The loop gain transfer function is modified as follows: The transfer function of the MAF is approximated by [28] with the parameter T w = 0.01 s [28]. The bode plots of L M (s) for different o and are, respectively, shown in Figs. 9 and 10. We use the following settings: o ∈ {3 n , 5 n , 7 n } rad/s, = 2 for Fig. 9 and o = 5 n rad/s, ∈ {2, 3, 4} for Fig. 10. It can be seen that the PM and the gain margin (GM) decrease much due to the effect of the MAF. The PM and GM increase with a larger  o . However, the o is limited by sensor noises. The PM and GM can be enhanced using larger . While too large enables slow dynamics response [18]. Finally, the coefficient = 4 , o = 5 n is chosen for its application into the MAF-PLL.

Noises rejection analysis
As illustrated in Fig. 5, the measurement noises rejection ability is determined by the transfer function as follows: where y(s) and n (s) are the Laplace transforms of the output y and the measurement noises n , respectively. Figure 11 shows the bode diagram of G n (s) . The comparative results indicate that ESO-based controller behaves better to attenuate the measurements noise compared to the PI controller. As indicted in (16), that is the low-pass filter which enhances its ability to reduce high-frequency noises. Besides, the noise rejection ability decreases when the parameter o increases. Now, we discuss the noise attenuation effect of ESO itself. Based on Eqs. (7)-(10), the transfer function of the estimated state variable x 1 is obtained as follows: Then, the x 1 resulting from the measurement noise n and the input disturbance w can be given by The bode plots of f n (s) and f w (s) are shown in Figs. 12 and 13, respectively, with o ∈ {3 n , 5 n , 7 n } rad/s. It can be observed from Fig. 12 that the ESO performs as a low-pass filter, which can reject the high-frequency signals. Besides, the larger o can increase the high-frequency gain. Namely, the ESO would be more sensitive to the high-frequency measurement noise when we increase the o . It can be seen from Fig. 13 that the phase lag of x 1 is decreased with larger  ; however, there is no influence on the high-frequency gain; the ESO can more efficiently attenuate the input disturbance in the low-frequency region. Consequently, there exists a trade-off between the input disturbance rejection and the measurement noise sensitivity [34].
Based on (9), the transfer function of disturbances estimation error becomes The bode plots of f e 2 (s) are shown in Fig. 14, with o ∈ {3 n , 5 n , 7 n } rad/s. The ESO can estimate the unknown disturbance very well only when the disturbances are composed of low-frequency components [10]. The disturbance estimation errors can be reduced by increasing the o ; however, the o is limited by the noises sensitivity.

Closed-loop performance analysis
Based on the formulated 2DOF diagram (see Fig. 5), the closed-loop transfer function of the ESO-based PLL is represented as follows: The bode plots of G cl (s) are shown in Fig. 15. The closedloop performances of PI and ESO-based control system behave closely at the low-frequency range. It can also be noticed that there is a peak greater than 0 dB for the PI control system, which indeed corresponds a time-domain overshoot of the step response [20]. However, for the ESO-based control, the overshoot is attenuated due to the prefilter H(s).

Simulation studies and results
Simulation studies are conducted with the Matlab/Simulink. We use the solver Ode3 (Bogacki-Shampine) with a fixed step size 0.1 ms [8]. The balanced three-phase voltages are set to V m = 179 V, f = 50 Hz. A white noise is manually added to simulate the voltage measurement noises. The ESO-based SRF-PLL/DPLL/MAF-PLL are, respectively, simulated by considering different disturbed regimes. The parameters of ESO-based PLLs are selected by following the tuning guidelines in Sect. 3; meanwhile, the control stability is taken into account, as well. The control parameters of ESO-based SRF-PLL and DPLL are set to o = 5 n rad/s, n = 157 rad/s, = 2 , and b 0 = 1 . Regarding the MAF-PLL, the coefficient = 4 is applied to ensure the control stability, and the remaining parameters are set to the same as those of the SRF-PLL.
The simulation results under balanced grid conditions are presented in Figs. 16 and 17. The disturbed schemes are set as follows: at t = 0.2 s, a magnitude drop of 0.2V m is induced on the three-phase voltage; then, a phase jump of +20 • appears at t = 0.4 s. To avoid a too large frequency variation, a first-order transient process 1∕(T s s + 1) is added before the phase reference input, and T s = 5e −3 s ; at t = 0.8 s, the frequency steps from 50 to 52 Hz. Compared with the PI control, the ESO-based SRF-PLL achieves similar dynamic responses with respect to tracking the frequency and the phase under disturbed schemes. The estimated frequency tracks the actual frequency as quickly as the PI control, as shown in Fig. 16. Compared to the PI control, the estimated phase error comes back to zero a bit faster, though its peak values are a bit higher as shown in Fig. 17. Moreover, the ESO-based PLL performs much better to attenuate the measurements noises of the output, especially for the estimated frequency. In addition, the results of ESO-based PLLs that The simulation results for PI controllers are also provided for the comparisons. Some conclusions are suggested by the results, as shown in Figs. 18 and 19. First, the ESO-based DPLL and MAF-PLL present almost the same dynamic responses as the corresponding PI control for tracking the information of the frequency and the phase. Then, as the MAF itself could help attenuate the high-frequency noises, consequently, the advantage of ESO-based LF when applied to the MAF-PLL is not very significant. Moreover, the DPLL performs faster response dynamics compared to the MAF-PLL. Therefore, in the following part, only the ESObased DPLL is implemented into the closed-loop control of the GcC.

Experimental tests and results
The closed-loop control performances of GcC equipped with ESO-based PLL are experimentally validated in this section. Experiments are conducted in a real-time hybrid PHIL test benchmark, as schematically illustrated in Fig. 20, which consists of the three-phase grid-connected converter, the disturbed grid emulator [35], and the dSPACE hardware (DS1005) [36]. The three-phase GcC is a back-to-back Pulse Width Modulation (PWM) voltage source converter. The control signal is converted to the PWM command for the converters in real time [36]. The disturbed grid is emulated by the RT-LAB real-time digital simulator [8]. Key parameters of the testing benchmark are listed in Table 2.
The implemented control algorithms are encoded in the dSPACE modular of DS2005 board under the Matlab/ Simulink environment [36]. The control structure of gridconnected converter is illustrated in Fig. 21. In this figure,  i (a,b,c) are the grid currents, v (a,b,c) are the grid voltages; ̂ is the estimated phase angle of the grid voltage or the positive sequence for unbalanced case; i * d and i * q are d-and q-axis grid current references; V dc is the DC-link voltage, C is the DClink capacitance; L is the filter inductor, R is the filter resistor; and S (a,b,c) are the switching states of power converters.
The control of GcCs mainly has three functions: the grid synchronization [8], the DC-link voltage control [37], and the grid current control [38]. First, the outer voltage loop maintains the constant DC-link voltage, where a PI controller is used in this work. Then, the proposed ESObased PLL is used to obtain the grid voltage phase to synchronize the injected current with the grid voltage. Furthermore, the injected current control is achieved through three Proportional Resonant (PR) controllers upon the abc three-phase frame. More design details with respect to the control designs of GcCs can be found in the previous literatures [37][38][39]. Regarding the unbalanced conditions, various control strategies have been proposed before [40,41]. In our tests, we use the positive sequence control strategy proposed in [40]. The PLL is used to detect the phase angle that follows the positive sequence of the grid voltage. For the ESO-based PLLs, we keep the same control parameters as configured in the simulation studies. The well-tuned parameters of the PI controller for the DC-link voltage and the PR controllers for grid-injected currents are provided in Table 3, and the detailed definitions of these parameters can be found in [9]. Since there is no difference between the synchronization phase angle during the unbalances and that during normal grid conditions, the same control parameters values are thus used for both balanced and unbalanced cases. Figure 22 presents the closed-loop control performances of GcC equipped with ESO-based PLL/DPLL. Figure 22a shows the control performances under balanced grid. Testing results for unbalanced grid are provided in Fig. 22b. To highlight, we suppose that the unbalance is not affecting the phases but the magnitudes only. Then, the positive sequence is synchronized with the phase "a" of the original threephase voltages. Therefore, the estimated phase of the positive sequence follows the original phase angle.
The test conditions are set as follows: a phase jump of +20 • is manually added in Fig. 22a1 and b1, a frequency step of 2 Hz happens in Fig. 22a2 and b2, and an magnitude drop of 0.2V m is considered in Fig. 22a3 and b3. First, the    Table 3 Control parameters of grid-connected converter PI controller for DC-link voltage control: k pv = 0.12 , k iv = 8 PR controller for grid current control: k pr = 0.15 , k ir = 10 , rr = 100 ESO-based SRF-PLL/DPLL can correctly follow the phase, the frequency, and the voltage amplitude information. Then, the results indicate that the injected grid current i a synchronizes with the grid voltage v a . Furthermore, the GcC's controls equipped with the ESO-based SRF-PLL/DPLL enable efficient performance regarding the control dynamics and the robustness in the presence of various disturbances.

Conclusions
This work is an extension for our previous work [8]. A linear ESO-based controller is designed as the LF for the SRF-PLL. A tuning approach based on the well-tuned parameters of PI controller is provided, which results in a fair comparison with PI-type PLLs. Some conclusions can be drawn from the frequency domain analysis and the simulation results: the performances of the generated ESO-based controller are close to those of PI control at low frequency, while achieving a better ability of attenuating measurement noises. The phase margin decreases slightly, but remains acceptable. For the MAF-PLL with the in-loop filter, the equipped MAF itself could help attenuating the effects of high-frequency noises. Consequently, the advantage of ESO-based LF for its application to the MAF-PLL is not very significant. The PHIL experimental results suggest that the ESO-based PLLs can correctly obtain the phase, the frequency, and the voltage amplitude information. The obtained results show the effectiveness of ESO-based PLLs when applied to the GcC in the presence of various disturbances. It is worth mentioning that this work has discussed a tuning approach based on the well-designed PI control. However, for the implementations of ESO-based control, it is not mandatory to tune them based on a PI controller. The linear Fig. 22 Grid-connected control performances with ESO-based PLL/DPLL under balanced and unbalanced grid conditions, the grid current of phase a i a (2A/div), the grid voltage of phase a v a (100 V/div), for a1 and b1, a phase jump of Δ = +20 ∕180 rad, the actual voltage phase (2rad/div), the estimated voltage phase ̂ (2rad/div); for a2 and b2, a frequency step of Δf = +2 Hz, the actual grid frequency f (1Hz/div), the estimated grid frequency f (1Hz/div); for a3 and b3, a voltage magnitude variation of ΔV m = 0.2V m , the d-axis voltage v de (20 V/div), and the q-axis voltage v qe (20 V/div). (a1)-(a3) Balanced grid voltages. (b1)-(b3) Unbalanced grid voltages ESO-based controller can be tuned simply by following the parameters selection guidelines provided in the previous works [8,18,21].