Application of Active Phase Shift Method in Islanding Detection for Solar Inverters

As a renewable and clean energy source, solar power has gained significant traction in recent decades due to its potential to alleviate energy crises, reduce environmental impact, and support sustainable economic growth. The integration of photovoltaic (PV) systems into the grid, facilitated by solar inverters, is a critical component of this transition. Solar inverters convert the direct current (DC) generated by PV panels into alternating current (AC) suitable for grid connection. However, a key challenge in grid-tied PV systems is the prevention of islanding effects, where the solar inverter continues to power local loads even after the main grid is disconnected. This can pose serious safety risks, damage equipment, and disrupt grid operations. Therefore, reliable islanding detection methods are essential for solar inverters to ensure safe and compliant operation.

Islanding occurs when a grid-tied PV system, including its solar inverter, inadvertently forms an isolated power island with local loads after the utility grid fails or is intentionally disconnected. This condition can lead to voltage and frequency instability, interfere with protective relaying, create hazards for maintenance personnel, and cause reconnection issues when the grid is restored. To mitigate these risks, international standards such as IEEE Std. 929-2000 mandate that solar inverters incorporate anti-islanding protections, typically requiring at least one passive and one active detection method. In this article, I will explore the principles of islanding detection, with a focus on the active phase shift method, and demonstrate its implementation and effectiveness through experimental validation on a 5 kW solar inverter.

The fundamental issue in islanding detection stems from the power balance at the point of common coupling (PCC). When the grid is operational, the voltage and frequency at the PCC are dictated by the utility grid. However, upon grid disconnection, the solar inverter and the local load form an isolated system. The voltage and frequency in this island depend on the power mismatch between the inverter’s output and the load’s consumption. If the active power (P) and reactive power (Q) are perfectly matched, the voltage and frequency may remain within normal ranges, creating a “non-detection zone” (NDZ) where passive methods fail. The equivalent circuit for islanding analysis is often represented as a parallel RLC load connected to the solar inverter, as shown in the following figure:

In this configuration, the solar inverter acts as a current source, injecting power into the grid or the local load. The load is characterized by its resistance R, inductance L, and capacitance C, with a resonant frequency designed around the grid frequency (e.g., 50 Hz or 60 Hz). The power relationships can be expressed as follows for grid-connected and islanded modes:

For grid-connected operation:

$$P_{pv} = P_L + \Delta P = \frac{U^2}{R}$$
$$Q_{pv} = Q_L + \Delta Q = U^2 \left( \omega C – \frac{1}{\omega L} \right)$$

where \(P_{pv}\) and \(Q_{pv}\) are the active and reactive power outputs of the solar inverter, \(P_L\) and \(Q_L\) are the load’s active and reactive power consumptions, \(U\) is the voltage at PCC, and \(\omega\) is the angular frequency. The terms \(\Delta P\) and \(\Delta Q\) represent the power flow to or from the grid.

Upon islanding, if the grid is disconnected:

$$\Delta P = P_{pv} – \frac{U^2}{R}$$
$$\Delta Q = Q_{pv} – U^2 \left( \omega C – \frac{1}{\omega L} \right)$$

When \(\Delta P = 0\) and \(\Delta Q = 0\), the voltage magnitude and frequency remain unchanged, leading to detection failures. This underscores the need for active methods that introduce deliberate perturbations to force deviations outside normal ranges.

Islanding detection methods are broadly categorized into passive and active techniques. Passive methods monitor parameters at the PCC, such as voltage magnitude, frequency, phase, or harmonic content, and trigger protection when thresholds are exceeded. For instance, over/under voltage and over/under frequency protections are common in solar inverters. However, passive methods have inherent limitations, including large NDZs, especially when power mismatches are small. Phase jump detection relies on the phase difference between current and voltage; but for resistive loads, the phase shift may be minimal, causing missed detections. Harmonic distortion detection observes increases in voltage harmonics due to higher impedance in islanded mode, but grid harmonics can mask these changes, making threshold setting difficult.

Active methods, on the other hand, intentionally inject disturbances into the solar inverter’s output current and observe the system’s response. These methods are more reliable for solar inverters, as they actively probe the grid’s presence. Common active techniques include:

  • Sandia Voltage Shift (SVS): This method applies a positive feedback loop on the voltage amplitude at PCC. The solar inverter’s current reference is modulated based on voltage deviations, amplifying any fluctuations upon islanding until protection limits are reached.
  • Active Frequency Drift (AFD): Here, the solar inverter’s output current frequency is slightly shifted relative to the grid frequency (e.g., by adding a small dead time). Under grid-tied conditions, the grid pulls the frequency back, but during islanding, the drift accumulates rapidly, triggering frequency-based protection.
  • Active Phase Shift (APS): This approach introduces a phase angle perturbation between the inverter’s output current and the PCC voltage. In islanded mode, the perturbation drives the frequency away from nominal values, enabling detection. APS is particularly attractive for solar inverters due to its simplicity and low computational overhead.

