Next Article in Journal
ScaL2Chain: Towards a Scalable Protocol for Multi-Chain Decentralized Applications
Previous Article in Journal
Research on Pole-to-Ground Fault Ride-Through Strategy for Hybrid Half-Wave Alternating MMC
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Non-Singular Terminal Sliding Mode Control for a Three-Phase Inverter Connected to an Ultra-Weak Grid

1
Department of Electrical Engineering, College of Engineering, Prince Sattam bin Abdulaziz University, Al Kharj 16278, Saudi Arabia
2
Department of Electrical and Computer Engineering, Memorial University of Newfoundland, St. John’s, NL A1C 5S7, Canada
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(14), 2894; https://doi.org/10.3390/electronics14142894
Submission received: 22 June 2025 / Revised: 16 July 2025 / Accepted: 17 July 2025 / Published: 19 July 2025
(This article belongs to the Topic Power Electronics Converters, 2nd Edition)

Abstract

The quality of a grid-injected current in LCL-type grid-connected inverters (GCI) degrades under ultra-weak grid conditions, posing serious challenges to the stability of the GCI system. For this purpose, the sliding mode control (SMC) approach has been utilized to integrate DC energy seamlessly into the grid. The control performance of a GCI equipped with an LCL filter is greatly reduced when it is operating in a power grid with varying impedance and fluctuating grid voltages, which may result in poor current quality and possible instability in the system. A non-singular double integral terminal sliding mode (DIT-SMC) control is presented in this paper for a three-phase GCI with an LCL filter. The proposed method is presented in the α, β frame of reference without adopting an active or passive damping approach, reducing the computational burden. MATLAB/Simulink Version R2023b is leveraged to simulate the mathematical model of the proposed control system. The capability of the DIT-SMC method is validated through the OPAL-RT hardware-in-loop (HIL) platform. The effectiveness of the proposed method is first compared with SMC and integral terminal SMC, and then the DIT-SMC method is rigorously analyzed under resonance frequency events, grid impedance variation, and grid voltage distortions. It is demonstrated by the experimental results that the proposed control is highly effective in delivering a high-quality current into the grid, in spite of the simultaneous occurrence of power grid impedance variations in 6 mH and large voltage distortions.

1. Introduction

Significant advancements in distributed power generation (DG) have been led by the demand for renewable energy. As a key component of the DG system, grid-connected inverters (GCIs) serve as a critical interface between DG systems and the utility grid. However, weak grid characteristics, such as high line impedance and significant voltage distortions, are often exhibited by the utility grid [1,2]. The grid current quality may be considerably degraded, and a significant threat to the grid’s stability may be posed by a combination of grid impedance, filter parametric variation, and voltage distortion [3]. Owing to these reasons, the design of a robust controller is considered imperative.
As a part of GCI systems, a filter is used between the GCI and the power grid to suppress the switching frequency harmonics generated by the operation of the inverter [4]. The GCI applications primarily use L, LC, and LCL filters. A significant difference is noted among the LCL, L-type, and LC-type filters in terms of their ability to suppress harmonics from the grid current [5]. From these, the LCL filter has a better harmonics suppression capability [6]. However, the GCI with an LCL filter experiences resonance problems, which can lead to system instability. Several active and passive damping approaches have been reviewed in the literature to address the resonance issue [7,8,9,10]. The passive damping method employs a resistor, which causes large power loss, while the most active damping approaches are challenging to realize in a digital signal processor and are prone to instability under parametric variations [11]. Consequently, it is crucial to design a controller that can maintain the stability of the GCI system without incurring extra power loss and complexity.
As of today, and according to the literature reviewed, a significant number of control methods have been suggested to enhance the controller’s performance under weaker grid conditions. In [12], a q-axis impedance reshaping is recommended, and a virtual impedance-based control method is presented in [13] for improving controller performance under distorted grid conditions. A dual-loop current control was proposed in [14], in which reference tracking performance is decoupled from disturbance rejection, enabling harmonics suppression and robustness under grid impedance variation. However, this study assumed an L filter, which has limited capability to suppress harmonics compared to an LCL filter. In [15], a control method using a biquad filter is discussed for the stabilization of GCI with an LCL filter, by which the requirement of active damping is eliminated and simplicity and cost-effectiveness are enhanced. However, the quality of grid current degrades under severe grid conditions. As a part of [16], a multiple resonant current control (MRCC) of the grid-connected inverter is presented that combines MRCC with a feedback controller, ensuring fast transient response and high tracking accuracy. The tuning of multiple resonant gains was required in the MRCC design procedure, and the challenges of the ultra-weak grid were not addressed. In addition, a proportional resonant (PR)-based control for GCI with an LCL-type filer is designed during the course of [17] to improve the stability and harmonics suppression. An active damping approach is utilized with capacitive current feedback; however, the effectiveness of the method is found to be highly sensitive to the choice of parameters. Similarly, ref. [18] proposes a PR-based control for a GCI connected to a weak grid under harmonic distortions, which demonstrates effectiveness in suppressing the harmonics. However, significant control delay is introduced by the PR controller at higher frequencies, which can negatively impact controller performance and system stability.
Sliding mode control (SMC) has gained significant traction for its robustness in handling uncertainties and external disturbances in grid-connected systems over conventional control methods [19]. Nevertheless, as indicated in [20], these approaches are prone to chattering and face stability issues due to high-frequency oscillations. To avoid chattering, a sliding mode control combined with an active damping technique is presented in [21]; the controller provides robustness against parasitic parameters of the LCL filter and impedance variation. However, its performance needs to be analyzed for a broad range of impedance variations. Zheng et al. in [22] presented an SMC with an observer for the phase locking of a phased lock loop to improve the controller efficiency in low-strength grid conditions. Grid impedance was integrated as part of the CL filter by the authors, leaving a gap in the study of system performance under larger variations in grid impedance. The study [23] presents a super-twisting algorithm-based SMC and applies it for injecting a sinusoidal current into the grid under GCI system parametric fluctuations and external disturbances. However, the performance of the controllers is affected by the simultaneous occurrence of grid impedance and voltage distortions. In addition, an SMC-based cascaded control is presented [24] for grid-supporting inverters, and control behavior is examined for diverse conditions. The performance is studied for LCL filter parametric variation and injecting power during island and grid-connected modes, but lacks rigorous analysis under grid impedance variation.
Recently, terminal sliding mode control (TSMC) has been investigated for its application in power electronics converter control, owing to its ability to maintain zero steady-state error, provide robustness against external disturbances, and ensure global system stability [25]. However, the traditional TSMC suffers from singularity problems, which can lead the system towards instability [26]. The singularity problem arises when the derivative of the sliding manifold exponential term results in a negative power, which can cause an infinite control signal, making it inadequate for practical applications. Considering the limitations of existing methods, this article proposed a double-integral terminal sliding mode control (DIT-SMC) for a three-phase GCI utilizing an LCL filter facing filter parametric variation, changes in grid impedance, and grid voltage distortions. The novel contributions of this work are listed as follows:
  • The proposed DIT-SMC does not require an active or passive damping loop and guarantees the stability of the system at the resonance frequency of f s / 6 , even under grid inductance variation.
  • Despite large variations in grid impedance up to 500% of the nominal value, the proposed controller is able to maintain high-quality current injection into the grid.
  • The DIT-SMC maintains close to zero steady-state error with the maximum power transfer to the grid.
