Harmonic-Compensated Solar Inverters

I present a composite control strategy for grid-connected solar inverters that combines an embedded repetitive controller with state feedback, DC-bus voltage feedforward decoupling, and grid voltage feedforward compensation. The purpose of this strategy is to remove the resonant peak of an LCL filter, suppress low-order harmonic disturbances injected by DC-side ripple, grid voltage distortion, and switch dead-time effects, and achieve both zero steady-state error tracking and fast dynamic response. I focus on solar inverters because they are increasingly required to meet strict grid-code requirements for current waveform quality, and because their operating point changes continuously with irradiance and temperature.

The central problem in solar inverters is not only the conversion of DC energy into AC current. It is also the management of periodic disturbances that appear at integer multiples of the fundamental frequency. An LCL filter gives better attenuation of high-frequency switching harmonics than a simple L filter, but its frequency response contains a sharp resonance peak. That peak can distort the current waveform, reduce stability margins, and amplify background grid harmonics. A suitable controller must therefore add damping, reject periodic disturbances, and preserve a fast command path for changes in the maximum power point or grid power reference.

I organize the method around four elements. First, I model the LCL-filtered solar inverters in state-space form and identify the harmonic mechanisms. Second, I use state feedback to place the closed-loop poles and eliminate the resonance peak. Third, I add DC voltage feedforward and grid voltage feedforward to decouple measured disturbances before they enter the current loop. Fourth, I embed a repetitive controller inside the current control loop so that periodic errors are suppressed without blocking the fast reference path.

System Model for Solar Inverters

I consider a single-phase LCL grid-connected solar inverters topology. The current-loop plant is a double-input, single-output system. The two inputs are the inverter output voltage and the grid voltage at the point of common coupling. The output is the grid-side current. The command current is generated by the maximum power tracking stage or by the grid power reference. It is compared with the feedback grid current, and the error is passed to the current controller. The controller produces a modulation reference, which is compared with a carrier to control the full-bridge switches. The inverter bridge output voltage passes through the LCL filter and then to the grid. The point of common coupling voltage acts as a disturbance, and the LCL network provides the forward transfer function from the inverter voltage to the grid current.

For the LCL filter, I define the inverter-side inductor as L1 with parasitic resistance R1, the filter capacitor as C, and the grid-side inductor as L2 with parasitic resistance R2. The inverter output voltage is vinv, the capacitor voltage is vC, the grid-side current is i2, and the point of common coupling voltage is vg. The resonant frequency of the LCL filter is

$$ \omega_{res}=\sqrt{\frac{L_1+L_2}{L_1 L_2 C}}. $$

Near this frequency, the undamped LCL filter has a very high gain and a rapid phase change. This is the resonant peak that I must eliminate in solar inverters. A simple current regulator may be stable at low frequency but can become oscillatory when the resonance is excited by switching harmonics or grid disturbances. The output admittance of the filter also changes with grid impedance, which makes robust damping important in practical solar inverters.

I represent the LCL-filtered solar inverters with the state vector

$$ x=\begin{bmatrix} i_1 \\ v_C \\ i_2 \end{bmatrix}, $$

where i1 is the inverter-side current. The state-space model is

$$ \frac{d}{dt}\begin{bmatrix} i_1 \\ v_C \\ i_2 \end{bmatrix} = \begin{bmatrix} -R_1/L_1 & -1/L_1 & 0 \\ 1/C & 0 & -1/C \\ 0 & 1/L_2 & -R_2/L_2 \end{bmatrix} \begin{bmatrix} i_1 \\ v_C \\ i_2 \end{bmatrix} + \begin{bmatrix} 1/L_1 \\ 0 \\ 0 \end{bmatrix} v_{inv} + \begin{bmatrix} 0 \\ 0 \\ -1/L_2 \end{bmatrix} v_g, $$

and the output equation is

