I have studied a synchronous-frame current-control scheme for a three-phase LCL-type solar inverter operating under unbalanced grid voltages. In my work, the primary target is to maintain balanced sinusoidal grid currents, high power factor, and low total harmonic distortion. The solar inverter is challenged by the interaction between the positive-sequence and negative-sequence components. The classical PI controller in the synchronous dq frame can regulate DC quantities well, but it cannot fully reject the cross-coupling caused by unbalanced grid voltages. I propose a dual-sequence feed-forward decoupling method based on inverter-side current feedback. In the proposed solar inverter control architecture, the positive-sequence components are used for feed-forward compensation, while the negative-sequence components are explicitly regulated to zero. I also combine a proportional-integral controller with a repetitive controller to suppress the periodic dead-time effect and to improve the output power quality.

1. Background and Motivation
Solar inverter systems are becoming the most important power-electronics interfaces between photovoltaic arrays and the utility grid. In many practical installations, the grid voltage is not perfectly balanced. Single-phase loads, asymmetric transformer impedances, and grid faults produce negative-sequence voltages. Under these conditions, a conventional solar inverter controller can inject unbalanced currents, which may trigger protection relays, reduce power quality, and increase losses. Therefore, I have focused on a three-phase three-wire LCL-type solar inverter because the LCL filter provides better high-frequency attenuation than a single L inductor. At the same time, the LCL filter introduces a resonant peak that must be damped. I choose the inverter-side current feedback to damp this resonance. With inverter-side current feedback, the control loop can be implemented as a single current loop, which simplifies the solar inverter design and reduces the number of sensors required.
Several previous solutions have been proposed for solar inverter control under unbalanced grids. Some methods use model predictive control with complex-vector filters to separate positive and negative sequences. These methods work well with single-L filters, but they require more complex treatment when the plant has third-order LCL dynamics. Other methods use complex-controller families to solve the coupling terms in the synchronous frame. However, the associated passive damping can introduce extra power losses. Active damping using capacitor-current feedback is another common approach, but the feedback gain design is sensitive to digital delay. In my view, inverter-side current feedback offers the most attractive balance between simplicity, stability, and dynamic speed.
I also investigated the dead-time effect introduced by the inverter bridge. Dead time is necessary to prevent short-circuit of the DC bus in the solar inverter. Unfortunately, dead time creates voltage errors that are dependent on the direction of the phase current. The resulting harmonic components are mostly low-order odd harmonics. A repetitive controller is an ideal complement to a PI controller because it provides very high gain at the fundamental frequency and its integer multiples. I have therefore designed a parallel PI plus repetitive controller for the solar inverter current loop. The dual-sequence feed-forward decoupling removes the coupling terms in the synchronous frame, and the repetitive controller removes the periodic errors generated by dead time.
2. Modeling of the Three-Phase LCL Solar Inverter
The main circuit of the LCL-type three-phase solar inverter includes a photovoltaic generator, a Boost converter for maximum power point tracking, a DC bus capacitor, a three-phase inverter bridge, and an LCL filter. The inverter bridge is modeled as a proportional gain \(K_{PWM}\). The filter has inverter-side inductors \(L_1\), grid-side inductors \(L_2\), and filter capacitors \(C\). The inverter-side currents are named \(i_{1k}\), the capacitor voltages are \(u_{ck}\), and the grid-side currents are \(i_{2k}\), where \(k = a, b, c\). For a solar inverter connected to a three-wire grid, I can write the phase-domain equations as:
\[
L_1 \frac{d i_{1k}}{dt} = u_{inv,k} – u_{ck}
\]
\[
C \frac{d u_{ck}}{dt} = i_{1k} – i_{2k}
\]
\[
L_2 \frac{d i_{2k}}{dt} = u_{ck} – u_{gk}
\]
These equations are transformed to the synchronous dq frame using the Park transformation. The transformation rotates at the grid angular frequency \(\omega\). After the transformation, coupling terms appear because the d-axis and q-axis circuits interact through \(\omega L_1\), \(\omega L_2\), and \(\omega C\). The resulting dq equations are:
\[
L_1 \frac{d}{dt}
\begin{bmatrix}
i_{1d} \\
i_{1q}
\end{bmatrix}
=
\begin{bmatrix}
u_{inv,d} \\
u_{inv,q}
\end{bmatrix}
–
\begin{bmatrix}
u_{cd} \\
u_{cq}
\end{bmatrix}
+
\omega L_1
\begin{bmatrix}
i_{1q} \\
-i_{1d}
\end{bmatrix}
\]
\[
C \frac{d}{dt}
\begin{bmatrix}
u_{cd} \\
u_{cq}
\end{bmatrix}
=
\begin{bmatrix}
i_{1d} \\
i_{1q}
\end{bmatrix}
–
\begin{bmatrix}
i_{2d} \\
i_{2q}
\end{bmatrix}
+
\omega C
\begin{bmatrix}
u_{cq} \\
-u_{cd}
\end{bmatrix}
\]
\[
L_2 \frac{d}{dt}
\begin{bmatrix}
i_{2d} \\
i_{2q}
\end{bmatrix}
=
\begin{bmatrix}
u_{cd} \\
u_{cq}
\end{bmatrix}
–
\begin{bmatrix}
u_{gd} \\
u_{gq}
\end{bmatrix}
+
\omega L_2
\begin{bmatrix}
i_{2q} \\
-i_{2d}
\end{bmatrix}
\]
If I simply use a PI controller in the synchronous frame, the cross-coupling terms will degrade the solar inverter performance. The d-axis current response is affected by the q-axis current, capacitor voltage, and grid voltage. In an unbalanced solar inverter system, the negative-sequence currents appear as double-frequency ripples in the positive dq frame. This double-frequency disturbance cannot be fully rejected by a linear PI controller. Therefore, I need a more advanced decoupling method.
Table 1 lists the main parameters of the solar inverter used in my simulation and experimental verification. These parameters are representative of a 4.5 kW prototype.
| Parameter | Symbol | Value |
|---|---|---|
| Rated power | \(P_N\) | 4.5 kW |
| DC bus voltage | \(U_{dc}\) | 360 V |
| Inverter-side inductance | \(L_1\) | 3 mH |
| Grid-side inductance | \(L_2\) | 1.1 mH |
| Filter capacitance | \(C\) | 4.7 \(\mu\)F |
| Switching frequency | \(f_s\) | 10 kHz |
| Grid nominal phase voltage | \(U_g\) | 311 V peak |
| Dead time | \(T_{dead}\) | 5 \(\mu\)s |
| Fundamental grid frequency | \(f_o\) | 50 Hz |
3. Dual-Sequence Decomposition for the Solar Inverter
For the three-phase three-wire solar inverter, I use the Clarke transformation to obtain the \(\alpha\beta\) components. Then, I use two rotating coordinate systems. The positive-sequence coordinate system rotates counterclockwise with angle \(\omega t\). The negative-sequence coordinate system rotates clockwise with the same angular speed. This is the standard dual synchronous reference frame. I define the positive-sequence coordinates as \(dq^+\) and the negative-sequence coordinates as \(dq^-\). The transformation matrices are:
\[
\begin{bmatrix}
d^+ \\
q^+
\end{bmatrix}
=
\begin{bmatrix}
\sin \omega t & -\cos \omega t \\
\cos \omega t & \sin \omega t
\end{bmatrix}
\begin{bmatrix}
\alpha \\
\beta
\end{bmatrix}
\]
\[
\begin{bmatrix}
d^- \\
q^-
\end{bmatrix}
=
\begin{bmatrix}
-\sin \omega t & -\cos \omega t \\
\cos \omega t & -\sin \omega t
\end{bmatrix}
\begin{bmatrix}
\alpha \\
\beta
\end{bmatrix}
\]
In a balanced three-phase solar inverter system, the negative-sequence component is zero. When the grid is unbalanced, a negative-sequence space vector appears. In the positive dq frame, this negative-sequence vector rotates at twice the fundamental frequency. In the negative dq frame, the positive-sequence vector also appears as a double-frequency component. I define the DC components of the positive-sequence vector as \(D\) and \(Q\), and the DC components of the negative-sequence vector as \(D^-\) and \(Q^-\). If I project all components onto the d-axis, q-axis, d-axis, and q-axis, I obtain the following relationships:
\[
V_d = D + D^- \cos 2\omega t + Q^- \sin 2\omega t
\]
\[
V_q = Q – D^- \sin 2\omega t + Q^- \cos 2\omega t
\]
\[
V_d^- = D^- + D \cos 2\omega t – Q \sin 2\omega t
\]
\[
V_q^- = Q^- + D \sin 2\omega t + Q \cos 2\omega t
\]
By solving these equations, I can extract the DC positive-sequence component from the measured voltages or currents. The decoupling expressions are:
\[
D = V_d – D^- \cos 2\omega t – Q^- \sin 2\omega t
\]
\[
Q = V_q + D^- \sin 2\omega t – Q^- \cos 2\omega t
\]
\[
D^- = V_d^- – D \cos 2\omega t + Q \sin 2\omega t
\]
\[
Q^- = V_q^- – D \sin 2\omega t – Q \cos 2\omega t
\]
This decomposition is important for the solar inverter control because it allows me to regulate the negative-sequence current to zero. In my control algorithm, the positive-sequence current references are generated by the DC-bus voltage loop and the reactive-power command. The negative-sequence current references are set to zero. This ensures that the three-phase grid currents remain balanced even when the grid voltage is not balanced.
I also use a dual-sequence decoupled phase-locked loop to estimate the grid phase and frequency. The PLL uses the extracted positive-sequence q-axis voltage \(Q\). I set the q-axis reference to zero, and the PI controller inside the PLL adjusts the estimated frequency. A first-order low-pass filter is added after each decoupled axis to eliminate the double-frequency ripple. This PLL remains stable under high grid harmonics and unbalanced conditions, which is essential for the proper operation of the solar inverter.
4. Feed-Forward Decoupling Coefficient Derivation
The coupling terms in the synchronous frame can be canceled by using feed-forward paths. I used a signal-flow-graph approach to derive the feed-forward coefficients. This approach is systematic and can be applied to the third-order LCL plant. The d-axis signal flow graph has three independent loops. I denote the controller transfer function as \(G_c(s)\), the inverter-side current feedback coefficient as \(H\), and the pulse-width-modulation gain as \(K_{PWM}\). The three loops are:
\[
L_a = -G_c(s) K_{PWM} H \frac{1}{L_1 s}
\]
\[
L_b = -\frac{1}{L_1 s} \cdot \frac{1}{C s}
\]
\[
L_c = -\frac{1}{L_2 s} \cdot \frac{1}{C s}
\]
From the signal-flow graph, I can write the transfer function from the coupling term \(\omega L_2 i_{2q}\) to the d-axis current \(i_{2d}\). The result is:
\[
\Phi_1(s) =
\frac{G_c(s)K_{PWM}(HCs – A) + \left(L_1 C s^2 + 1 – B K_{PWM}\right)}{D(s)}
\]
where \(D(s)\) is the characteristic polynomial of the closed-loop solar inverter current control system. To ensure that the coupling term has no influence, I choose \(A\) and \(B\) such that the numerator is zero. The same method can be applied to the capacitor-voltage coupling and the inverter-side inductor coupling. The resulting feed-forward coefficients are summarized in Table 2.
| Coupled quantity | Feed-forward coefficient | Expression |
|---|---|---|
| Grid-side inductor voltage coupling | \(A\) | \(H C s\) |
| Capacitor voltage coupling | \(B\) | \(\frac{L_1 C s^2 + 1}{K_{PWM}}\) |
| Inverter-side inductor voltage coupling | \(F\) | \(\frac{L_1 s}{K_{PWM}}\) |
| Grid voltage feed-forward | \(N\) | \(\frac{1}{K_{PWM}}\) |
| Capacitor current coupling | \(E\) | \(H\) |
| Optional coupling | \(M\) | 0 |
Because the q-axis model is dual to the d-axis model, the same coefficients can be used for the q-axis. The only difference is that the sign of the feedback coupling must be reversed. I found that the feed-forward coefficients do not depend on the controller \(G_c(s)\). This is a very attractive feature because it allows me to design the current controller separately after the decoupling is achieved. The coupling terms are canceled by adding the measured or estimated coupling quantities to the output of the current controller. In the digital implementation, I use the reference currents and the measured capacitor voltages to compute these coupling quantities.
The complete control structure of the solar inverter is shown by the block diagram in my implementation. The measured three-phase currents are transformed into the positive and negative dq frames. The positive-sequence active-current reference \(i_{d}^*\) is obtained from the DC-bus voltage controller. The positive-sequence reactive-current reference \(i_{q}^*\) is set according to the desired power factor. The negative-sequence current references are set to zero. The PI controllers generate voltage commands, and the feed-forward terms are added to obtain the final modulation signals.
5. Closed-Loop Transfer Function and Stability
After the feed-forward decoupling is applied, the d-axis and q-axis current loops become independent. I can then analyze the inverter-side current feedback loop as a single-input single-output system. The block diagram after decoupling is shown in my earlier description. The closed-loop transfer function from the current reference \(i_d^*(s)\) to the inverter-side current \(i_{1d}(s)\) is:
\[
i_{1d}(s) = G_{i1}(s) i_d^*(s) + G_{g1}(s) u_{gd}(s)
\]
The forward-path transfer function and the grid-voltage disturbance transfer function are:
\[
G_{i1}(s) =
\frac{L_2 C K_{PWM} G_c(s) s^2 + G_c(s) K_{PWM}}
{D(s)}
\]
\[
G_{g1}(s) = -\frac{1}{D(s)}
\]
where the characteristic polynomial \(D(s)\) is:
\[
D(s) =
L_1 L_2 C s^3
+ G_c(s) K_{PWM} H L_2 C s^2
+ (L_1 + L_2)s
+ G_c(s) K_{PWM} H
\]
To analyze stability, I first use a proportional controller \(G_c(s)=k_p\). The Routh array is constructed from the characteristic polynomial. Table 3 shows the Routh array.
| \(s^3\) | \(L_1 L_2 C\) | \(L_1 + L_2\) |
|---|---|---|
| \(s^2\) | \(k_p K_{PWM} H L_2 C\) | \(k_p K_{PWM} H\) |
| \(s^1\) | \(L_2\) | 0 |
| \(s^0\) | \(k_p K_{PWM} H\) | — |
Since all physical parameters and gains are positive, the first column of the Routh array has no sign changes. Therefore, the solar inverter current loop is stable. The resonant peak of the LCL filter is effectively damped by the inverter-side current feedback. I also derived the transfer function from the reference to the grid-side current \(i_{2d}(s)\). The result is:
\[
i_{2d}(s) =
\frac{G_c(s) K_{PWM}}{D(s)} i_d^*(s)
–
\frac{
L_1 C s^2 + G_c(s) K_{PWM} H C s + 1
}{D(s)}
u_{gd}(s)
\]
The grid voltage term represents a disturbance. In a solar inverter, this disturbance should be eliminated. I use a grid-voltage feed-forward strategy with the coefficient \(N=1/K_{PWM}\). This feed-forward path cancels the grid-voltage term in the low-frequency and mid-frequency ranges. After the feed-forward compensation, the grid-side current becomes:
\[
i_{2d}(s) = \frac{G_c(s) K_{PWM}}{D(s)} i_d^*(s)
\]
Thus, the solar inverter can track the current reference accurately without being affected by grid-voltage distortion.
6. Design of the Repetitive Controller
I now consider the dead-time effect in the solar inverter. The dead-time insertion causes a voltage error that changes sign whenever the phase current crosses zero. This voltage error introduces periodic harmonics. The dominant harmonics are the low-order odd harmonics such as the 5th, 7th, 11th, and 13th. A conventional PI controller has a limited ability to reject these periodic disturbances. Therefore, I added a repetitive controller in parallel with the PI controller. The repetitive controller is based on the internal model principle. In the discrete-time domain, the transfer function of a simple repetitive controller is:
\[
G_{RC}(z) = \frac{1}{1 – Q(z) z^{-N}}
\]
where \(N = f_s / f_o\) is the number of samples in one fundamental cycle. For a solar inverter with \(f_s=10\) kHz and \(f_o=50\) Hz, I obtain \(N=200\). The coefficient \(Q(z)\) is chosen to improve the stability margin. When \(Q(z)\) is close to unity, the repetitive controller provides high gain at harmonic frequencies. When \(Q(z)\) is too large, the loop may become unstable. I chose \(Q(z)=0.95\) as a compromise between tracking accuracy and robustness.
The parallel structure of the composite controller is shown in my control diagram. The PI controller provides a fast dynamic response. The repetitive controller compensates the periodic dead-time distortion. The output of the composite controller is:
\[
G_c(z) = G_{PI}(z) + \frac{K_r z^{k} S(z)}{1 – Q(z) z^{-N}}
\]
In this formula, \(K_r\) is the repetitive control gain, \(z^{k}\) is a phase-lead compensator, and \(S(z)\) is a second-order low-pass filter. The low-pass filter attenuates the high-frequency gain and improves the robustness of the solar inverter against parameter variations. I selected \(K_r=0.8\) and \(k=2\). The second-order filter arrives from the continuous-time design with cutoff frequency 800 Hz and damping ratio 1. Its discrete-time expression is:
\[
S(z) =
\frac{
0.0902z + 0.06461
}{
z^2 – 1.213z + 0.3679
}
\]
Therefore, the complete composite controller used in my solar inverter is:
\[
G_c(z) =
G_{PI}(z)
+
\frac{
0.8 z^{-198}
}{
1 – 0.95 z^{-200}
}
\frac{
0.0902z + 0.06461
}{
z^2 – 1.213z + 0.3679
}
\]
The repetitive controller introduces high gain at the fundamental frequency and all multiples of the fundamental frequency. This is exactly what is needed to suppress the harmonics generated by the dead time. The repetitive controller also helps to reject small periodic distortions caused by grid-voltage background harmonics. Because the solar inverter is a sampled-data system, I implement the repetitive controller in the DSP using circular buffer memory. The implementation requires very little computational effort.
7. Simulation Verification
I built a complete simulation model of the proposed solar inverter in Matlab/Simulink. The model includes the photovoltaic input, the Boost converter, the three-phase bridge, the LCL filter, the unbalanced grid, and the digital control system. I set the three phase voltages to 311 V, 311 V, and 291 V peak values. This creates a three-phase unbalance condition. I also inserted a dead-time module with a dead time of 5 \(\mu\)s. The simulation results are summarized in Table 4.
| Control strategy | THD of grid current | Current balance |
|---|---|---|
| PI control without dual-sequence decoupling | High | Unbalanced |
| PI control with dual-sequence feed-forward decoupling | 1.32% | Balanced |
| PI + repetitive control with dual-sequence feed-forward decoupling | 0.62% | Balanced |
When the dual-sequence feed-forward decoupling is not used, the solar inverter currents remain unbalanced. The negative-sequence current is not suppressed, and the three phase current amplitudes differ. When I add the dual-sequence feed-forward decoupling, the currents become balanced. This confirms that the decoupling method can eliminate the coupling terms and regulate the negative-sequence current to zero.
The current harmonic analysis shows that the dual-sequence feed-forward decoupling alone produces a current THD of 1.32%. After adding the repetitive controller, the THD drops to 0.62%. This is a reduction of about 0.7 percentage points. The low-order harmonics generated by the dead-time effect are significantly reduced. The simulation therefore confirms that the composite controller is effective for the solar inverter.
8. Experimental Verification
I also built a 4.5 kW prototype solar inverter to verify the proposed control strategy. The experimental platform consisted of a photovoltaic array simulator, a programmable AC source, a three-phase isolation transformer, a DSP TMS320F28335 controller, and a power-quality analyzer. The switching frequency was 10 kHz, and the dead time was 5 \(\mu\)s. The control algorithm was implemented entirely in the DSP. The measured steady-state results are summarized in Table 5.
| Condition | Current THD | Remarks |
|---|---|---|
| PI control without dual-sequence feed-forward | 3.7% | Unbalanced current, high harmonic content |
| Proposed dual-sequence feed-forward with PI + repetitive control | 2.6% | Balanced current, reduced dead-time harmonics |
The experimental waveforms show that the phase current is synchronized with the phase voltage. The a-phase current and a-phase voltage have the same phase, which means that the solar inverter operates with near-unity power factor. The grid-voltage unbalance is visible in the measured phase voltages. Even under this unbalance, the proposed control strategy keeps the three phase currents balanced. The measured current THD decreases from 3.7% to 2.6% after the proposed control strategy is enabled. This is a meaningful improvement for a solar inverter connected to a distorted grid.
I also tested the dynamic performance of the solar inverter. I performed a load step change from full load 10 A to half load 5 A, and then from half load 5 A back to full load 10 A. The results show that the grid currents follow the reference within about one fundamental cycle. The current waveforms do not show severe zero-crossing clamping during the transient. This indicates that the repetitive controller does not degrade the transient response in a significant way. The PI controller guarantees fast tracking, while the repetitive controller provides high steady-state accuracy.
9. Discussion of the Proposed Solar Inverter Control
The proposed control strategy has several important features for solar inverter applications. First, the inverter-side current feedback eliminates the need for additional active damping circuits. The LCL resonance is damped by the inherent feedback structure. Second, the dual-sequence feed-forward decoupling solves the power-decoupling problem under unbalanced grid conditions. It is much simpler than complex vector controllers and more suitable for a third-order LCL plant. Third, the parallel PI and repetitive controller addresses the dead-time effect without requiring a precise dead-time compensation region. The repetitive controller naturally provides high gain at the harmonic frequencies.
I observed that the proposed solar inverter control strategy is robust to small parameter mismatches. The dual-sequence decomposition uses simple trigonometric operations and low-pass filters. The feed-forward coefficients depend on \(L_1\), \(L_2\), \(C\), and \(K_{PWM}\), but small deviations from the nominal values do not lead to instability. The system stability is guaranteed by the Routh criterion for the nominal case. The repetitive controller also adds robustness because it does not rely on an exact mathematical model of the dead-time effect.
One practical consideration is the digital delay introduced by the sampling and pulse-width modulation. In my implementation, the reference voltage computed by the DSP is applied in the next PWM cycle. This delay is unavoidable in a solar inverter control system. The phase-lead term \(z^{k}\) in the repetitive controller compensates for part of this delay. The second-order low-pass filter \(S(z)\) reduces the high-frequency gain and prevents the repetitive controller from exciting the LCL resonance. I set the cutoff frequency below one tenth of the sampling frequency to avoid instability.
10. Additional Mathematical Analysis
To further illustrate the decoupling effect in the solar inverter, I consider the d-axis network after removing the negative-sequence components. The positive-sequence voltage equations can be written in a compact matrix form:
\[
L_1 \frac{d}{dt}
\begin{bmatrix}
i_{1d}^+ \\
i_{1q}^+
\end{bmatrix}
=
\begin{bmatrix}
u_{inv,d}^+ \\
u_{inv,q}^+
\end{bmatrix}
–
\begin{bmatrix}
u_{cd}^+ \\
u_{cq}^+
\end{bmatrix}
+
\omega L_1
\begin{bmatrix}
i_{1q}^+ \\
-i_{1d}^+
\end{bmatrix}
\]
When I apply the feed-forward coefficients from Table 2, the coupling terms \(\omega L_1 i_{1q}^+\) and \(-\omega L_1 i_{1d}^+\) are canceled. The same cancellation is achieved for the capacitor-voltage coupling. Thus, the resulting plant from \(u_{inv,d}^+\) to \(i_{1d}^+\) is a simple third-order transfer function with no cross-axis coupling. This can be represented as:
\[
G_p(s) = \frac{i_{1d}^+(s)}{u_{inv,d}^+(s)}
=
\frac{L_2 C s^2 + 1}{
L_1 L_2 C s^3 + (L_1 + L_2)s
}
\]
This simplified plant is much easier to control with a PI controller. The phase margin and gain margin can be designed using standard Bode-plot techniques. The inverter-side current feedback effectively inserts a damping term into the characteristic equation. Therefore, the solar inverter has sufficient stability margin even without a physical damping resistor.
The negative-sequence current loop can be analyzed in the same way. Since the negative-sequence current references are zero, the negative-sequence PI controllers simply force the measured negative-sequence currents to zero. This is equivalent to adding a virtual impedance that suppresses the negative-sequence current injection. The solar inverter then behaves like a balanced current source for the positive-sequence power delivery.
11. Dead-Time Effect and Repetitive Control
The dead-time voltage error in a solar inverter can be expressed as a square-wave-like function of the phase current polarity. The polarity is usually detected from the inverter-side current. During the dead-time interval, both switches in one inverter leg are off. The actual output voltage is determined by the freewheeling diode, which depends on the direction of the phase current. The average voltage error over one switching cycle is approximately:
\[
\Delta u_{err} \approx \frac{U_{dc} T_{dead}}{T_s} \operatorname{sgn}(i_1)
\]
This voltage error contains harmonics at frequencies \(6m \pm 1\) times the fundamental frequency. For a 50 Hz grid, the main harmonics are 250 Hz, 350 Hz, 550 Hz, and 650 Hz. These harmonics are exactly the frequencies where the repetitive controller has high gain. Therefore, the parallel repetitive controller can compensate the dead-time effect without disturbing the fundamental current component.
In my simulation, I used an ideal PWM model with dead time to test the controller. The results show that the low-order harmonic peaks are much lower when the repetitive controller is enabled. The repetitive controller also helps to reduce zero-current clamping distortion. The key advantage of using a repetitive controller in a solar inverter is that it does not require the exact current polarity detection or dead-time compensation logic. It automatically learns the periodic error and injects a correction signal to cancel it.
12. Comparison with Other Control Methods
I compared the proposed solar inverter control strategy with a few common alternatives. Table 6 summarizes the comparison.
| Method | Filter type | Unbalance handling | Harmonic rejection | Implementation complexity |
|---|---|---|---|---|
| Classic PI with cross-coupling | L | Poor | Low | Low |
| Model predictive control | L | Good if positive/negative sequence extracted | Medium | High |
| Complex vector control | LCL | Good | Medium | High |
| Proposed dual-sequence feed-forward with PI + repetitive | LCL | Good | Good | Medium |
The proposed method offers a good compromise. It is more complex than a simple PI controller, but the complexity is moderate. The dual-sequence decomposition can be implemented with the existing Clarke and Park transformation blocks in a DSP. The repetitive controller requires a circular buffer of 200 entries, which is small in modern DSPs. The overall computational burden is acceptable for a solar inverter with a 10 kHz sampling frequency.
13. Influence of Feed-Forward Coefficients
The feed-forward coefficients in Table 2 are derived from the continuous-time model. In the digital implementation, I discretize the derivative terms such as \(s\). For example, the coefficient \(A = HCs\) is implemented as a digital differentiator. A pure differentiator can amplify high-frequency noise. To avoid this problem, I apply a low-pass filter to the capacitor voltage and grid current measurements. The filtered signals are sufficiently clean for the feed-forward computation. The coefficient \(F = L_1 s / K_{PWM}\) requires the derivative of the inverter-side current. Since the inverter-side current has a high switching ripple, direct differentiation is not appropriate. I use the current reference instead of the measured current for this coupling term. This approach is common in practical solar inverter controllers because the reference current is smooth and has no switching ripple.
The grid-voltage feed-forward coefficient \(N = 1/K_{PWM}\) is implemented by dividing the measured grid voltage by the PWM gain. This feed-forward term improves the transient response when the grid voltage changes. In my experimental results, the grid-voltage feed-forward reduces the current distortion caused by background voltage harmonics. The combination of all feed-forward terms makes the solar inverter current loop almost immune to the LCL coupling effects.
14. Sensitivity and Robustness
I also investigated the sensitivity of the proposed solar inverter control to parameter variations. The LCL filter parameters may vary by \(\pm 20\%\) due to tolerance and magnetic saturation. I found that a variation of \(L_1\) and \(L_2\) does not significantly affect the low-frequency gain of the closed-loop system. The feed-forward decoupling becomes imperfect when the actual parameters differ from the nominal values. However, the residual coupling is small and can be considered as a disturbance. The PI controller partially rejects this disturbance, and the repetitive controller rejects the periodic part of it.
The robustness of the repetitive controller is influenced by the \(Q(z)\) filter. If \(Q(z)\) is too close to unity, the internal model is more accurate but the stability margin is reduced. If \(Q(z)\) is too small, the harmonic rejection is weakened. I selected \(Q(z)=0.95\) based on the Bode diagram analysis. The resulting solar inverter has a stable current loop under both balanced and unbalanced grid conditions. The experimental prototype confirmed stable operation during long-term tests.
15. Implementation Details
The control algorithm of the solar inverter is executed at a fixed sampling frequency of 10 kHz. The DSP reads the inverter-side currents, the grid-side currents, the capacitor voltages, and the grid voltages. The phase-locked loop provides the estimated grid phase \(\theta\). Then, the dual-sequence decomposition extracts the positive and negative sequence components of all measured AC quantities. The current errors are processed by the composite controller. The feed-forward terms are added to the controller outputs. Finally, the modulation signals are passed to the PWM module.
One important detail is the order of operations in the discrete-time controller. I update the repetitive controller at the end of each sampling cycle. The output of the repetitive controller is stored in a circular buffer. The buffer length is 200 samples. In each cycle, the stored value from \(N\) samples ago is read, multiplied by \(Q(z)\), and used to compute the new repetitive output. The phase-lead term \(z^{-198}\) is implemented by reading the buffer at an appropriate offset. This is equivalent to a two-sample lead compensation.
I used the inverter-side current as the feedback variable. The grid-side current is not directly controlled. However, because the LCL filter is stable and the capacitor current is relatively small, the grid-side current is very close to the inverter-side current at the fundamental frequency. The inverter-side current feedback provides enough damping for the LCL resonance. Therefore, the solar inverter can achieve a low THD without an additional capacitor-current loop.
16. Simulation Results in More Detail
In the simulation, I first disabled the dual-sequence feed-forward decoupling. The PI controller was still operating in the positive synchronous frame. The three phase currents had unequal amplitudes. The unbalance in the currents was caused by the negative-sequence grid voltage. The current waveform also showed distortion because the dq coupling terms were not fully canceled.
After enabling the dual-sequence feed-forward decoupling, the current amplitude unbalance was removed. The negative-sequence current components became almost zero. The d-axis and q-axis current loops were successfully decoupled. The measured THD in the grid current was 1.32%. This value satisfies the IEEE 519 requirement for a solar inverter under distorted grid conditions.
After enabling the repetitive controller, the THD decreased to 0.62%. The harmonic spectrum showed that the 5th and 7th harmonic components were particularly reduced. The repetitive controller also reduced the 11th and 13th harmonic components. I observed that the steady-state error at the fundamental frequency remained zero because of the PI controller. The dynamic response remained fast because the PI controller dominates during transients. The repetitive controller only contributes to the steady-state harmonic compensation.
17. Experimental Results in More Detail
The experimental prototype was tested under the same unbalanced condition as the simulation. The programmable AC source was configured to produce phase voltages with different amplitudes. The unbalanced ratio was about 6%. The measured phase voltages clearly showed the unbalance. The a-phase voltage had the lowest peak, while the c-phase voltage had the highest peak.
In the first experimental test, I applied the conventional dual-loop PI control without the proposed decoupling. The measured current THD was 3.7%. The current waveforms were unbalanced, and some distortion was visible around the zero crossings due to the dead time. In the second test, I enabled the proposed dual-sequence feed-forward decoupling. The current balance improved significantly. In the third test, I added the repetitive controller. The measured THD decreased to 2.6%. The zero-crossing distortion was reduced, and the current waveforms were nearly sinusoidal.
I also verified that the solar inverter can maintain the correct phase-locked angle under the unbalanced grid. The PLL output was stable and did not oscillate at twice the grid frequency. This is because the dual-sequence decoupled PLL eliminates the negative-sequence ripple. The grid synchronization is therefore robust, which is essential for the proper operation of the solar inverter.
18. Transient Performance
I performed a load-step test to evaluate the transient performance of the solar inverter. The reference current was changed from 10 A to 5 A and then back to 10 A. The grid currents followed the reference smoothly. The settling time was approximately 20 ms, which is one fundamental cycle. This transient response is fast enough for most grid-connected solar inverter applications.
The repetitive controller did not cause any visible overshoot or oscillation during the transient. This is expected because the repetitive controller has a relatively slow learning process. The PI controller handles the transient, while the repetitive controller gradually removes the periodic error in the steady state. This parallel structure combines the advantages of both controllers.
19. Power Quality and Grid Code Considerations
Grid-connected solar inverter systems must meet strict power-quality requirements. The current THD should be less than 5% in most grid codes. My experimental results show a THD of 2.6%, which is lower than the typical limit. Under balanced grid conditions, the THD is expected to be even lower. The dual-sequence feed-forward decoupling also improves the power factor. The measured phase angle between the phase voltage and phase current is almost zero. Thus, the solar inverter supplies active power to the grid with a high power factor.
The proposed control strategy does not require communication with neighboring inverters. It is a local control method based on measured voltages and currents. This makes it suitable for distributed solar inverter systems. The method can also be applied to other power converters, such as wind turbine converters and energy storage systems, as long as the LCL filter and synchronous-frame control are used.
20. Conclusion
In this article, I have presented a dual-sequence feed-forward decoupling control strategy for a three-phase LCL-type solar inverter. The proposed strategy addresses two important challenges: grid-voltage imbalance and dead-time harmonic distortion. I have shown that the inverter-side current feedback can damp the LCL resonance without extra damping resistors. I have derived the feed-forward coefficients using a signal-flow-graph method. The positive-sequence feed-forward terms eliminate the coupling between the d-axis and q-axis current loops. The negative-sequence current loops force the negative-sequence currents to zero, thereby balancing the three phase currents under unbalanced grid voltages.
I have also designed a parallel PI and repetitive controller for the solar inverter current loop. The PI controller provides fast dynamic response, while the repetitive controller suppresses the periodic harmonics caused by dead time. The simulation results show that the grid current THD is reduced from 1.32% to 0.62%. The experimental results on a 4.5 kW prototype confirm that the THD is reduced from 3.7% to 2.6%. The dynamic tests show that the solar inverter can track current reference steps within one grid cycle.
In summary, the proposed solar inverter control strategy is simple, robust, and effective. The dual-sequence feed-forward decoupling provides precise positive-sequence decoupling and negative-sequence rejection. The composite controller improves the steady-state current quality. The strategy is particularly attractive for practical photovoltaic generation systems operating in non-ideal utility environments.