In the following section, Section 2, the mathematical model of GCI with an LCL filter is described, whereas Section 3 presents the formulation of the error dynamical model and controller design. The simulation results are illustrated in Section 4, and the experimental analysis is covered in Section 5. Finally, a summary of the proposed work is detailed in Section 6.

2. Modeling of Grid-Connected Inverter System

The circuitry of the LCL-type GCI system under study is depicted in Figure 1. It comprises a three-phase inverter attached to a DC power source ( V d c ) on the input side, with its output linked to an LCL filter, which is subsequently connected to the utility grid ( V g ) through the point of common coupling (PCC). The LCL filter contains an inductor L 1 on the inverter side and an inductor L 2 on the grid side, and between these, a capacitor (C) is placed. The mathematical model of the GCI system in α β frame of reference can be derived as
L 1 α d i 1 α d t = u i α i 1 α r 1 v c α
L 1 β d i 1 β d t = u i β i 1 β r 1 v c β
L 2 d i 2 α d t = v c α i 2 α r 2 v g α
L 2 d i 2 β d t = v c β i 2 β r 2 v g β
C d v c α d t = i 1 α i 2 α
C d v c β d t = i 1 β i 2 β
where [ i 1 α , i 1 β ] is inverter side current, [ i 2 α , i 2 β ] is grid side current, [ u i α , u i β ] is switching function, [ v c α , v c β ] denotes voltages across capacitor and [ r 1 α , r 1 β ] , and [ r 2 α , r 2 β ] is the equivalent resistance of inductor L 1 and L 2 , respectively. To derive the error dynamical dynamics for the controller, let us define the state variables as z 1 ,   z 2 ,   z 3 as follows:
z 1 = i 1 i 1
z 2 = v c v c
z 3 = i 2 i 2
where i 1 , i 2 and v c are inverter current reference, grid current reference, and capacitor voltage references, respectively. The voltage and current signals after the transformation to the α and β frames are independent of each other. Therefore, the control procedure applied on one axis can be similarly applied to the other. For the sake of simplicity, next, the design of the controller is executed on the α -axis, and to transfer a sinusoidal current in the grid, the grid current reference signal i 2 can be obtained using grid frequency and voltage phase angle as follows:
i 2 = I 2 s i n ( ω t + θ )
where I 2 represents the amplitude of the grid current, ω is grid operating frequency and θ exhibits the grid voltage phase angle. The references for inverter side current and capacitor voltage can be derived from, (1)–(4) as given below:
i 1 = i 2 + C v c ˙
v c = L 2 i 2 ˙ + v p c c + i 2 r 2
Now, taking the first derivative of systems dynamics error defined in (7)–(9) and substituting the respective equations of system dynamics given in (1)–(6), the error equations of the system can be obtained as
z 1 ˙ = i 1 ˙ i 1 ˙
z 1 ˙ = 1 L 2 ( z 2 r 2 z 1 )
z 2 ˙ = v c ˙ v c ˙
z 2 ˙ = 1 C ( z 3 z 1 )
z 3 ˙ = i 2 ˙ i 2 ˙
z 3 ˙ = i 1 ˙ 1 L 1 v i i 1 r 1 + i 1 r 1 i 1 r 1 v c + v c v c
z 3 ˙ = i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c

3. Design of Nonlinear Controllers

3.1. Sliding Mode Control

