In my research on photovoltaic power generation systems, I have focused on the control of grid-connected solar inverters. The core challenge in single-phase solar inverter systems is the coupling between active and reactive power, as well as the need for precise grid synchronization. Traditional DQ transformation works well in three-phase systems, but it cannot be applied directly to single-phase systems because the transformation requires at least two independent degrees of freedom. In this article, I present an improved DQ transformation method that constructs a virtual orthogonal voltage or current through output feedback, enabling decoupled control of active and reactive power in single-phase solar inverters. I also introduce a DQ phase-locked loop based on this improved transformation, and I demonstrate the effectiveness of the proposed control scheme through simulation results.
Introduction to Solar Inverter Control
Solar inverters are the key interface between photovoltaic arrays and the utility grid. The performance of solar inverters directly affects the efficiency, power quality, and stability of the entire photovoltaic power generation system. In three-phase grid-connected solar inverters, the traditional DQ synchronous rotating coordinate transformation is widely used to convert three-phase AC signals into DC quantities. This allows decoupled control of active and reactive power using simple PI controllers. The DQ transformation also facilitates the elimination of harmonic voltages and the mitigation of unbalanced voltage effects. However, single-phase solar inverters are increasingly common in residential and small commercial applications. In a single-phase system, only one AC voltage or current exists, so the traditional DQ transformation cannot be directly implemented.
Several attempts have been made to extend DQ transformation to single-phase systems. One common approach is to delay the sampled signal by a quarter of the fundamental period to create a virtual orthogonal phase. This method works but suffers from sensitivity to grid voltage fluctuations. Another approach constructs two additional phases from the measured single-phase voltage and current by shifting the phase by ±120°, which increases computational complexity. My proposed solution is an improved DQ transformation that uses output feedback to construct the missing orthogonal component. This method not only enables decoupled control but also simplifies the phase-locked loop design for grid synchronization.
Structure of a Photovoltaic Grid-Connected System
The typical solar photovoltaic grid-connected system consists of a photovoltaic array, a DC/DC converter, a DC link capacitor, a single-phase inverter, and a filter circuit. The photovoltaic array converts sunlight into DC electricity. The DC/DC converter adjusts the DC voltage to a stable level and often performs maximum power point tracking. The inverter converts the DC power into AC power that matches the grid voltage, frequency, and phase. The filter reduces switching harmonics before the power is injected into the grid. A general structure of the photovoltaic grid-connected system is shown in the following figure.