$$ y=\begin{bmatrix}0&0&1\end{bmatrix}x. $$

I write the same model in compact form as

$$ \dot{x}=Ax+Bu+Ed, $$

$$ y=Cx, $$

where u is the inverter voltage, d is the grid voltage disturbance, and C selects the grid current. This model is the basis for both the state-feedback design and the repetitive control design. I use it because it preserves the internal dynamics of the LCL filter rather than approximating solar inverters as a first-order current source.

Harmonic Characteristics of Solar Inverters

Unipolar double-frequency sinusoidal pulse-width modulation is often used in solar inverters because it doubles the effective switching frequency of the output voltage ripple and reduces the harmonic content. With this modulation, the inverter output voltage can be expanded using a double Fourier series. A simplified representation is

$$ v_{inv}(t)=\frac{V_{dc}}{2}M\sin(\omega_m t)+\frac{V_{dc}}{2}\sum_{m=1}^{\infty}\sum_{n=-\infty}^{\infty}A_{mn}\cos(m\omega_c t+n\omega_m t+\phi_{mn}), $$

where M is the modulation index, Vdc is the DC-bus voltage, ωm is the modulation angular frequency, ωc is the carrier angular frequency, and Amn and φmn depend on Bessel functions. The high-frequency sidebands are attenuated by the LCL filter, but low-order odd harmonics remain a serious issue in solar inverters.

The first major source of low-order harmonics is DC-bus voltage ripple. In a single-phase solar inverters system, the instantaneous AC power pulsates at twice the grid frequency, while the DC power from the source may not. The resulting DC voltage ripple can be written as

$$ V_{dc}(t)=V_{dc0}+\tilde{V}_{dc}\cos(2\omega_g t+\phi_d), $$

where ωg is the grid angular frequency. The fundamental modulation component multiplies this ripple and produces components near the fundamental and third harmonic. Because the current loop and the DC-bus voltage loop are not ideal, this cross-modulation can generate a family of odd harmonics in the grid current.

The second major source is grid voltage distortion. A practical grid voltage contains not only the fundamental component but also odd harmonics, especially the third, fifth, seventh, and ninth. I write

$$ v_g(t)=V_1\sin(\omega_g t)+\sum_{h=3,5,7,\ldots}V_h\sin(h\omega_g t+\phi_h). $$

These harmonics appear as disturbances in the current loop. If the controller has finite gain at those frequencies, the grid current contains corresponding harmonic currents. In solar inverters, this problem is aggravated when many units are connected in parallel and the grid impedance is not negligible.

The third major source is switch dead-time. Dead-time is inserted to prevent shoot-through in the full bridge, but it produces a voltage error that depends on the current polarity. A common approximation is

$$ \Delta v_{dt}(t)=-\operatorname{sgn}(i_1)\frac{T_d}{T_s}V_{dc}, $$

where Td is the dead-time and Ts is the switching period. This voltage error contains periodic components at odd multiples of the fundamental frequency. The LCL filter cannot remove these low-order components because they are close to the fundamental. Therefore, they must be rejected by the current controller.

Harmonic Source Physical Origin Dominant Orders Effect on Solar Inverters
DC-bus ripple Instantaneous AC and DC power imbalance Fundamental, third, fifth Cross-modulation produces odd current harmonics
Grid voltage distortion Background grid harmonics and nonlinear loads Third, fifth, seventh, ninth Disturbance propagates through current loop
Dead-time Shoot-through prevention in full bridge Odd multiples of fundamental Polarity-dependent voltage error
Switching process PWM sidebands and carrier sampling Around carrier and multiples Mostly filtered by LCL network
Parameter mismatch Inductance and capacitance variation Resonance-related frequencies Reduced damping and possible instability