The design of sliding mode control involves the formulation of the sliding surface (SS), which is a mathematical construct, mainly a function of the system state variables, and is designed to represent the dynamic behavior of the system. As we have defined three error terms representing current from the inverter current output ( i 1 ), grid current ( i 2 ), and capacitor voltage ( v c ), involving all of these in sliding manifold design will ensure accurate reference tracking and improve the control performance.
σ = α 1 z 1 + α 2 z 2 + α 3 z 3
where α 1 , α 2 , and α 3 are the SS coefficients. Taking the time derivative of the SS in (20) gives
σ ˙ = α 1 z 1 ˙ + α 2 z 2 ˙ + α 3 z 3 ˙
Now, putting in the respective error dynamics from (14), (16) and (19) gives
σ ˙ = α 1 1 L 2 ( z 2 r 2 z 1 ) + α 2 1 C ( z 3 z 1 ) + α 3 i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c
The control objective of the SMC is to derive the system state to the SS in finite time and stay there. To ensure this, Gao et al. in [27] presented a reaching law that guarantees finite time convergence of the system trajectories towards SS. To reaching law is stated as
σ ˙ = k | σ | γ s i g n ( σ )
Here, k demonstrates the positive gain that derives the system states towards SS, γ defines the convergence rate, and S i g n is a signum function that ensures robustness. The Sign function can be given as
sign ( σ ) = 1 if ( σ ) > 0 0 if ( σ ) = 0 1 if ( σ ) < 0
Now, substituting (23) into (22) gives
k 1 | σ | γ s i g n ( σ ) = σ ( α 1 1 L 2 ( z 2 r 2 z 1 ) + α 2 1 C ( z 3 z 1 ) + α 3 ( i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c ) )
Further solving for the control u i results in
u i = L 1 i 1 ˙ z 2 r 1 z 3 + r 1 i 1 + v c + α 1 α 3 L 1 L 2 ( z 2 r 2 z 1 ) + α 2 α 3 L 1 C ( z 3 z 1 ) + L 1 α 3 k 1 | σ | γ s i g n ( σ )
Now, using the boundary layer approach and replacing the signum function with saturation gives
u i = L 1 i 1 ˙ z 2 r 1 z 3 + r 1 i 1 + v c + α 1 α 3 L 1 L 2 ( z 2 r 2 z 1 ) + α 2 α 3 L 1 C ( z 3 z 1 ) + L 1 α 3 k 1 | σ | γ s a t ( σ )

3.1.1. Chattering Analysis

In SMC-based control, chattering is a primary concern that degrades control performance. As shown in Figure 2, chattering is characterized by high-frequency oscillation in the control signal in the vicinity of the SS. The system trajectories cross the SS repeatedly in rapid succession instead of converting and remaining on it. The primary cause of the chattering in the SMC control signal is due to the use of the Signum function, which is used to attain superior control performance in the presence of external disturbances. However, the Signum function introduces discontinuous switching between two states depending on the sign of the sliding variable. The rapid discontinuous switching is ideal in theory, but impossible to realize in practical systems due to the limited bandwidth of the actuators and the presence of system delays. To mitigate the chattering problem, the boundary layer approach is utilized in which the Signum function is replaced with a Saturation function. This approach introduces a narrow region around the vicinity of the SS.

3.1.2. Stability Analysis

The capability of the designed control technique to stabilize the system under external disturbances can be investigated using Lyapunov’s stability theorem [28]. In GCI system applications, Lyapunov’s stability theorem is an incredibly useful strategy for evaluating the controller behavior by studying a scalar function known as the Lyapunov function [29]. Let us define the following Lyapunov candidate function denoted by V:
V = 1 2 σ 2
Taking a time derivative of (27) gives
V ˙ = σ · σ ˙
Next, putting the value of σ ˙ from (22) in (28), we get
V ˙ = σ ( α 1 1 L 2 ( z 2 r 2 z 1 ) + α 2 1 C ( z 3 z 1 ) + α 3 ( i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c ) )
Further substituting the final control law from (25) in (29) gives
V ˙ = k | σ | γ s a t ( σ )
V ˙ < 0 ,   k > 0
It is evident that the SMC law in (25) is negative definite, and based on the Lyapunov stability criteria, the GCI system controlled by this SMC law is globally asymptotically stable.

3.2. Integral Terminal Sliding Mode Control

