In the realm of renewable energy systems, solar inverters play a pivotal role in converting direct current (DC) from photovoltaic panels into alternating current (AC) for grid integration. Among various topologies, the three-level neutral-point-clamped (NPC) solar inverter has gained prominence due to its superior performance in medium- and high-voltage applications. However, a critical issue plaguing these solar inverters is the voltage imbalance between the upper and lower DC-link capacitors, which can compromise system stability and limit switching operations. In this paper, I delve into a novel compensation method that injects a common bias voltage, incorporating second harmonic components and capacitor voltage difference signals, to mitigate this imbalance. Through comprehensive analysis, simulation, and experimental validation, I demonstrate the efficacy of this approach in enhancing the reliability of solar inverters.
The proliferation of solar energy has necessitated advancements in power electronic converters, with solar inverters being at the forefront. NPC solar inverters, in particular, offer advantages such as reduced harmonic distortion, lower voltage stress, and diminished electromagnetic interference. Despite these benefits, the inherent voltage imbalance in the DC-link capacitors poses a significant challenge. This imbalance arises from hardware discrepancies or switching dynamics, leading to potential system failures. Therefore, developing effective compensation strategies is crucial for optimizing the performance of solar inverters. In my research, I focus on a control-based solution that avoids additional hardware, thereby reducing costs and complexity in solar inverter systems.
To understand the compensation method, it is essential to first analyze the operational principles of NPC solar inverters. A single-phase NPC solar inverter comprises two switching legs, each with four power devices and two clamping diodes, as illustrated in the topological structure. The DC-link is split into upper and lower capacitors, denoted as $C_1$ and $C_2$, with voltages $U_{C1}$ and $U_{C2}$. The output voltage relative to the neutral point can assume three levels: $U_{C1}$, $0$, or $-U_{C2}$. Under balanced conditions, $U_{C1} = U_{C2} = U_{dc}/2$, where $U_{dc}$ is the total DC-link voltage. The switching states are determined by comparing reference signals with carrier waves in a pulse-width modulation (PWM) scheme. For instance, when the reference signal $u^*_{AO}$ exceeds the upper carrier, the output voltage is $U_{C1}$; when it lies between carriers, the output is $0$; and when it is below the lower carrier, the output is $-U_{C2}$. This modulation ensures linear operation within specified bounds, but imbalances disrupt this equilibrium, necessitating corrective measures in solar inverters.
The voltage imbalance in solar inverters can be quantified by the difference $\Delta U_C = U_{C1} – U_{C2}$. If left uncompensated, this imbalance leads to uneven stress on switching devices and potential overvoltage conditions. My proposed method addresses this by injecting a common bias voltage $u^*_z$ into the PWM controller’s reference signals. This bias voltage is composed of two parts: a term proportional to the voltage difference and a second harmonic component. Mathematically, the injected bias voltage is expressed as:
$$ u^*_z = -\frac{u^*_g}{2} + K (U_{C1} – U_{C2}) \sin(2\omega t) $$
Here, $u^*_g$ represents the grid voltage reference, $\omega$ is the grid angular frequency, and $K$ is a gain factor that adjusts the injection strength. This formulation ensures that the compensation adapts dynamically to the imbalance, enhancing the robustness of solar inverters. The modified reference signals for the output poles A and B become:
$$ u^*_{AO} = u^*_g/2 + K (U_{C1} – U_{C2}) \sin(2\omega t) $$
$$ u^*_{BO} = -u^*_g/2 + K (U_{C1} – U_{C2}) \sin(2\omega t) $$
By injecting these signals, the neutral-point current $i_0$ is manipulated to balance the capacitor voltages. The average neutral-point current over a switching period $T_c$ can be derived as:
$$ \bar{i}_0 = \frac{2I_A}{T_c} \left( |t_{U_{C1}}| – |t_{U_{C2}}| \right) $$
where $I_A$ is the average output current of pole A, and $t_{U_{C1}}$ and $t_{U_{C2}}$ are the conduction times for the upper and lower voltage levels. Through careful adjustment of $K$, the compensation current can be controlled to counteract the imbalance, thereby stabilizing the DC-link in solar inverters.