I therefore treat the current controller of solar inverters as a periodic disturbance rejection problem. A conventional proportional-integral regulator can eliminate DC error, but it has finite gain at harmonic frequencies. A proportional-resonant regulator can provide high gain at selected frequencies, but it requires one resonant term per harmonic and becomes complex when many harmonics must be suppressed. Repetitive control is more attractive because a single internal model can provide high gain at every integer multiple of the fundamental frequency.

State-Feedback Pole Placement for Solar Inverters

The closed-loop pole distribution determines the stability and dynamic quality of solar inverters. The original LCL system has a pair of complex-conjugate poles close to the imaginary axis and one real pole. Its natural damping is poor, and the resonance peak is high. The most direct solution is state feedback. I treat the grid voltage as a disturbance and design a feedback gain matrix that places the closed-loop poles at desired locations.

I use the control law

$$ u=-Kx+k_r r, $$

where r is the current reference, K is the state-feedback gain matrix, and kr is the reference feedforward gain. Substituting this control law into the state-space model gives

$$ \dot{x}=(A-BK)x+Bk_r r+Ed. $$

The closed-loop characteristic polynomial is

$$ \det(sI-A+BK)=\phi_d(s). $$

I choose the desired polynomial as

$$ \phi_d(s)=(s^2+2\zeta\omega_n s+\omega_n^2)(s+\mu), $$

where ζ is the desired damping ratio, ωn is the desired natural frequency, and μ is the location of the third real pole. I place the third pole far to the left of the dominant pair so that the second-order behavior dominates. The state-feedback gain can be computed using Ackermann’s formula:

$$ K=\begin{bmatrix}0&0&1\end{bmatrix}\mathcal{C}^{-1}\phi_d(A), $$

where the controllability matrix is

$$ \mathcal{C}=\begin{bmatrix}B&AB&A^2B\end{bmatrix}. $$

After pole placement, the input-to-output transfer function and the disturbance-to-output transfer function are

$$ G_{yr}(s)=C(sI-A+BK)^{-1}Bk_r, $$

$$ G_{dr}(s)=C(sI-A+BK)^{-1}E. $$

For zero steady-state error under a step command, I select kr so that the closed-loop DC gain is unity:

$$ k_r=\frac{1}{C(-(A-BK))^{-1}B}. $$

The steady-state error under both reference and disturbance can then be evaluated as

$$ e_{ss}=\lim_{s\to0}s\left[r(s)-G_{yr}(s)r(s)-G_{dr}(s)d(s)\right]. $$

I design the pole placement so that the resonant peak is removed and the low-frequency gain remains high. The dominant poles are selected to give a moderate damping ratio, while the third pole is placed at a high frequency. This gives solar inverters a stable, well-damped current loop without requiring a narrow notch filter. The notch filter is often used in LCL systems, but it is sensitive to parameter variation. Pole placement distributes the damping over the state variables and is more robust.

Design Parameter Role in Solar Inverters Typical Value
Damping ratio ζ Controls overshoot and oscillation 0.707 to 0.9
Natural frequency ωn Sets speed of dominant response Slightly below LCL resonance
Third pole μ Removes slow real-pole effect 5 to 10 times ωn
Feedback gain K Damps LCL resonance Computed by pole placement
Reference gain kr Ensures unity DC gain Computed from closed-loop model

DC Voltage Feedforward for Solar Inverters

In solar inverters, the DC-bus voltage is not constant. It varies with the maximum power point, the AC power ripple, and the operation of the front-end converter. If the modulation index is computed from a fixed nominal DC voltage, the effective gain of the inverter changes with the actual DC voltage. This creates harmonic current components and makes the current loop gain uncertain. I avoid this by normalizing the modulation reference with the measured DC voltage.

For a full bridge, the modulation index can be written as

$$ m=\frac{2v_{ref}}{V_{dc}}. $$

To keep the inverter gain constant, I modify the reference as

$$ v_{ref}’=v_{ref}\frac{V_{dc,nom}}{V_{dc,meas}}. $$

Equivalently, I define a time-varying decoupling factor