Terminal SMCs offer promising features compared to traditional SMCs, which suffer from chattering problems [26]. However, terminal SMC can be affected by singularity problems, which may lead to system instability. Therefore, integral terminal SMC (IT-SMC) is presented, which can maintain the system’s stability, solve the singularity problems, and enhance controller performance, specifically in eliminating the SSE. As in designing control, the core objective of the proposed method is to inject a high-quality sinusoidal current into the utility grid under external disturbances. Therefore, in the IT-SMC design procedure, the integral of the inverter and grid side current error terms are considered as
z 4 = 0 t ( i 1 i 1 ) d t λ 1
z 5 = 0 t ( i 2 i 2 ) d t λ 2
where λ 1 and λ 2 are positive integers and denote the convergence rate. Now, redesigning the SS for IT-SMC includes the integral part defined in (32) and (33) leads to
σ = α 1 z 1 + α 2 z 2 + α 3 z 3 + α 4 z 4 + α 5 z 5
Taking the time derivative of (34) gives
σ ˙ = α 1 z 1 ˙ + α 2 z 2 ˙ + α 3 z 3 ˙ + α 4 z 4 ˙ + α 5 z 5 ˙
Substituting the error dynamics from (14), (16), (19), (32) and (33), Equation (35) can be expressed as
σ ˙ = α 1 1 L 2 ( z 2 r 2 z 1 ) + α 2 1 C ( z 3 z 1 ) + α 3 i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c + α 4 z 1 λ 1 0 t z 1 d t λ 1 1 + α 5 z 3 λ 2 0 t z 3 d t λ 2 1
Following the control law simplification procedure adopted for SMC, the IT-SMC control law can be written as
u i = L 1 i 1 ˙ z 2 r 1 z 3 + r 1 i 1 + v c + α 1 α 3 L 1 L 2 ( z 2 r 2 z 1 ) + α 2 α 3 L 1 C ( z 3 z 1 ) + L 1 α 3 k 1 | σ | γ s a t ( σ ) + α 4 α 3 L 1 z 1 λ 1 0 t z 1 d t λ 1 1 + α 5 α 3 L 2 z 3 λ 2 0 t z 3 d t λ 2 1
Now, to examine the stability of the GCI with an LCL filter, let us take the following Lyapunov function
V = 1 2 σ 2
V ˙ = σ · σ ˙
Now, putting the value of σ ˙ from (36) into (39), we can obtain
V ˙ = σ ( α 1 1 L 2 ( z 2 r 2 z 1 ) + α 2 1 C ( z 3 z 1 ) + α 3 ( i 1 ˙ 1 L 1 z 2 r 1 L 1 z 3 1 L 1 u i + r 1 L 1 i 1 + 1 L 1 v c ) + α 4 z 1 λ 1 0 t z 1 d t λ 1 1 + α 5 z 3 λ 2 0 t z 3 d t λ 2 1 )
Next, substituting the final control law from (37) in (40) and solving it gives
V ˙ = k | σ | γ s a t ( σ )
V ˙ < 0 ,   k > 0
The IT-SMC control law is negative definite and can ensure the global asymptotic stability of the LCL-type GCI systems.

3.3. Double Integral Terminal Sliding Mode Control

In LCL-type grid-connected Inverter (GCI) systems, precise control is required to ensure low steady-state error (SSE), minimal overshoot, and high disturbance rejection under weak grid conditions. In this study, a double integral terminal sliding mode control (DIT-SMC) is constructed to further improve tracking accuracy and better suppress grid disturbances, particularly under the simultaneous occurrence of grid impedance variation and grid voltage distortions. It is important to note that conventional terminal sliding mode control can suffer from singularity issues near the equilibrium point, where control signals may become unbounded or unstable. To overcome this challenge, the control design has been modified to prevent such problematic behavior by ensuring that control signals remain well-defined and stable at all times, especially near the equilibrium. This is achieved by introducing a small region around the equilibrium point where the control smoothly transitions to a simpler form, thereby avoiding abrupt changes or infinite values. Additionally, sharp switching actions are replaced with smooth functions to maintain bounded and stable control signals throughout the system operation. These modifications ensure stable and robust control performance even in the vicinity of the equilibrium point. To achieve this, an integral of the inverter side current as well as the grid current is added in (32) and (33), respectively.
z 6 = 0 t ( i 1 i 1 ) d t + 0 t ( i 1 i 1 ) d t λ 1
z 7 = 0 t ( i 2 i 2 ) d t + 0 t ( i 2 i 2 ) d t λ 2
The SS is constructed from the linear combination of error terms defined in (7)–(9) and (43), (44), resulting in
σ = α 1 z 1 + α 2 z 2 + α 3 z 3 + α 6 z 6 + α 7 z 7
Taking the time derivative of (45) gives
σ ˙ = α 1 z 1 ˙ + α 2 z 2 ˙ + α 3 z 3 ˙ + α 6 z ˙ 6 + α 7 z 7 ˙
z ˙ 6 = z 1 + z ˙ 4
z ˙ 7 = z 3 + z ˙ 5
After further simplification, the SS results in
σ ˙ = α 1 z 1 ˙ + α 2 z 2 ˙ + α 3 z 3 ˙ + α 6 ( z 1 + z ˙ 4 ) + α 7 ( z 3 + z ˙ 5 )
Now, following the same method to simplify and extract final control adopted for SMC and IT-SMC, we can obtain DI-TSMC as
u i = L 1 i 1 ˙ z 2 r 1 z 3 + r 1 i 1 + v c + α 1 α 3 L 1 L 2 ( z 2 r 2 z 1 ) + α 2 α 3 L 1 C ( z 3 z 1 ) + L 1 α 6 α 3 z 1 + L 1 α 7 α 3 z 3 + L 1 α 6 α 3 z 1 λ 1 0 t z 1 d t λ 1 1 + L 1 α 7 α 3 z 3 λ 2 0 t z 3 d t λ 2 1 + L 1 α 3 k 1 | σ | γ s a t ( σ )
To analyze the stability of the GCI system the same constraints defined for SMC and ITSMC, the DITSMC stability analysis results are as follows:
V ˙ = k | σ | γ s a t ( σ )
V ˙ < 0 ,   k > 0
The Lyapunov function results in a negative definite, which clearly shows that an LCL-type GCI system controlled using DI-TSMC control is globally asymptotically stable.

4. Simulation Results

