Control Method Research for Two-Stage Photovoltaic On-Grid Inverter

The depletion of fossil fuel resources has catalyzed a global shift towards harnessing renewable energy sources such as solar and wind power. Among these, photovoltaic (PV) generation stands out due to the abundance of solar energy and its inherent advantages of operational safety, reliability, and minimal environmental impact. Consequently, grid-connected PV systems have evolved into one of the most scalable and commercially viable power generation methods. My research focuses on the efficient integration of PV power into the utility grid, specifically addressing the control challenges of the crucial power conversion interface. This article details the design and analysis of a control method for a two-stage photovoltaic on grid inverter system, which effectively balances Maximum Power Point Tracking (MPPT) performance, dynamic response, and overall system stability.

A grid-connected PV system must solve two primary problems: efficiently extracting the maximum available power from the PV array under varying environmental conditions and converting this DC power into high-quality AC power synchronized with the grid. Based on their power conversion stages, these systems are typically categorized as single-stage or two-stage. The single-stage topology directly connects the PV array to a grid-tied inverter. While simpler in hardware, its control is complex as the single on grid inverter must simultaneously perform MPPT, DC-link voltage regulation, and grid synchronization. This often leads to wide input voltage fluctuations, complicating design and potentially impacting stability.

In contrast, the two-stage architecture, which is the focus of this work, decouples these functions. The system structure, as illustrated below, comprises a PV array, a DC-DC boost converter, a DC-link capacitor, a three-phase voltage-source inverter (VSI), an output LCL filter, and a central controller. This configuration separates the tasks: the front-end DC-DC stage is dedicated to MPPT, while the rear-end on grid inverter manages DC-link voltage stability and performs the grid-tied inversion. This functional separation simplifies control design, enhances operational flexibility, and improves reliability, making it the dominant architecture in contemporary applications.

System Topology and Operational Principle

The core of the two-stage system is the cascaded power converters. The PV array’s output is connected to a Boost converter. The controller for this stage implements an MPPT algorithm, adjusting the converter’s duty cycle to force the PV array to operate at its maximum power point (MPP). The Boost converter elevates the variable PV voltage to a stable, higher DC-link voltage ($V_{dc}$) across a large capacitor. This stable DC bus then feeds the three-phase on grid inverter. The inverter’s control system has a dual-loop structure: an outer voltage loop regulates $V_{dc}$ to a fixed reference, and an inner current loop controls the AC current injected into the grid. The inverter output is filtered through an LCL network to attenuate switching harmonics before being connected to the utility grid. This topology effectively isolates the MPPT dynamics from the grid-side control, leading to superior performance.

Front-Stage Control: Maximum Power Point Tracking

The nonlinear current-voltage (I-V) and power-voltage (P-V) characteristics of a PV cell are fundamental to MPPT. The single-diode model accurately represents this behavior. The output current $I_{pv}$ is given by:

$$I_{pv} = I_{ph} – I_s \left[ \exp\left(\frac{q(V_{pv} + R_s I_{pv})}{nkT}\right) – 1 \right] – \frac{V_{pv} + R_s I_{pv}}{R_{sh}}$$

where $I_{ph}$ is the photocurrent, $I_s$ is the diode saturation current, $R_s$ and $R_{sh}$ are series and shunt resistances, $n$ is the ideality factor, $q$ is the electron charge, $k$ is Boltzmann’s constant, and $T$ is the cell temperature in Kelvin. The P-V curve exhibits a unique peak—the Maximum Power Point (MPP)—whose location shifts with irradiance ($G$) and temperature.

Several algorithms exist for tracking this MPP. A comparative summary is provided in the table below:

MPPT Method Principle Advantages Disadvantages
Constant Voltage (CV) Maintains PV voltage at a fixed fraction of open-circuit voltage. Simple, low cost, robust. Poor tracking under changing conditions, not true MPPT.
Perturb & Observe (P&O) Perturbs operating voltage and observes power change to decide next perturbation direction. Simple concept, easy implementation. Oscillates around MPP at steady-state, can track incorrectly under rapid irradiation changes.
Incremental Conductance (InC) Uses the derivative of power ($dP/dV$) to locate the MPP where $dP/dV = 0$. High accuracy, good stability under varying atmospheric conditions. Computationally more intensive than P&O.

The Incremental Conductance (InC) method is chosen for its precision and stability. It is based on the slope of the P-V curve. At the MPP:

$$\frac{dP_{pv}}{dV_{pv}} = 0$$

Since $P_{pv} = V_{pv} I_{pv}$, we have:

$$\frac{dP_{pv}}{dV_{pv}} = I_{pv} + V_{pv}\frac{dI_{pv}}{dV_{pv}} = 0$$

Rearranging gives the condition for the MPP:

$$\frac{dI_{pv}}{dV_{pv}} = -\frac{I_{pv}}{V_{pv}}$$