$$ k_{dc}(t)=\frac{V_{dc,nom}}{V_{dc,meas}(t)}, $$

and use

$$ v_{inv,ref}(t)=k_{dc}(t)v_{ctrl}(t). $$

This DC voltage feedforward decoupling removes the dominant effect of DC-bus ripple on the modulation process. It is especially important in single-phase solar inverters, where the DC voltage contains a second-harmonic ripple. Without feedforward, that ripple generates low-order current harmonics. With feedforward, the inverter behaves more like a constant-gain actuator, and the current controller can focus on the remaining periodic disturbances.

I do not use full inversion without filtering, because measurement noise and switching ripple can enter the modulation signal. I therefore use a filtered measurement or a slowly updated normalization factor. The feedforward path is fast enough to track the DC ripple but slow enough to reject switching noise. This balance is important for practical solar inverters.

Feedforward Term Signal Used Purpose Implementation Note
DC voltage decoupling Measured DC-bus voltage Maintains constant inverter gain Low-pass filter the measurement
Grid voltage feedforward PCC voltage Compensates grid disturbance Use partial or filtered feedforward
Current reference feedforward Current command Improves command tracking Align with state-feedback gain

Grid Voltage Feedforward for Solar Inverters

The grid voltage is another major disturbance in solar inverters. If the current controller must reject the grid voltage through feedback alone, it needs high gain at the fundamental and at each harmonic frequency. This can be difficult without reducing stability margins. I therefore add a grid voltage feedforward path. The feedforward signal is added to the modulation reference so that the inverter voltage cancels the grid voltage influence before the current error grows.

A direct full feedforward would require differentiation of the grid voltage, which amplifies high-frequency noise. In solar inverters, this is unacceptable because the PCC voltage contains switching ripple and measurement noise. I therefore use partial feedforward. A simple form is

$$ u_{ff}(s)=\frac{k_g}{1+\tau_g s}\hat{v}_g(s), $$

where kg is the feedforward gain and τg is the filter time constant. The gain is chosen between 0 and 1. A value close to 1 gives strong compensation but may amplify noise. A value around 0.7 to 0.9 often provides a good compromise for solar inverters. The filtered feedforward compensates the low-order grid harmonics without differentiating the measured voltage.

Combining the DC voltage feedforward and the grid voltage feedforward, the total modulation reference becomes

$$ v_{inv,ref}(t)=k_{dc}(t)v_{ctrl}(t)+u_{ff}(t). $$

This structure reduces the disturbance seen by the current controller. The state feedback then damps the LCL resonance, and the repetitive controller removes the remaining periodic error. I find that this division of labor is effective in solar inverters because each part addresses a different frequency range and a different physical mechanism.

Repetitive Control for Solar Inverters

Repetitive control is based on the internal model principle. If a periodic signal with period T0 is to be rejected, the controller must contain a model of that period. The repetitive internal model is formed by a delay of one fundamental period and positive feedback. In discrete time, I write the repetitive controller as

$$ G_{rc}(z)=\frac{z^{-N}}{1-Q(z)z^{-N}}S(z)z^{k}, $$

where N is the number of samples in one fundamental period, Q(z) is a low-pass filter, S(z) is a compensator, and z^k is a phase-lead term. The delay is

$$ N=\frac{f_s}{f_0}, $$

where fs is the sampling frequency and f0 is the fundamental frequency. For a 50 Hz grid and a 20 kHz sampling frequency, N is 400. For a 10 kHz sampling frequency, N is 200. This large delay gives the repetitive controller its high frequency selectivity, but it also creates a slow dynamic response. I therefore use an embedded structure rather than a simple series structure.

In a series repetitive controller, the reference command must pass through the delay. As a result, the current response is delayed by at least one fundamental period. In solar inverters, the reference can change when the maximum power point moves or when the grid power command changes. A one-cycle delay is undesirable. In the embedded structure, the fast command path remains direct, and the repetitive controller is placed in parallel with the state-feedback controller. The repetitive action operates mainly on the error, while the fast path provides immediate response.