To simulate and verify the DIT-SMC control performance for an LCL-type GCI system under grid distortion and inductance variation, the MATLAB/Simulink Version R2023b platform is utilized. The parameters of the GCI system used in simulations are demonstrated as part of Table 1, and the DIT-SMC controller specifications are listed in Table 2. The control performance of the different controllers is compared with the proposed controller under several conditions. To validate the effectiveness of the proposed method, its performance is tested under four operating conditions.

4.1. Reference Tracking Performance Evaluation

The efficiency of the DIT-SMC is analyzed at a step change of 10 A in the grid current reference and compared with the SMC and IT-SMC. Figure 3 illustrates the steady-state reference tracking accuracy where the SMC controller exhibits large SSE, leading to poor grid current quality, making it impractical for the steady operation of the GCI system with an LCL filter with external disturbances. To add to this, the results in Figure 4 depict that, at the step change of 10 A, the controller reference tracking required considerable performance improvement. The waveform in Figure 5 reveals that the DIT-SMC reference tracking performance is superior, and it maintains a high-quality grid current compared to the SMC and IT-SMC.

4.2. Steady-State Performance Analysis

In the next step, the DIT-SMC control results are presented to further validate controller performance under steady-state conditions. The waveform for the grid-injected current and the grid voltage presented in Figure 6 illustrate that the alpha and beta components of the grid current are precisely synchronized with the respective grid-voltage components. Furthermore, the Total Harmonic Distortion (THD) of the current injected into the grid is measured using the Fast Fourier Transform (FFT) tool in Simulink, yielding a low THD of only 0.79%. The presence of interharmonic components, as illustrated in Figure 7, reflects the non-ideal behaviour of the inverter and the effects of grid impedance.

4.3. Performance Under External Disturbances

The performance of the controller severely degrades under the inductance variation of the grid, and the distortion of the grid voltage of the 3rd, 5th, 7th, 9th and 11th harmonic components. In particular, during the co-occurrence of grid inductance and voltage disturbances, as illustrated in Figure 8, there is only 2.9 % THD in the grid current, satisfying the IEEE grid connection standard restrictions. Figure 9 presents the results obtained when a resistive–inductive (RL) load is connected to the inverter output through the LCL filter. Each phase is equipped with a 1 ohm resistor and a 2.7 mH inductor.

5. Hardware-in-Loop Experimental Validation

The GCI system with an LCL filter is prone to instability under external disturbances; therefore, the real-time performance analysis of the DIT-SMC is crucial to ensure system stability. For this purpose, to validate the controller effectiveness illustrated through simulation results, the OPAL-RT hardware-in-loop (HIL) validation is performed, as shown in Figure 10. The OPAL-RT real-time simulator OP5707XG utilizes virtex-7 FPGA, Montreal, QC, Canada which provides the fastest and most accurate closed-loop connection between the plant and the controller. A three-phase inverter with an LCL filter was constructed and integrated into the OPAL-RT system to evaluate the controller’s real-time performance. The designed system parameters are listed in Table 1 while the controller parameters are presented in Table 2. The experimental results of DIT-SMC for the current injected into the grid are presented in Figure 11a, which authenticates the precision of the simulation results. Furthermore, the proposed controller reference tracking waveform at the step change of 10 A shown in Figure 11b confirms that the controller maintains close to zero SSE without degrading the current quality. The results of the current delivered into the grid and grid voltage waveform are depicted in Figure 12, where the current and voltage for the respective phases are perfectly aligned, ensuring a unity power factor. In weaker grids, the GCI system at the resonance frequency is susceptible to instability. In particular, when the resonance frequency matches one-sixth of the sampling frequency, the system is hardly stable [30]. To consider these circumstances, the proposed controller performance is examined by inserting 2 mH inductance between the LCL filter and keeping the resonance frequency maintained at 2000 Hz ( f s / 6 ). The current waveform under this scenario is presented in Figure 13a, showing that the controller still maintains a high-quality grid current. Finally, the proficiency of the proposed DIT-SMC method is assessed under ultra-weak grid conditions where an extreme variation of 6 mH in grid inductance and distortion in grid voltage of 3rd, 5th, 7th, 9th and 11th order harmonics is considered. The results during the co-occurrence of the grid voltage and inductance variations are demonstrated in Figure 13b, where the THD in grid current is 2.9 % , proving the robustness of the controller. The performance of the proposed controller is evaluated under varying external load conditions to assess its robustness and stability. The results, as illustrated in Figure 14, demonstrate that the controller effectively maintains system performance, thereby validating the effectiveness and reliability of the proposed control method in the presence of load disturbances.

Evaluation Under Weaker Grid

Next, to evaluate the performance of the proposed controller, the DIT-SMC is compared with existing controllers. The experimental waveforms for grid current, grid voltage, and the grid current error using the SMC are shown in Figure 15a. The grid current THD is 2.3%, while the amplitude of the grid current error is 5.2 A. It is evident from Figure 15a that the drift in the SS led to an increase in the SSE. In reference [16], the multi-resonant SMC (MRSMC) is implemented to enhance the reference tracking performance; the error waveform for this technique is shown in Figure 15b. Although the results are better compared to SMC, an error with an amplitude of 3.5 A still exists. The error minimization performance of the controller needs to be perfect for maintaining system stability; therefore, DIT-SMC is presented to reduce the SSE. The waveforms illustrated in Figure 15c are evidence that the adoption of the DIT-SMC controller can eliminate the SSE effectively under worse grid operating conditions. Furthermore, a comparison of the controllers is listed in Table 3, where it can be clearly seen that the proposed method has shown superior performance.