The active phase shift method, specifically the auto phase shift (APS) variant, forms the core of this discussion. In grid-following solar inverters, which typically operate in current-controlled mode, the output current is given by:

$$i_a = I_m \sin(\omega t + \phi)$$

where \(I_m\) is the current amplitude, \(\omega\) is the angular frequency, and \(\phi\) is the phase angle. APS modifies \(\phi\) by adding a perturbation angle \(\theta_{APS}\) based on frequency deviations. The general principle is to use the frequency error from the previous cycle to adjust the phase, accelerating frequency drift upon islanding. A common implementation is the sliding mode phase shift (SMS), where the phase shift is a sinusoidal function of frequency deviation:

$$\theta_{SMS} = \theta_m \sin\left( 2\pi \frac{f_g – f_{grid}}{f_m – f_{grid}} \right)$$

where \(\theta_m\) is the maximum phase shift, \(f_g\) is the grid nominal frequency, \(f_{grid}\) is the measured frequency, and \(f_m\) is a tuning parameter. However, SMS can have stable operating points within the NDZ, leading to detection failures. To overcome this, an improved APS method is proposed, which incorporates three key enhancements:

  1. An initial phase shift is applied to ensure immediate perturbation upon islanding.
  2. The phase shift magnitude is proportional to the frequency deviation, with larger deviations causing larger shifts, speeding up detection.
  3. The sign of the phase shift is alternated at fixed intervals (e.g., every 0.5 seconds) to avoid blind spots where the perturbation might stabilize the frequency.

The APS phase angle is computed as:

$$\theta_{APS} = k \cdot \Delta f + \text{sign}(\Delta f) \cdot \frac{2\pi}{360} \cdot \Delta f$$

where \(k\) is a gain factor (phase shift factor), \(\Delta f = f_{grid} – f_n\) is the frequency deviation from nominal \(f_n\), and \(\text{sign}(\Delta f)\) is ±1, toggled periodically. The output current phase angle \(\theta_{out}\) is then:

$$\theta_{out} = \theta_{grid} + \theta_{APS}$$

where \(\theta_{grid}\) is the phase angle of the PCC voltage obtained from a phase-locked loop (PLL). This approach ensures that the solar inverter continuously perturbs the system, and upon islanding, the feedback loop drives the frequency beyond set thresholds (e.g., below 48 Hz or above 50.5 Hz for a 50 Hz system).

To validate the APS algorithm, experimental tests were conducted on a 5 kW solar inverter prototype. The control platform utilized a Texas Instruments TMS320F28335 digital signal processor (DSP) running at 150 MHz, with a switching frequency of 20 kHz for the MOSFET-based inverter bridge. The software executed key tasks—sampling, PLL, frequency measurement, and current control—within a 50 µs interrupt cycle, typical for high-performance solar inverters. The test setup consisted of a DC source emulating PV panels, the solar inverter under test (EUT), a grid simulator, and a programmable RLC load bank to simulate local loads. The RLC load was tuned to resonate at the grid frequency (50 Hz) with a quality factor Qf ≈ 1.0, representing a worst-case scenario for detection. The following table summarizes the test procedure and conditions:

Step Description
1 Connect EUT to grid via switch K1; set DC input to achieve rated 5 kW AC output; measure output power and reactive power.
2 De-energize EUT and open K1 to isolate from grid.
3 Adjust RLC load to match resonant frequency and power: set inductive reactive power \(Q_L = Q_f \cdot P_{EUT}\), capacitive reactive power to balance inverter output, and resistive load to match active power.
4 Close load switch K2 and grid switch K1; verify power flow; adjust load until grid current is below 1% of rated.
5 Open K1 to simulate grid failure; record time from disconnection to EUT shutdown (output current < 1% of rated).
6 Repeat for various load mismatch conditions to assess NDZ performance.

The load mismatch conditions were defined by percentage deviations in active power (\(\Delta P\%\)) and reactive power (\(\Delta Q\%\)) relative to the solar inverter’s output. Positive values indicate power flow from the inverter to the grid. The anti-islanding protection thresholds were set at 48 Hz (under-frequency) and 50.5 Hz (over-frequency), consistent with grid codes for solar inverters. The detection times for different mismatches are tabulated below:

Load Mismatch (\(\Delta P\%\), \(\Delta Q\%\)) Tripping Time (ms)
(0, 0) 160
(-5, -5) 96
(-5, 0) 76
(-5, 5) 104
(0, -5) 70
(0, 5) 115
(5, -5) 75
(5, 0) 75
(5, 5) 104