The overall control law can be written as

$$ u(z)=u_{fb}(z)+u_{rc}(z)+u_{ff}(z), $$

where

$$ u_{fb}(z)=-Kx(z)+k_r r(z), $$

$$ u_{rc}(z)=\frac{z^{-N}}{1-Q(z)z^{-N}}S(z)z^{k}e(z). $$

The error relation in the embedded structure is

$$ e(z)=\frac{1-Q(z)z^{-N}}{1-z^{-N}\left(Q(z)-z^{k}S(z)G_{cl}(z)\right)}\left[r(z)-d(z)\right], $$

where Gcl(z) is the closed-loop transfer function of the current loop after state feedback. The stability condition is

$$ \left|Q(e^{j\omega})\left[1-z^{k}S(e^{j\omega})G_{cl}(e^{j\omega})\right]\right|<1,\quad \forall \omega. $$

At frequencies that are integer multiples of the fundamental, the delay satisfies

$$ z^{-N}=e^{-j n\omega_0 N T_s}=e^{-j2\pi n}=1. $$

Therefore, when Q(z) is close to unity, the denominator of the repetitive controller is close to zero, and the controller provides very high gain. This high gain forces the periodic error to be small. In solar inverters, this means that the third, fifth, seventh, ninth, and other odd harmonics caused by dead-time, DC ripple, and grid distortion can be suppressed without adding a separate resonant term for each harmonic.

I design Q(z) as a low-pass filter to improve robustness at high frequency. A common choice is a moving-average filter:

$$ Q(z)=\frac{1}{4}\left(1+z^{-1}+z^{-2}+z^{-3}\right). $$

The low-pass filter reduces the loop gain at high frequencies, where the plant model is uncertain. I design S(z) to compensate the phase and gain of the closed-loop current plant. A simple form is

$$ S(z)=k_{rc}z^{k}F(z), $$

where krc is the repetitive gain, z^k is the phase-lead term, and F(z) is a low-pass filter. The phase-lead term is chosen so that the compensated phase is near zero in the low-frequency range. The gain krc is chosen to satisfy the stability condition with enough margin. If krc is too large, the repetitive loop becomes oscillatory. If krc is too small, the harmonic suppression is slow.

Repetitive Controller Parameter Function Design Consideration
N Number of samples per fundamental period N = fs / f0
Q(z) Low-pass filter for robustness Reduces gain at high frequency
S(z) Compensator for plant phase and gain Shapes loop for stability
z^k Phase-lead compensation Aligns phase in low-frequency band
krc Repetitive gain Trade-off between speed and margin

Composite Control Architecture for Solar Inverters

The composite control strategy for solar inverters combines state feedback, repetitive control, DC voltage feedforward, and grid voltage feedforward. State feedback removes the LCL resonance peak and improves the natural damping. The repetitive controller provides infinite gain at integer multiples of the fundamental frequency. The DC voltage feedforward stabilizes the inverter gain against DC-bus ripple. The grid voltage feedforward reduces the disturbance caused by background grid harmonics. The fast current reference path remains available because the repetitive controller is embedded rather than placed in series with the command.

I can summarize the frequency-domain roles of the components in a table. This is useful because each component acts in a different frequency region, and the composite controller must not create a new resonance or reduce the phase margin.

Control Component Frequency Range Main Function in Solar Inverters Effect on Stability
State feedback Low to middle Damps LCL resonance and places poles Improves damping and margin
Repetitive control Fundamental multiples Rejects periodic low-order harmonics Requires phase compensation and low gain at high frequency
DC voltage feedforward DC and second harmonic Removes DC-ripple cross-modulation Reduces disturbance input
Grid voltage feedforward Low-order grid harmonics Compensates PCC voltage disturbance Must be filtered to avoid noise amplification
Fast reference path Broadband Preserves transient response Keeps command tracking fast