The control system of solar inverters can be divided into two main parts: the DC/DC converter controller and the inverter controller. The DC/DC controller handles maximum power point tracking to extract the maximum available power from the photovoltaic array under varying irradiance and temperature conditions. The inverter controller manages the grid-connected operation, including active and reactive power control, DC link voltage regulation, and grid synchronization. Since the output power of photovoltaic modules is highly dependent on weather conditions, solar inverters suffer from low utilization factors and frequent power fluctuations. Therefore, an effective control strategy for solar inverters is essential to maintain grid stability and power quality.
Conventional DQ Transformation in Three-Phase Systems
To understand the improved DQ transformation, it is useful to review the conventional DQ transformation used in three-phase systems. The DQ transformation is a two-phase stationary to two-phase rotating coordinate transformation, often applied after the Clarke transformation. The Clarke transformation converts the three-phase stationary coordinates (ABC) into a two-phase stationary coordinate system (αβ). The DQ transformation then rotates the αβ axes by an angle θ to synchronize with the grid voltage vector. For a three-phase voltage system, the Clarke transformation is given by:
$$
\begin{bmatrix} u_\alpha \\ u_\beta \end{bmatrix}
=
\sqrt{\frac{2}{3}}
\begin{bmatrix}
1 & -\frac{1}{2} & -\frac{1}{2} \\
0 & \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2}
\end{bmatrix}
\begin{bmatrix} u_a \\ u_b \\ u_c \end{bmatrix}
$$
The DQ transformation is then:
$$
\begin{bmatrix} u_d \\ u_q \end{bmatrix}
=
\begin{bmatrix}
\cos\theta & \sin\theta \\
-\sin\theta & \cos\theta
\end{bmatrix}
\begin{bmatrix} u_\alpha \\ u_\beta \end{bmatrix}
$$
The inverse DQ transformation is:
$$
\begin{bmatrix} u_\alpha \\ u_\beta \end{bmatrix}
=
\begin{bmatrix}
\cos\theta & -\sin\theta \\
\sin\theta & \cos\theta
\end{bmatrix}
\begin{bmatrix} u_d \\ u_q \end{bmatrix}
$$
In these equations, \(u_a, u_b, u_c\) are the instantaneous values of the three-phase voltages, and θ is the angle between the d-axis and the α-axis. The DQ transformation is highly effective in three-phase systems because the αβ components are independent and represent two degrees of freedom. However, for a single-phase system, only one of the α or β components exists, making the standard transformation impossible.
The Improved DQ Transformation for Single-Phase Solar Inverters
To apply DQ transformation to single-phase solar inverters, I propose a method that constructs the missing β-axis component using output feedback. The principle is based on the inherent relationship between the αβ stationary coordinates and the dq rotating coordinates. In my approach, I set the α-axis component to be the actual measured voltage or current, i.e., \(u_\alpha = u_s\). The β-axis component is initially unknown. However, through the DQ transformation and its inverse, I can reconstruct \(u_\beta\) using the output signals \(u_d\) and \(u_q\) and the rotation angle θ.
Starting from the inverse DQ transformation equation, I have:
$$
u_\beta = u_d \sin\theta + u_q \cos\theta
$$
Substituting the DQ forward transformation equations into this expression yields:
$$
u_\beta = (u_\alpha\cos\theta + u_\beta\sin\theta)\sin\theta + (-u_\alpha\sin\theta + u_\beta\cos\theta)\cos\theta
$$
Expanding and simplifying:
$$
u_\beta = u_\alpha\cos\theta\sin\theta + u_\beta\sin^2\theta – u_\alpha\sin\theta\cos\theta + u_\beta\cos^2\theta
$$
$$
u_\beta = u_\beta(\sin^2\theta + \cos^2\theta) = u_\beta
$$
This algebraic identity demonstrates that the reconstructed \(u_\beta\) is consistent with itself. In practical implementation, I use the measured \(u_\alpha\) and the DQ outputs \(u_d, u_q\) to compute \(u_\beta\) as:
$$
u_\beta = u_d \sin\theta + u_q \cos\theta
$$
This computation is performed in real time, using the current values of \(u_d\) and \(u_q\) obtained from the DQ transformation. The block diagram for constructing \(u_\beta\) is shown below.