These results demonstrate that the APS method effectively detects islanding across all test cases, with the worst-case time of 160 ms for perfect match conditions, well below the 2-second limit specified in standards for solar inverters. The rapid detection is attributed to the proportional feedback and sign alternation, which prevent stabilization and force frequency drift. Additionally, the impact of APS on power quality was evaluated by measuring the output current harmonics and power factor at different power levels. The following table shows the power factor for various input powers:

Input Power (W) Power Factor
1000 0.9642
2000 0.9914
3000 0.9960
4000 0.9972
5000 0.9979

At rated power, the harmonic spectrum of the output current was analyzed, with total harmonic distortion (THD) below 5%, complying with IEEE 929-2000 requirements for solar inverters. The key harmonics (e.g., 3rd, 5th, 7th) were within limits, indicating that the APS perturbations do not degrade power quality significantly. This is crucial for grid-tied solar inverters, as they must maintain low harmonic injection to avoid affecting other equipment.

The effectiveness of the APS method can be further analyzed through mathematical modeling. Consider the dynamics of the islanded system with an RLC load. The frequency evolution can be described by the phase-locked loop (PLL) dynamics and the load impedance. The PLL in the solar inverter tracks the PCC voltage phase \(\theta_{grid}\), with an error influenced by \(\theta_{APS}\). The frequency deviation \(\Delta f\) evolves as:

$$\frac{d(\Delta f)}{dt} = -K_p \cdot \theta_{APS} + \text{load dynamics}$$

where \(K_p\) is the PLL gain. Substituting \(\theta_{APS}\) from earlier:

$$\frac{d(\Delta f)}{dt} = -K_p \left( k \cdot \Delta f + \text{sign}(\Delta f) \cdot \frac{2\pi}{360} \cdot \Delta f \right) + \frac{\Delta Q}{2\pi J U^2}$$

Here, \(J\) represents the inertia of the system, and \(\Delta Q\) is the reactive power mismatch. This differential equation shows that the APS term introduces a stabilizing or destabilizing effect based on the sign. When \(\Delta f\) is positive, the phase shift adds a negative feedback, and vice versa. The periodic sign alternation ensures that any equilibrium points are unstable, driving \(\Delta f\) toward the protection thresholds. This theoretical foundation supports the experimental observations of fast detection times.

Moreover, the implementation of APS in solar inverters must consider practical aspects such as grid disturbances and synchronization. In real-world grids, voltage sags, swells, and frequency variations can occur. The APS algorithm should be designed to remain robust under such conditions, avoiding false tripping while maintaining sensitivity. One approach is to adapt the gain \(k\) based on grid conditions; for instance, reducing \(k\) during normal operation to minimize perturbation and increasing it upon suspected islanding. Additionally, the PLL design is critical—a fast and accurate PLL ensures precise phase tracking, which enhances the reliability of APS for solar inverters. Common PLL techniques include synchronous reference frame PLL (SRF-PLL) and enhanced variants for distorted grids.

In comparison to other active methods, APS offers several advantages for solar inverters. Unlike SVS, which can cause voltage distortions, APS primarily affects phase and frequency, parameters that are more tightly regulated in grids. Compared to AFD, APS does not require introducing dead bands or frequency ramps, simplifying control logic. However, APS may have a slightly larger impact on power factor under light loads, as seen in the table above, but this is acceptable within standards. The choice of parameters \(k\) and the alternation interval involves a trade-off between detection speed and power quality. For the tested solar inverter, \(k = 0.1\) degrees/Hz and a 0.5-second alternation period provided optimal performance.

Future advancements in islanding detection for solar inverters may involve hybrid methods combining APS with passive techniques or machine learning algorithms. For example, a neural network could analyze multiple parameters (voltage, frequency, harmonics) to reduce NDZ further. Additionally, as solar inverters evolve toward smart grid applications, features like communication-based detection (e.g., using power line carrier signals) could complement APS. Nonetheless, APS remains a cost-effective and reliable solution for current-generation solar inverters.

In conclusion, the active phase shift method proves to be a robust and efficient technique for islanding detection in solar inverters. Its simple implementation, low computational demand, and fast response make it suitable for integration into digital control platforms. The experimental results on a 5 kW solar inverter confirm that APS meets regulatory requirements, with detection times under 160 ms and minimal impact on power quality. By incorporating proportional feedback and periodic sign alternation, the improved APS method eliminates blind spots and ensures reliable operation across various load conditions. As the deployment of solar inverters continues to grow, such advancements in protection schemes will be vital for safe and stable grid integration. Further research could explore adaptive APS tuning for different grid topologies and the integration with emerging grid-support functions in solar inverters.

Scroll to Top