6. Conclusions

In this article, a robust double integral terminal sliding mode control (DIT-SMC) is presented for a three-phase inverter connected to an ultra-weak grid via an LCL filter. A mathematical model for the designed controller has been developed in the α ,   β frame of reference without adopting any damping strategy to enhance the control performance and minimize the computational complexity of the synchronous reference frame. During analysis of the effectiveness of the DIT-SMC control, its reference tracking performance at a 10 A step change was compared with traditional SMCs and integral terminal-based SMCs; the newly designed control exhibits superior grid current quality and demonstrates excellent reference tracking. Furthermore, the DIT-SMC method ensures the stability of the GCI system at the resonance frequency of ( f s / 6 ) , even under significant variations in grid inductance. To further evaluate the control performance under ultra-weak grid conditions, scenarios involving substantial inductance variations along with grid voltage distortions were simulated. Under these challenging conditions, the total harmonic distortion (THD) of the grid current was maintained at only 2.9%, thereby confirming the robustness of the proposed control method. The controller’s performance was also assessed in the presence of an external load, during which the grid-connected inverter (GCI) system exhibited excellent stability. Finally, to demonstrate the superiority of the proposed method over existing control techniques, a comparison of the current error signal was carried out. The DIT-SMC control strategy was implemented in the MATLAB/Simulink environment, and experimental validation was carried out using the OPAL-RT hardware-in-the-loop (HIL) platform.

Author Contributions

A.M.N. contributed to the conceptualization of the study, contributed in the manuscript writing, validation of results, and manuscript review. A.S. developed the methodology, implemented the software, performed the analysis, and prepared the original draft. M.J. supervised the project, provided methodological guidance, and contributed to project administration and manuscript editing. S.Z.A. provided resources and participated in the review process. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Prince Sattam bin Abdulaziz University, project number (PSAU/2024/01/32106).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors extend their appreciation to Prince Sattam bin Abdulaziz University for funding this research work through the project number (PSAU/2024/01/32106).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
GCIGrid-connected inverter
SMCSliding mode control
IT-SMC   Integral terminal sliding mode control
DIT-SMCDouble integral terminal sliding mode control
SSESteady-state-error
THDTotal harmonic distortions
SSSliding surface
FFTFast Fourier Transform