The InC algorithm uses this condition to decide the direction of voltage adjustment. The decision logic is:

  • If $dI/dV > -I/V$, the operating point is left of the MPP; increase $V_{pv}$.
  • If $dI/dV < -I/V$, the operating point is right of the MPP; decrease $V_{pv}$.

A fixed-step InC implementation faces a trade-off: a large step size causes steady-state oscillation and power loss, while a small step size results in slow tracking. To overcome this, a variable-step approach is integrated. The step size $\Delta V_{ref}$ is adjusted based on the distance from the MPP, approximated by $|dP/dV|$:

$$
\Delta V_{ref} =
\begin{cases}
N_1 \cdot \Delta U_{base}, & \text{if } |dP/dV| \geq A\\
N_2 \cdot \Delta U_{base}, & \text{if } |dP/dV| < A
\end{cases}
$$

where $A$ is a threshold, and $N_1 > N_2$. This ensures fast convergence when far from the MPP and fine, stable operation near it. This MPPT algorithm is embedded within a cascaded voltage-current control loop for the Boost converter. The outer loop is the PV voltage regulator, whose reference comes from the InC algorithm. Its output sets the reference for the inner inductor current loop. Both loops use PI controllers, and the final duty cycle command drives the Boost converter switch via PWM.

Rear-Stage Control: The Grid-Tied Inverter

The primary objective of the three-phase on grid inverter is to maintain a stable DC-link voltage while injecting sinusoidal current into the grid at unity power factor. A synchronous reference frame (dq) control strategy with a phase-locked loop (PLL) is employed. The mathematical model of the inverter with an LCL filter in the stationary abc frame is transformed into the rotating dq frame aligned with the grid voltage vector. Typically, the d-axis is aligned with the grid voltage vector, making $V_{gd} = V_g$ (grid voltage magnitude) and $V_{gq} = 0$. In this frame, the active power $P$ and reactive power $Q$ injected into the grid are given by:

$$P = \frac{3}{2} (V_{gd} I_{gd} + V_{gq} I_{gq}) = \frac{3}{2} V_{gd} I_{gd}$$

$$Q = \frac{3}{2} (V_{gq} I_{gd} – V_{gd} I_{gq}) = -\frac{3}{2} V_{gd} I_{gq}$$

This shows a decoupled control: active power (and hence the DC-link power balance) is controlled via the d-axis current $I_{gd}$, while reactive power is controlled via the q-axis current $I_{gq}$. For unity power factor operation, $I_{gq}^{ref}$ is set to zero.

The control structure for the on grid inverter is a dual-loop scheme. The outer voltage loop regulates the DC-link voltage $V_{dc}$. The measured $V_{dc}$ is compared with its reference $V_{dc}^{ref}$. The error is processed by a PI controller, whose output is the reference for the d-axis grid current $I_{gd}^{ref}$. This effectively dictates the active power required from the DC link to maintain its voltage. The inner current loop ensures the actual grid currents $I_{gd}$ and $I_{gq}$ track their references. PI controllers generate the required inverter output voltage commands $V_{d}^{ref}$ and $V_{q}^{ref}$ in the dq frame. To improve dynamic response, decoupling terms ($\omega L I_{gq}$ and $-\omega L I_{gd}$) and grid voltage feedforward ($V_{gd}$, $V_{gq}$) are added. Finally, these voltage references are transformed back to the abc frame and modulated using Space Vector PWM (SVPWM) to generate the gate signals for the inverter switches.

Controller Design for the Grid-Side Inverter

Proper tuning of the PI controllers is critical for the stability and performance of the on grid inverter. The design follows a sequential approach, starting with the faster inner current loop, which is then simplified when designing the slower outer voltage loop.

Current Controller Design: The plant for the current loop includes the inverter gain ($K_{PWM}$), computational delay (modeled as $1/(1.5T_s s)$ where $T_s$ is the switching period), and the filter inductor ($L$). The PI controller transfer function is $G_{PIi}(s) = K_{pi} + K_{ii}/s$. To cancel the dominant plant pole from the inductor, the zero of the PI controller is placed at $s = -R/L$, meaning $K_{ii} = K_{pi} R / L$. The open-loop transfer function simplifies to:

$$G_{i,ol}(s) = \frac{K_{pi} K_{PWM}}{(1+1.5T_s s) s L}$$

Designing this as a standard first-order system (by ignoring the fast pole at $s=-1/(1.5T_s)$ for bandwidth calculation), the bandwidth $\omega_{bw}$ relates to $K_{pi}$ as $K_{pi} = \omega_{bw} L / K_{PWM}$. For a desired bandwidth and with damping factor $\xi=0.707$, the parameters can be derived as:

$$K_{pi} = \frac{L}{3 T_s K_{PWM}}, \quad K_{ii} = \frac{K_{pi} R}{L}$$