In practice, the implementation of this compensation method involves a closed-loop control system. I designed a controller that integrates proportional-integral (PI) regulators for DC-link voltage control, proportional-resonant (PR) controllers for current tracking, and the proposed balance controller. The block diagram of this system highlights how the capacitor voltage difference is fed back to generate the bias voltage, which is then synthesized with the original references. This integrated approach ensures seamless operation of solar inverters under varying load conditions. The key equations governing the control loop are:
$$ U_{dc,ref} = U_{C1} + U_{C2} $$
$$ \Delta U_C = U_{C1} – U_{C2} $$
$$ u^*_{z} = f(\Delta U_C, \sin(2\omega t)) $$
where $f$ denotes the injection function. The modulation index $m$ must be constrained to maintain linearity, as per:
$$ |u^*_{AO}| \leq \frac{U_{dc}}{2} $$
This constraint ensures that the solar inverters operate within safe limits, avoiding overmodulation and distortion.
To validate the proposed method, I conducted extensive simulations using PSIM software, modeling a single-phase NPC solar inverter with parameters typical of commercial systems. The DC-link voltage was set to 1.8 kV, with capacitors of 220 μF each and a filter inductance of 21 mH. An adjustable resistive load was connected across the capacitors to induce an initial voltage imbalance of approximately 297 V. The simulation results, summarized in the table below, compare the performance of second harmonic full-wave and half-wave injection methods in solar inverters.
| Injection Type | Initial Voltage Difference (V) | Compensation Time (ms) | Final Voltage Difference (V) | Output Current THD (%) |
|---|---|---|---|---|
| Full-Wave | 297 | 50 | 20 | 4.2 |
| Half-Wave | 297 | 30 | 8 | 4.5 |
The data clearly indicates that the half-wave injection offers faster response and better compensation, albeit with a slight increase in current distortion. This trade-off is acceptable in many solar inverter applications where rapid balancing is critical. The simulation waveforms further illustrate how the capacitor voltages converge to equilibrium after compensation is activated, underscoring the effectiveness of the method in solar inverters.
Beyond simulations, I developed a prototype 8 kW NPC solar inverter to experimentally verify the compensation technique. The hardware setup included a DSP-based control board, voltage and current sensors, and a grid-connected transformer with a 1:6 ratio. Initially, the solar inverter was operated under balanced conditions, and then an external resistor was introduced to create a voltage imbalance of about 100 V. Upon enabling the compensation controller, the voltages were measured and recorded. The experimental results, as shown in the table below, reinforce the simulation findings.
| Parameter | Full-Wave Injection | Half-Wave Injection |
|---|---|---|
| Initial $U_{C1}$ (V) | 834 | 830 |
| Initial $U_{C2}$ (V) | 927 | 932 |
| Final $U_{C1}$ (V) | 872 | 876 |
| Final $U_{C2}$ (V) | 892 | 884 |
| Reduction in $\Delta U_C$ (V) | 20 | 8 |
These results demonstrate that both injection methods effectively reduce the voltage imbalance in solar inverters, with half-wave injection providing superior performance in terms of speed and residual difference. Additionally, I evaluated the overall efficiency of the solar inverter system under different loads, as efficiency is a key metric for solar inverters. The transmission efficiency $\eta$ was calculated using:
$$ \eta = \frac{P_{out}}{P_{in}} \times 100\% $$
where $P_{out}$ is the output power delivered to the grid, and $P_{in}$ is the input power from the DC source. The efficiency curves for both compensation methods are nearly identical, peaking at around 95.4% for full-wave and 95.2% for half-wave injection at full load. This high efficiency underscores the practical viability of the proposed compensation technique in solar inverters, as it minimizes energy losses while addressing imbalance issues.
The underlying mechanism of the compensation can be further elucidated through harmonic analysis. The injected second harmonic component interacts with the fundamental grid frequency to produce a compensating current that flows through the neutral point. This current redistributes charge between the capacitors, effectively equalizing their voltages. The mathematical derivation involves solving for the modulation limits to avoid distortion. For the half-wave injection, the bias voltage is active only during specific phase intervals, which explains its faster response. The condition for linear modulation can be expressed as:
$$ -\frac{U_{dc}}{2} \leq u^*_{AO} \leq \frac{U_{dc}}{2} $$
By substituting the injected reference, we obtain constraints on $K$ and $m$ to ensure stable operation of solar inverters. For instance, the maximum modulation index $m_{max}$ is given by:
$$ m_{max} = \frac{2}{U_{dc}} \sqrt{ \left( \frac{U_{dc}}{2} \right)^2 – (K \Delta U_C)^2 } $$
This equation highlights the trade-off between compensation strength and modulation range in solar inverters. In practice, I selected $K = 0.1$ based on empirical tuning, which provided optimal balance without exceeding voltage limits.
In conclusion, my research presents a robust solution for DC voltage imbalance compensation in NPC solar inverters through second harmonic injection. The method leverages a common bias voltage that incorporates both the capacitor voltage difference and a second harmonic signal, integrated into the PWM control loop. Theoretical analysis, simulations, and experimental tests collectively validate its effectiveness. The half-wave injection variant, in particular, offers rapid response and superior compensation, making it well-suited for dynamic applications in solar inverters. Future work could explore extensions to three-phase systems or integration with maximum power point tracking (MPPT) algorithms to further enhance the performance of solar inverters in renewable energy networks. Ultimately, this contribution advances the reliability and efficiency of solar inverters, supporting the global transition to sustainable energy sources.
Throughout this paper, I have emphasized the importance of addressing voltage imbalances in solar inverters, as they are critical components in photovoltaic systems. The proposed compensation method not only improves stability but also extends the lifespan of power devices by reducing stress. As solar energy continues to expand, innovations like this will play a vital role in optimizing solar inverters for grid integration. The formulas and tables provided herein serve as a foundation for engineers and researchers working on advanced control strategies for solar inverters. By continuously refining such techniques, we can ensure that solar inverters meet the growing demands of modern power systems.