References

  1. Rocabert, J.; Luna, A.; Blaabjerg, F.; Rodriguez, P. Control of power converters in AC microgrids. IEEE Trans. Power Electron. 2012, 27, 4734–4749. [Google Scholar] [CrossRef]
  2. Song, W.; Dong, Y.; He, G.; Zhou, Z. Fixed-time robust fractional-order sliding mode control strategy for grid-connected inverters based on weighted average current. Energies 2024, 17, 4577. [Google Scholar] [CrossRef]
  3. Sun, H.; Guo, Q.; Qi, J.; Ajjarapu, V.; Bravo, R.; Chow, J.; Li, Z.; Moghe, R.; Nasr-Azadani, E.; Tamrakar, U.; et al. Review of challenges and research opportunities for voltage control in smart grids. IEEE Trans. Power Syst. 2019, 34, 2790–2801. [Google Scholar] [CrossRef]
  4. Agorreta, J.L.; Borrega, M.; López, J.; Marroyo, L. Modeling and control of N-Paralleled grid-connected inverters with LCL filter coupled due to grid impedance in PV plants. IEEE Trans. Power Electron. 2010, 6, 770–785. [Google Scholar]
  5. Rockhill, A.A.; Liserre, M.; Teodorescu, R.; Rodriguez, P. Grid-filter design for a multi-megawatt medium-voltage voltage-source inverter. IEEE Trans. Ind. Electron. 2010, 58, 1205–1217. [Google Scholar] [CrossRef]
  6. Tang, Y.; Loh, P.C.; Wang, P.; Choo, F.H.; Gao, F. Exploring inherent damping characteristic of LCL-filters for three-phase grid-connected voltage source inverters. IEEE Trans. Power Electron. 2011, 27, 1433–1443. [Google Scholar] [CrossRef]
  7. Azghandi, L.A.; Barakati, S.M.; Yazdani, A. Impedance-based stability analysis and design of a fractional-order active damper for grid-connected current-source inverters. IEEE Trans. Sustain. Energy 2021, 12, 599–611. [Google Scholar] [CrossRef]
  8. Yang, T.; Wang, Q.; Xie, Z.; Zhang, X.; Chang, L. Digital current controller with a novel active damping design for IPMSM. IEEE Trans. Energy Convers. 2022, 37, 185–197. [Google Scholar] [CrossRef]
  9. Chen, W.; Zhang, Y.; Tu, Y.; Shen, K.; Liu, J. Active damping control for LCL filters with inverter-side current feedback only. IEEE Trans. Power Electron. 2022, 37, 10065–10069. [Google Scholar] [CrossRef]
  10. Kouchaki, A.; Nymand, M. Analytical design of passive LCL filter for three-phase two-level power factor correction rectifiers. IEEE Trans. Power Electron. 2018, 33, 3012–3022. [Google Scholar] [CrossRef]
  11. Guan, Y.; Wang, Y.; Xie, Y.; Liang, Y.; Lin, A.; Wang, X. The dual-current control strategy of grid-connected inverter with LCL filter. IEEE Trans. Power Electron. 2018, 34, 5940–5952. [Google Scholar] [CrossRef]
  12. Li, M.; Zhang, X.; Guo, Z.; Wang, J.; Wang, Y.; Li, F.; Zhao, W. The control strategy for the grid-connected inverter through impedance reshaping in q-axis and its stability analysis under a weak grid. IEEE J. Emerg. Sel. Topics Power Electron. 2021, 9, 3229–3242. [Google Scholar] [CrossRef]
  13. Li, G.; Ma, F.; Luo, A.; He, Z.; Wu, W.; Wei, X.; Zhu, Z.; Guo, J. Virtual impedance-based virtual synchronous generator control for grid-connected inverter under weak grid situations. IET Power Electron. 2018, 11, 2125–2132. [Google Scholar] [CrossRef]
  14. Gulur, S.; Iyer, V.M.; Bhattacharya, S. A dual-loop current control structure with improved disturbance rejection for grid-connected converters. IEEE Trans. Power Electron. 2019, 34, 10233–10244. [Google Scholar] [CrossRef]
  15. Akhavan, A.; Vasquez, J.C.; Guerrero, J.M. A robust method for controlling grid-connected inverters in weak grids. IEEE Trans. Circuits Syst. II Express Briefs 2020, 68, 1333–1337. [Google Scholar] [CrossRef]
  16. Tang, C.; Zhou, K.; Shu, Y.; He, Q.; Chen, Q. Analysis and design of multiple resonant current control for grid-connected converters. IEEE J. Emerg. Sel. Topics Power Electron. 2021, 10, 2539–2546. [Google Scholar] [CrossRef]
  17. Wang, X.; Wang, D.; Zhou, S. A control strategy of LCL-type grid-connected inverters for improving the stability and harmonic suppression capability. Machines 2022, 10, 1027. [Google Scholar] [CrossRef]
  18. Maganti, S.; Padhy, N.P. A feedback-based flexible compensation strategy for a weak-grid-tied current-controlled converter under unbalanced and harmonic conditions. IEEE Trans. Ind. Appl. 2022, 58, 7739–7753. [Google Scholar] [CrossRef]
  19. Komurcugil, H.; Biricik, S.; Bayhan, S.; Zhang, Z. Sliding mode control: Overview of its applications in power converters. IEEE Ind. Electron. Mag. 2020, 15, 40–49. [Google Scholar] [CrossRef]
  20. Wu, L.; Liu, J.; Vazquez, S.; Mazumder, S.K. Sliding mode control in power converters and drives: A review. IEEE/CAA J. Autom. Sinica 2021, 9, 392–406. [Google Scholar] [CrossRef]
  21. Hou, T.; Jiang, Y.; Cai, Z. Study on the resonance characteristics and active damping suppression strategies of multi-inverter grid-connected systems under weak grid conditions. Energies 2024, 17, 5889. [Google Scholar] [CrossRef]
  22. Zheng, Y.; Deng, H.; Liu, X.; Guan, Y. Sliding mode observer-based phase-locking strategy for current source inverter in weak grids. Energies 2024, 17, 4891. [Google Scholar] [CrossRef]
  23. Sufyan, A.; Jamil, M.; Ghafoor, S.; Awais, Q.; Ahmad, H.A.; Khan, A.A.; Abouobaida, H. A robust nonlinear sliding mode controller for a three-phase grid-connected inverter with an LCL filter. Energies 2022, 15, 9428. [Google Scholar] [CrossRef]
  24. Li, H.; Wu, W.; Huang, M.; Chung, H.S.H.; Liserre, M.; Blaabjerg, F. Design of PWM-SMC controller using linearized model for grid-connected inverter with LCL filter. IEEE Trans. Power Electron. 2021, 35, 12773–12786. [Google Scholar] [CrossRef]
  25. Dong, H.; Yang, X.; Gao, H.; Yu, X. Practical terminal sliding-mode control and its applications in servo systems. IEEE Trans. Ind. Electron. 2022, 70, 752–761. [Google Scholar] [CrossRef]
  26. Yu, X.; Feng, Y.; Man, Z. Terminal sliding mode control—An overview. IEEE Open J. Ind. Electron. Soc. 2020, 2, 36–52. [Google Scholar] [CrossRef]
  27. Gao, W.; Hung, J.C. Variable structure control of nonlinear systems: A new approach. IEEE Trans. Ind. Electron. 1993, 40, 45–55. [Google Scholar] [CrossRef]
  28. Sanders, S.R.; Verghese, G.C. Lyapunov-based control for switched power converters. IEEE Trans. Power Electron. 1992, 7, 17–24. [Google Scholar] [CrossRef]
  29. Komurcugil, H.; Kukrer, O. Lyapunov-based control for three-phase pwm ac/dc voltage-source converters. IEEE Trans. Power Electron. 1998, 13, 801–813. [Google Scholar] [CrossRef]
  30. Pan, D.; Ruan, X.; Bao, C.; Li, W.; Wang, X. Optimized controller design for LCL-type grid-connected inverter to achieve high robustness against grid-impedance variation. IEEE Trans. Ind. Electron. 2014, 62, 1537–1547. [Google Scholar] [CrossRef]