Voltage Controller Design: The voltage loop plant includes the DC-link capacitor ($C_{dc}$) and the closed-loop current dynamics. Since the current loop is much faster, it can be approximated as a unity gain ($K_c \approx 1$) for the voltage loop design. The outer loop’s open-loop transfer function becomes:

$$G_{v,ol}(s) = \left( K_{pv} + \frac{K_{iv}}{s} \right) \cdot \frac{K_c}{s C_{dc}}$$

This is a second-order system. To ensure stability and good reference tracking, the zero of the PI controller is placed to provide adequate phase margin. A common approach is to set the zero frequency a decade below the desired voltage loop bandwidth $\omega_{bw,v}$: $K_{iv}/K_{pv} = \omega_{bw,v} / 10$. Then, $K_{pv}$ is chosen to achieve the desired crossover frequency $\omega_{c}$ where $|G_{v,ol}(j\omega_c)| = 1$:

$$K_{pv} = \omega_{c} C_{dc}, \quad K_{iv} = \frac{K_{pv} \omega_{bw,v}}{10}$$

These design principles yield controllers that ensure robust DC-link regulation and high-quality grid current injection from the on grid inverter. The system performance is summarized in the table below, highlighting the role of each control loop.

Control Loop Controlled Variable Main Function Key Impact on System
Front-Stage MPPT (InC) PV Array Voltage ($V_{pv}$) Extract maximum power from PV panels under varying $G$ and $T$. Determines overall energy harvest efficiency.
Inverter Outer Loop DC-Link Voltage ($V_{dc}$) Maintain stable DC bus; balance power flow between DC-DC and DC-AC stages. Ensures stable input for the on grid inverter and system-level stability.
Inverter Inner Loop Grid Current ($I_{gd}$, $I_{gq}$) Control magnitude and phase of injected current; achieve unity power factor. Determines power quality, grid synchronization, and THD of the on grid inverter output.

Simulation Verification and Analysis

A detailed simulation model of the complete two-stage PV system with the proposed control strategy was developed in a professional power electronics simulation environment. The parameters were set as follows: DC-link voltage reference $V_{dc}^{ref}=800V$, Boost inductance $L_{boost}=6mH$, DC-link capacitance $C_{dc}=1000\mu F$, inverter-side filter inductance $L_1=2mH$, grid-side filter inductance $L_2=0.5mH$, filter capacitance $C_f=8\mu F$, grid phase voltage (RMS)=230V/50Hz. The PV array was modeled to have a maximum power of approximately 10.4 kW at Standard Test Conditions (STC: 1000 $W/m^2$, 25°C).

Steady-State Performance: Under constant STC, the system demonstrated excellent performance. The MPPT algorithm settled the PV array power at 10,396.2 W, which is 99.96% of the theoretical maximum, validating the tracking accuracy of the improved InC method. The DC-link voltage was tightly regulated at 800 V with negligible ripple (<0.05%). The three-phase currents injected by the on grid inverter were perfectly sinusoidal and synchronized with the grid voltage. A Fast Fourier Transform (FFT) analysis revealed a Total Harmonic Distortion (THD) of less than 0.105% for each phase, far exceeding standard grid codes (e.g., IEEE 1547), proving the high power quality of the inverter output.

Dynamic Performance: To test the system’s robustness, a dynamic irradiance profile was applied. The irradiance was ramped linearly from 500 $W/m^2$ to 1000 $W/m^2$ over a 1-second interval. The results were compelling: the PV power smoothly tracked the increasing MPP from 5 kW to 10.4 kW without any significant deviation or oscillation. Crucially, the DC-link voltage maintained remarkable stability during this significant power transient, with a maximum deviation of less than 2 V (0.25%). The grid currents from the on grid inverter increased proportionally and remained sinusoidal and in-phase with the grid voltage throughout the transition. This demonstrates the effectiveness of the dual-loop control in maintaining power balance and stability during rapid changes in front-end power.

Conclusion

This work has presented a comprehensive control methodology for a two-stage photovoltaic on grid inverter system. The strategy successfully decouples the control objectives: the front-end utilizes a variable-step Incremental Conductance MPPT algorithm within a cascaded control loop to maximize energy harvest from the PV array, while the rear-end employs a synchronous reference frame-based dual-loop control for the three-phase on grid inverter to ensure DC-link voltage stability and high-quality grid current injection. The controller design principles provide a clear tuning methodology. Extensive simulation results under both steady-state and dynamic conditions confirm the system’s high performance. The MPPT efficiency exceeds 99.9%, the DC-link voltage regulation is robust, and the grid current THD is exceptionally low, meeting stringent grid interconnection standards. The proposed control scheme offers a balanced solution that enhances the efficiency, dynamic response, and operational reliability of grid-connected PV systems, providing a valuable reference for practical engineering applications in the field of renewable energy integration.

Scroll to Top