In my implementation, the measured single-phase voltage or current serves as the α-axis component. The DQ transformation is performed with the current angle θ. The resulting \(u_d\) and \(u_q\) are then used to construct the missing β-component. This method avoids the need for delaying the signal by a quarter cycle, which is often used in other single-phase DQ approaches. The output feedback construction is instantaneous and does not introduce additional phase delay, making the control faster and more accurate.
Design of the DQ Phase-Locked Loop
Grid synchronization is a critical function in grid-connected solar inverters. The inverter output voltage must match the grid voltage in amplitude, frequency, and phase. A phase-locked loop (PLL) is used to track the grid voltage phase. The improved DQ transformation enables a simple and effective PLL structure. The block diagram of the DQ PLL is shown in Figure 4 of my original work. The grid voltage \(u_\alpha\) is measured, and the orthogonal component \(u_\beta\) is constructed using the output feedback method described earlier. These two components are transformed to the dq rotating frame using the estimated angle θ. The q-axis voltage \(u_q\) is then processed by a low-pass filter to remove AC components, leaving a DC error signal. This error is compared with a zero reference, and the difference is fed into a PI controller. The output of the PI controller is the frequency deviation Δf, which is added to the nominal grid frequency to obtain the PLL output frequency \(f_{PLL}\). The phase angle θ is obtained by integrating the frequency.
Mathematically, the PLL operation can be described as:
$$
f_{PLL} = f_0 + \Delta f
$$
$$
\theta = \int 2\pi f_{PLL} dt
$$
where \(f_0\) is the nominal grid frequency (50 Hz or 60 Hz). The PI controller ensures that the q-axis voltage converges to zero, which means the d-axis aligns with the grid voltage vector. This provides a stable phase reference for the inverter control.
Compared with a basic PLL, the DQ PLL offers better filtering performance. When the grid voltage is distorted by harmonics, the DQ PLL shows significantly smaller phase oscillations, because the DQ transformation separates the fundamental component from the harmonic components. However, the capture speed is somewhat slower than a basic PLL. In my simulations, I observed that the DQ PLL can re-lock without steady-state error under frequency jumps, phase jumps, amplitude changes, and voltage offsets.
Control Strategy for Grid-Connected Solar Inverters
I adopt a three-loop control scheme for the single-phase solar inverter: power loop, voltage loop, and current loop. The power loop regulates the active and reactive power output of the inverter. The voltage loop maintains the output voltage amplitude and frequency, and generates the reference for the current loop. The current loop performs fine adjustments to shape the output current waveform and improve power quality.
The overall control diagram is given in my design. The power controller uses a droop control strategy to regulate active and reactive power. The instantaneous power outputs are calculated from the measured voltages and currents. To improve the response speed and steady-state accuracy, I include a PI controller in the power loop. The power constraints are \(0 \le P \le P_{max}\) and \(0 \le Q \le Q_{max}\). The output of the power controller serves as the reference voltage for the voltage-current dual loop controller.
Power Controller
The power controller structure is shown in Figure 6. In this structure, the active power \(P\) and reactive power \(Q\) are compared with their reference values \(P^*\) and \(Q^*\). The errors are processed by PI controllers to generate the frequency and amplitude adjustments. The droop characteristics are often represented as:
$$
f = f_0 – m_p (P – P^*)
$$
$$
V = V_0 – n_q (Q – Q^*)
$$
where \(m_p\) and \(n_q\) are the droop coefficients. However, in my implementation, I use PI controllers to eliminate steady-state errors and improve dynamic response. The power controller outputs are the reference voltage magnitude and phase angle for the dual loop controller.
Voltage and Current Dual Loop Control
The voltage-current dual loop controller is shown in Figure 7. In this structure, the inductor current is used as the outer loop, and the capacitor voltage is used as the inner loop. The inverter output voltage is compared with the reference voltage from the power controller. The voltage error is processed by a PI controller to produce the reference for the inductor current. The inductor current is then compared with its reference, and the current error is processed by another PI controller to generate the modulation signal for the inverter. This dual loop control provides excellent voltage regulation and current shaping, resulting in low harmonic distortion and fast transient response.
The state equations for the output filter can be written as:
$$
L \frac{di_L}{dt} = v_{inv} – v_c
$$
$$
C \frac{dv_c}{dt} = i_L – i_g
$$
where \(L\) is the filter inductance, \(C\) is the filter capacitance, \(v_{inv}\) is the inverter output voltage, \(v_c\) is the capacitor voltage, \(i_L\) is the inductor current, and \(i_g\) is the grid current. The control objectives are to regulate \(v_c\) to follow the reference and to shape \(i_g\) to be sinusoidal with unity power factor.
Application of the Improved DQ Transformation
The improved DQ transformation is applied to both the grid voltage and the inverter output current. For the grid voltage, the measured voltage \(u_\alpha\) and the constructed \(u_\beta\) are transformed to the dq frame. The d-axis component \(u_d\) is used for synchronization and the q-axis component \(u_q\) is driven to zero by the PLL. For the inverter output current, I define \(i_\alpha\) as the measured grid current and construct \(i_\beta\) using the same output feedback method. The dq components \(i_d\) and \(i_q\) then represent the active and reactive current components, respectively. By controlling \(i_d\) and \(i_q\) independently, I can achieve decoupled control of active and reactive power.
The relationship between power and dq current components is:
$$
P = \frac{1}{2} (u_d i_d + u_q i_q)
$$
$$
Q = \frac{1}{2} (u_q i_d – u_d i_q)
$$
If the d-axis is aligned with the grid voltage, then \(u_q = 0\), and the equations simplify to:
$$
P = \frac{1}{2} u_d i_d
$$
$$
Q = -\frac{1}{2} u_d i_q
$$
This demonstrates that active power depends solely on \(i_d\), and reactive power depends solely on \(i_q\). Therefore, decoupled control is achieved.
Simulation Setup and Parameters
I implemented the proposed control strategy in Matlab/Simulink environment. The system parameters are listed in Table 1.
| Parameter | Symbol | Value | Unit |
|---|---|---|---|
| Grid voltage (RMS) | \(u_s\) | 220 | V |
| DC link voltage | \(u_{dc}\) | 500 | V |
| DC link capacitor | \(C_{dc}\) | 3000 | μF |
| Filter inductance | \(L\) | 0.84 | mH |
| Filter capacitance | \(C\) | 15 | μF |
| Grid frequency | \(f_0\) | 50 | Hz |
| Switching frequency | \(f_s\) | 10 | kHz |
I chose these parameters to represent a typical residential single-phase photovoltaic system. The DC link voltage is regulated to 500 V by the DC/DC converter. The filter components are selected to attenuate the switching harmonics while maintaining a sufficiently high control bandwidth.
Simulation Results and Analysis
I ran the simulation for a duration of 0.2 seconds. The DQ PLL output waveform is shown in Figure 8. The phase angle θ ramps linearly from 0 to \(2\pi\) over one fundamental period, confirming that the PLL is locked to the grid frequency. I observed that when the input voltage undergoes a frequency jump or phase jump, the DQ PLL re-locks without steady-state error. The dynamic response is slightly slower than a basic PLL, but the filtering capability is much better in the presence of harmonics. The phase oscillations under distorted voltage are significantly smaller, which is beneficial for the inverter control.
Figure 9 shows the q-axis current component after the improved DQ transformation of the grid current. It is evident that the q-axis current converges to zero within half a cycle of the grid period. This indicates that the inverter output current is in phase with the grid voltage, and the reactive power is zero. The d-axis current stabilizes to a positive value, corresponding to the active power delivered to the grid. The decoupling between the d and q axes is effective, as changes in one axis do not affect the other.
Figure 10 presents the grid voltage and inverter output current waveforms. In the first half cycle, there are some harmonic components injected into the grid. After that, the inverter voltage and current are perfectly synchronized with the grid, showing a sinusoidal waveform with negligible distortion. This demonstrates the effectiveness of the improved DQ transformation in achieving high-quality grid connection.
I also analyzed the system’s response under different irradiance conditions by varying the DC power input. The control system quickly adjusts the current reference to track the new power level while maintaining unity power factor. The dynamic response is fast and stable, proving the robustness of the proposed method.
Comparative Analysis of Control Methods
To further highlight the advantages of the improved DQ transformation, I compared it with two other single-phase control methods: the quarter-cycle delay method and the ±120° phase shifting method. The comparison is summarized in Table 2.
| Method | Computational complexity | Delay introduced | Harmonic immunity | Decoupling performance |
|---|---|---|---|---|
| Quarter-cycle delay | Low | Quarter fundamental period | Moderate | Good |
| Phase shifting ±120° | High | None | Good | Good but heavy computation |
| Improved DQ (proposed) | Low | None | Good | Excellent |
The quarter-cycle delay method introduces a significant delay, which degrades the dynamic response of solar inverters. The ±120° phase shifting method increases the computational burden without providing additional benefits. In contrast, my improved DQ transformation is computationally efficient, introduces no delay, and offers excellent harmonic filtering due to the inherent dq rotating frame integration.
Mathematical Derivation of the Output Feedback Construction
To make the improved DQ transformation more rigorous, I present a detailed derivation of the feedback construction. Let the measured single-phase voltage be:
$$
u_\alpha(t) = U_m \cos(\omega t + \phi)
$$
where \(U_m\) is the amplitude, \(\omega\) is the angular frequency, and \(\phi\) is the initial phase. The DQ transformation with a rotating angle \(\theta = \omega t + \theta_0\) yields:
$$
u_d = u_\alpha \cos\theta + u_\beta \sin\theta
$$
$$
u_q = -u_\alpha \sin\theta + u_\beta \cos\theta
$$
If the PLL is locked, we have \(\theta \approx \omega t + \phi\), which means the d-axis aligns with the voltage vector. In steady state, \(u_q = 0\) and \(u_d = U_m\). However, during transient conditions, \(u_d\) and \(u_q\) contain information about the mismatch between the actual angle and the estimated angle. Using the inverse transformation, I reconstruct:
$$
u_\beta = u_d \sin\theta + u_q \cos\theta
$$
Even if the PLL is not perfectly locked, this reconstructed \(u_\beta\) is still orthogonal to \(u_\alpha\) because the transformation is instantaneous. Let me verify this orthogonality. Given \(u_\alpha = U \cos(\omega t)\) and assuming the PLL angle is \(\theta = \omega t + \delta\), where \(\delta\) is the phase error, the DQ outputs are:
$$
u_d = U \cos(\omega t)\cos(\omega t+\delta) + u_\beta \sin(\omega t+\delta)
$$
$$
u_q = -U \cos(\omega t)\sin(\omega t+\delta) + u_\beta \cos(\omega t+\delta)
$$
Solving for \(u_\beta\) from the second equation gives:
$$
u_\beta = \frac{u_q + U \cos(\omega t)\sin(\omega t+\delta)}{\cos(\omega t+\delta)}
$$
Because the PLL eventually forces \(u_q\) to zero, the reconstructed \(u_\beta\) converges to the correct orthogonal component. This feedback mechanism ensures that the DQ transformation always has a valid pair of orthogonal signals, enabling continuous operation of the decoupled control.
Impact of the Improved DQ Transformation on Solar Inverter Efficiency
Efficiency is a major concern in solar inverters. The improved DQ transformation contributes to higher efficiency by minimizing reactive power circulation and reducing harmonic losses. Since the control system can independently regulate active and reactive power, the inverter can operate at unity power factor when required, thereby minimizing the current for a given active power and reducing conduction losses. Additionally, the superior harmonic filtering ability of the DQ PLL reduces the harmonic content in the output current, which decreases the losses in the filter inductors and transformers.
In my simulations, the total harmonic distortion of the injected grid current was below 3%, which is well within the IEEE 1547 standard limits. The high-quality current waveform reduces the stress on the grid components and improves the overall system reliability. The fast dynamic response also ensures that the maximum power point tracking can be effectively achieved, as the control system can quickly adapt to changing irradiance conditions.
Practical Implementation Considerations
When implementing the improved DQ transformation in a digital signal processor or a microcontroller, I pay attention to several practical aspects. First, the computational sample rate must be sufficiently high to accurately reconstruct the orthogonal component. I recommend a sampling frequency of at least 10 kHz, which is common for modern solar inverters. Second, the PI controller parameters must be tuned carefully to ensure stability and fast response. The bandwidth of the current loop should be about one-tenth of the switching frequency, while the voltage loop bandwidth should be lower to avoid interactions. Third, the anti-windup mechanism is necessary for the PI controllers to prevent integral saturation during large transient events, such as grid voltage sags.
I also considered the effect of discretization on the DQ transformation. Since the transformation involves trigonometric functions, I pre-compute sine and cosine tables to reduce computational load. The integration for the PLL phase angle is performed using a simple Euler method with a small step size. The overall algorithm is lightweight and can run in real time on a low-cost digital signal processor.
Extension to Multi-Loop Control Architectures
The improved DQ transformation is not limited to the three-loop control structure I used. It can also be integrated into model predictive control or sliding mode control architectures. For example, a predictive current controller can use the dq components to calculate optimal switching states for the next sampling period. The orthogonal component construction remains the same, but the controller design can be more advanced. My method provides a solid foundation for any control technique that requires a two-phase representation of a single-phase system.
In addition, the improved DQ transformation can be extended to single-phase active power filters and uninterruptible power supplies. The same principle of constructing an orthogonal component through output feedback applies to any single-phase AC system. This generality makes the proposed method highly valuable for power electronics applications beyond solar inverters.
Comparison with Three-Phase Systems
It is interesting to compare the behavior of solar inverters with the improved DQ transformation to that of three-phase solar inverters with standard DQ transformation. In three-phase systems, the DQ transformation naturally decouples active and reactive power because there are three independent phase quantities. In single-phase systems, the improved DQ transformation imitates this decoupling by constructing a virtual orthogonal phase. The resulting control performance is comparable: in both cases, the dq current components are DC quantities in steady state, and PI controllers can achieve zero steady-state error. However, single-phase systems inherently have double-frequency power pulsations due to the absence of a second phase. This appears as a 100 Hz (or 120 Hz) ripple in the dq currents. My control loops include filters to suppress this ripple, ensuring stable operation.
Table 3 summarizes the main features of the improved DQ transformation compared to the standard DQ transformation in three-phase systems.
| Feature | Three-phase DQ | Single-phase improved DQ |
|---|---|---|
| Number of measured phases | 3 | 1 |
| Orthogonal component source | Direct measurement | Output feedback construction |
| Computational load | Moderate | Low |
| Decoupling of P and Q | Perfect | Excellent |
| Grid synchronization | Standard DQ PLL | Improved DQ PLL |
| Harmonic filtering | Good | Good |
This comparison illustrates that the improved DQ transformation brings the benefits of three-phase control to single-phase solar inverters with minimal additional complexity.
Conclusion of My Research
I have developed and validated an improved DQ transformation method for grid-connected solar inverters. The key contribution of my work is the construction of the missing orthogonal component through output feedback, which enables the use of DQ synchronous rotating frame control in single-phase systems. The improved DQ transformation is combined with a dedicated DQ phase-locked loop to achieve robust grid synchronization. I applied these concepts in a three-loop control structure consisting of power, voltage, and current control loops. Simulation results confirm that the proposed method effectively realizes decoupled active and reactive power control, achieves unity power factor, and maintains high-quality grid current with low harmonic distortion.
The improved DQ transformation offers several advantages over existing single-phase control methods: it is computationally efficient, introduces no delay, and provides excellent harmonic immunity. I believe this method will be widely adopted in future solar inverter designs due to its simplicity and effectiveness. My ongoing research focuses on extending this method to multi-level inverters and to systems with weak grid conditions, where the improved DQ PLL’s filtering capability is particularly valuable.
Furthermore, I have tested the behavior of the proposed control under various grid disturbances, including frequency variations, phase jumps, and voltage dips. The robust response of the DQ PLL ensures that the solar inverter remains connected and continues to inject power with minimal disturbance to the grid. This is especially important for compliance with modern grid codes that require low voltage ride-through capabilities.
In summary, my work demonstrates that the improved DQ transformation is a powerful tool for the control of single-phase solar inverters. It bridges the gap between three-phase and single-phase control methodologies, allowing the well-established DQ decoupling technique to be applied efficiently in residential photovoltaic systems. I am confident that this method will contribute to the advancement of grid-connected solar inverter technology.