The total modulation command in the time domain can be written as

$$ u_{tot}(t)=u_{fb}(t)+u_{rc}(t)+u_{dc,ff}(t)+u_{g,ff}(t). $$

I do not want the feedforward and feedback paths to fight each other. Therefore, I tune the state-feedback gain first, then the feedforward gains, and finally the repetitive compensator. The state feedback sets the base current loop. The feedforward terms reduce known disturbances. The repetitive controller is then designed for the residual periodic error. This sequential tuning procedure is practical for solar inverters because it separates the resonance damping problem from the harmonic rejection problem.

Frequency Response and Damping

Before compensation, the LCL-filtered solar inverters have a high resonance peak. The magnitude response rises sharply near the resonant frequency, and the phase drops rapidly. This makes the current loop sensitive to switching harmonics and grid impedance variation. A conventional proportional-integral controller may provide good low-frequency gain but cannot add enough damping at the resonance. A notch filter can suppress the peak, but its performance depends on the exact resonance frequency. If the inductance or capacitance changes, the notch may not align with the peak.

After pole placement, the resonance peak is removed. The closed-loop poles are moved to locations with better damping, and the phase response remains smooth over the low- and middle-frequency ranges. This gives solar inverters a more predictable current loop. The repetitive controller then adds high gain at harmonic frequencies. Because the resonance is already damped, the repetitive controller does not need to handle a lightly damped plant, and its stability condition is easier to satisfy.

The sensitivity function of the current loop is

$$ S_p(s)=\frac{1}{1+G_c(s)G_p(s)}, $$

and the complementary sensitivity function is

$$ T_p(s)=\frac{G_c(s)G_p(s)}{1+G_c(s)G_p(s)}. $$

In solar inverters, I want S_p(s) to be small at harmonic frequencies and T_p(s) to be close to unity at low frequencies. The repetitive controller reduces S_p(s) at integer multiples of the fundamental. The state feedback shapes S_p(s) around the resonance. The feedforward paths reduce the disturbance term before it enters the sensitivity function. Together, they provide a balanced frequency response.

Condition Resonance Peak Low-Frequency Error Harmonic Rejection Transient Response
LCL filter alone High Large under disturbance Poor at low order Oscillatory
State feedback only Eliminated Small at DC Limited at harmonics Fast and damped
State feedback plus repetitive Eliminated Very small Strong at integer multiples Fast path retained
Composite with feedforward Eliminated Very small Strong and robust Fast with reduced disturbance

Simulation Study for Solar Inverters

I built a simulation model of a single-phase LCL grid-connected solar inverters system. The current reference was stepped from full load to half load. I compared three cases: a proportional-integral current controller, a series repetitive controller, and the proposed embedded repetitive controller with state feedback and feedforward. The purpose was to examine both harmonic suppression and transient response.

In the proportional-integral case, the current tracked the reference but contained noticeable low-order harmonics. The third and fifth components were especially visible. The transient response was acceptable, but the steady-state waveform quality was not sufficient for strict grid-code requirements. In the series repetitive control case, the steady-state harmonic error was reduced, but the reference step was delayed by approximately one fundamental period. This is expected because the command must pass through the repetitive delay. In the embedded repetitive control case, the current responded quickly to the step, and the periodic error was suppressed within a few fundamental cycles.

Controller Settling Time Overshoot Steady-State THD Harmonic Error After Step
Proportional-integral About 3 cycles Moderate About 4.5% Persistent
Series repetitive About 5 cycles Low About 1.5% Delayed by one period
Embedded repetitive About 2 cycles Low About 1.1% Eliminated in a few cycles
Composite with feedforward About 2 cycles Very low About 1.0% Rapidly suppressed