Figure 1. Grid-connected inverter with an LCL filter.
Figure 1. Grid-connected inverter with an LCL filter.
Electronics 14 02894 g001
Figure 2. Phase-plane trajectory exhibiting chattering phenomena.
Figure 2. Phase-plane trajectory exhibiting chattering phenomena.
Electronics 14 02894 g002
Figure 3. Steady-state reference tracking performance using SMC.
Figure 3. Steady-state reference tracking performance using SMC.
Electronics 14 02894 g003
Figure 4. Steady-state reference tracking performance using IT-SMC.
Figure 4. Steady-state reference tracking performance using IT-SMC.
Electronics 14 02894 g004
Figure 5. Steady-state reference tracking performance using DIT-SMC.
Figure 5. Steady-state reference tracking performance using DIT-SMC.
Electronics 14 02894 g005
Figure 6. Waveform for current injected into the grid and grid voltage using DIT-SMC.
Figure 6. Waveform for current injected into the grid and grid voltage using DIT-SMC.
Electronics 14 02894 g006
Figure 7. Fast Fourier Transform of grid-injected current using DIT-SMC in steady-state conditions.
Figure 7. Fast Fourier Transform of grid-injected current using DIT-SMC in steady-state conditions.
Electronics 14 02894 g007
Figure 8. Grid current waveform under grid inductance and voltage distortion.
Figure 8. Grid current waveform under grid inductance and voltage distortion.
Electronics 14 02894 g008
Figure 9. Controller performance when the inverter is connected to RL load.
Figure 9. Controller performance when the inverter is connected to RL load.
Electronics 14 02894 g009
Figure 10. Hardware-in-loop setup of OAPL-RT system.
Figure 10. Hardware-in-loop setup of OAPL-RT system.
Electronics 14 02894 g010
Figure 11. (a) Steady-state waveform of current injected into the grid. (b) Reference tracking waveform at the step change of 10 A using DIT-SMC.
Figure 11. (a) Steady-state waveform of current injected into the grid. (b) Reference tracking waveform at the step change of 10 A using DIT-SMC.
Electronics 14 02894 g011
Figure 12. Steady-state grid current and grid voltage waveform.
Figure 12. Steady-state grid current and grid voltage waveform.
Electronics 14 02894 g012
Figure 13. (a) Grid current waveform at the resonance frequency of 2000 Hz. (b) Grid current results during co-occurrence of inductance variation and voltage distortions.
Figure 13. (a) Grid current waveform at the resonance frequency of 2000 Hz. (b) Grid current results during co-occurrence of inductance variation and voltage distortions.
Electronics 14 02894 g013
Figure 14. Grid current waveform in the presence of the external load.
Figure 14. Grid current waveform in the presence of the external load.
Electronics 14 02894 g014
Figure 15. Experimental results for reference tracking error comparison (a) SMC, (b) MRSMC and (c) DIT-SMC.
Figure 15. Experimental results for reference tracking error comparison (a) SMC, (b) MRSMC and (c) DIT-SMC.
Electronics 14 02894 g015
Table 1. GCI system parameters.
Table 1. GCI system parameters.
SymbolValue
DC-link voltage V d c 350 V
Grid Voltage V g 220–240  V
Grid frequency f g 50  Hz
Filter capacitance C6 μF
Filter inductance L 1 , L 2 1.2 mH
Inductor resistance r 1 , r 2 0.2 Ω
Switching frequency f s w 12 kHz
Sampling frequency f s 12 kHz
Table 2. DIT-SMC controller parameters.
Table 2. DIT-SMC controller parameters.
DescriptionSymbolValue
SS coefficients α 1 , α 2 , α 3 , α 6 , α 7 1, 1.8, 1.6, 3200, 8700
Terminal law parameters λ 1 , λ 2 0.8, 1.6
Reaching law coefficients γ 0.8
Table 3. Comparative study with recent state-of-the-art control methods.
Table 3. Comparative study with recent state-of-the-art control methods.
Comparison CategorySMCMRSMCProposed
THD%2.3%1.5%0.79%
Steady-state-error1 ms0.1 ms≈0
Sampling frequency12 kHz20 kHz12 kHz
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Noman, A.M.; Sufyan, A.; Jamil, M.; Almutairi, S.Z. Non-Singular Terminal Sliding Mode Control for a Three-Phase Inverter Connected to an Ultra-Weak Grid. Electronics 2025, 14, 2894. https://doi.org/10.3390/electronics14142894

AMA Style

Noman AM, Sufyan A, Jamil M, Almutairi SZ. Non-Singular Terminal Sliding Mode Control for a Three-Phase Inverter Connected to an Ultra-Weak Grid. Electronics. 2025; 14(14):2894. https://doi.org/10.3390/electronics14142894

Chicago/Turabian Style

Noman, Abdullah M., Abu Sufyan, Mohsin Jamil, and Sulaiman Z. Almutairi. 2025. "Non-Singular Terminal Sliding Mode Control for a Three-Phase Inverter Connected to an Ultra-Weak Grid" Electronics 14, no. 14: 2894. https://doi.org/10.3390/electronics14142894

APA Style

Noman, A. M., Sufyan, A., Jamil, M., & Almutairi, S. Z. (2025). Non-Singular Terminal Sliding Mode Control for a Three-Phase Inverter Connected to an Ultra-Weak Grid. Electronics, 14(14), 2894. https://doi.org/10.3390/electronics14142894

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