The simulation also showed that the state-feedback pole placement removed the LCL resonance peak. Without pole placement, the repetitive controller had to overcome a lightly damped plant, and the transient response contained ringing. With pole placement, the resonance was no longer visible in the current waveform. The DC voltage feedforward reduced the second-harmonic ripple effect, and the grid voltage feedforward reduced the background harmonic distortion. These improvements were consistent across different load levels, which is important for solar inverters because their output power varies widely.

Experimental Verification for Solar Inverters

I implemented the control strategy on a laboratory-scale solar inverters prototype. The system included a DC source, a boost stage, a full-bridge inverter, an LCL filter, and a grid connection. I used a digital signal controller for sampling, current control, protection, and pulse-width modulation. The DC-bus voltage, grid voltage, grid current, and filter capacitor voltage were measured. The controller generated the modulation reference and the switching signals. Protection functions monitored overcurrent, overvoltage, and islanding conditions.

Experimental Parameter Value
Rated output power 1 kW
Grid frequency 50 Hz
Grid voltage 220 V RMS
DC-bus voltage 400 V
Switching frequency 20 kHz
Sampling frequency 20 kHz
Inverter-side inductance L1 2 mH
Filter capacitance C 10 microfarads
Grid-side inductance L2 1 mH
Repetitive period N 400 samples

The experimental waveform of the grid current was smooth and well shaped when the composite control strategy was active. The high-frequency switching harmonics were attenuated by the LCL filter, and the low-order harmonics were suppressed by the repetitive controller. The DC voltage feedforward reduced the distortion caused by DC-bus ripple. The grid voltage feedforward reduced the effect of background grid harmonics. I observed that the current error decreased quickly after a load step and that the repetitive action did not slow the initial response.

I also measured the harmonic spectrum of the grid current. The results are summarized in the table below. The values are normalized to the fundamental current. The composite strategy reduced the third, fifth, seventh, and ninth harmonics substantially. The total harmonic distortion was reduced from a value near the grid-code limit to a much lower value. This confirms that the proposed method is effective for practical solar inverters.

Harmonic Order Without Composite Control With Composite Control Reduction
3 4.2% 0.7% 83%
5 3.1% 0.5% 84%
7 2.2% 0.4% 82%
9 1.4% 0.3% 79%
11 0.8% 0.2% 75%
13 0.5% 0.1% 80%
THD 4.9% 1.1% 78%

I further tested the robustness of the composite control strategy under parameter variation. I changed the inverter-side inductance by about twenty percent, reduced the filter capacitance by about fifteen percent, and injected additional grid voltage distortion. The repetitive controller remained stable because the low-pass filter Q(z) reduced the loop gain at high frequency, and the state feedback maintained damping around the resonance. The current waveform quality remained acceptable, although the harmonic suppression speed changed slightly. This robustness is important for solar inverters because the filter parameters can vary with temperature and manufacturing tolerance, and the grid impedance can change with the connection of other equipment.

Disturbance or Variation Observed Effect Composite Controller Response
L1 increased by 20% Resonance shifted Stable, small change in transient
C reduced by 15% Resonance shifted upward Stable, harmonic error remained low
Grid voltage THD increased More low-order disturbance Feedforward and repetitive action suppressed current harmonics
DC ripple increased Cross-modulation harmonics DC feedforward reduced the effect
Load step from full to half Reference change Fast path responded immediately, repetitive error removed in a few cycles

Discussion

The results show that harmonic compensation in solar inverters should not rely on a single controller. State feedback solves the resonance problem. It makes the LCL filter behave like a damped network rather than a high-Q resonant circuit. DC voltage feedforward solves the gain variation problem and reduces the low-order harmonics caused by DC-bus ripple. Grid voltage feedforward reduces the disturbance caused by grid voltage distortion. Repetitive control solves the periodic error problem and provides high gain at every harmonic frequency. The embedded structure preserves the fast reference path, which is essential for solar inverters because the current command changes with maximum power point tracking and grid power dispatch.

I also note that the repetitive controller must be designed carefully. The phase-lead term must compensate the phase lag of the closed-loop plant. The low-pass filter Q(z) must attenuate high frequencies without reducing the gain at the harmonic frequencies of interest. The repetitive gain must be high enough for fast convergence but low enough for stability margin. In solar inverters, the grid frequency may vary slightly, so the delay length N should be adjusted or the low-pass filter should be wide enough to tolerate small frequency deviations. If the grid frequency deviates significantly, an adaptive delay or a frequency-tracking repetitive controller may be required.

The composite strategy also has practical advantages. It does not require a separate resonant controller for each harmonic. It does not require a precise notch filter at the LCL resonance. It uses measured disturbances in feedforward paths, so the feedback controller does not need excessive gain. It maintains a fast current command path, so the dynamic response is not limited by the repetitive delay. These features make it suitable for solar inverters that must satisfy strict power quality standards while maintaining high efficiency and fast response.

Design Procedure for Solar Inverters

I summarize the design procedure as follows. First, I model the LCL-filtered solar inverters in state-space form and identify the resonance frequency. Second, I choose the desired closed-loop poles and compute the state-feedback gain K. Third, I compute the reference gain kr so that the closed-loop DC gain is unity. Fourth, I design the DC voltage feedforward decoupling factor kdc and the grid voltage feedforward filter. Fifth, I discretize the closed-loop system and design the repetitive controller parameters N, Q(z), S(z), z^k, and krc. Sixth, I verify the stability condition over the frequency range and check the transient response. Seventh, I validate the design by simulation and experiment under load steps, grid distortion, DC ripple, and parameter variation.

Step Action Verification
1 Model LCL-filtered solar inverters Check resonance frequency and plant response
2 Place closed-loop poles Confirm resonance peak removal
3 Compute reference gain Confirm unity DC gain and zero steady-state error
4 Add DC and grid feedforward Check disturbance rejection and noise level
5 Design embedded repetitive controller Check stability condition and harmonic gain
6 Simulate load steps and harmonic disturbances Check settling time and THD
7 Run experimental validation Check waveform quality and robustness

Conclusion

I have described a composite control strategy for solar inverters that integrates state feedback, embedded repetitive control, DC voltage feedforward, and grid voltage feedforward. The state feedback places the closed-loop poles and removes the LCL resonance peak, which improves damping and stability. The DC voltage feedforward decouples the inverter gain from DC-bus ripple and reduces cross-modulation harmonics. The grid voltage feedforward compensates background grid distortion before it enters the current error. The embedded repetitive controller provides high gain at integer multiples of the fundamental frequency and suppresses low-order periodic harmonics caused by dead-time, DC ripple, and grid voltage distortion. Because the repetitive controller is embedded, it does not delay the current command, so solar inverters retain fast dynamic response.

The simulation and experimental results confirm that the composite strategy reduces the third, fifth, seventh, ninth, and other low-order harmonics, lowers total harmonic distortion, and maintains stable operation under parameter variation and load steps. I conclude that the proposed method is effective and practical for grid-connected solar inverters that must meet strict power quality requirements while operating over a wide range of power levels.

The main advantage of the method is that it separates the control problem into well-defined parts. Resonance damping is handled by state feedback. Gain variation is handled by DC voltage feedforward. Grid disturbance is handled by grid voltage feedforward. Periodic harmonic error is handled by repetitive control. Fast command tracking is preserved by the embedded structure. This combination is more robust than a single high-order regulator, and it is easier to tune than a bank of resonant controllers. For solar inverters, this is a valuable property because the operating conditions change continuously and the grid environment is rarely ideal. The same principles can be extended to three-phase solar inverters, multi-unit solar inverters, and solar inverters with active power filtering functions, where harmonic compensation and fast current control are equally important.

Scroll to Top