Keywords

1 Introduction

In the last two decades, awareness of consumers about green technologies, environment concerns, and depletion of the stock of fossil fuel has forced the planners and grid designers to explore the renewable energy sources and alternative sources viz. Photovoltaic (PV) Cell, wind turbine generator, storage battery, microhydropower. In India due to abundance of sunlight, solar energy is gaining lots of importance. The output of PV cell is DC voltage and integration with conventional AC microgrid requires semiconductor inverters along with their controllers. Power generated from PV modules faces the problems concerning power quality like waveform distortion, unbalance, and fluctuations in voltage and/or current. So, utilization of PV module efficiently needs output voltage and current to be tracked and optimized using appropriate control algorithm [1, 2]. Inverter plays a vital role for processing, control, and synchronization of generated power with grid. Performance of PV inverter is based on active, reactive, and harmonic current estimation. Accuracy of performance is decided by control algorithm. Several control schemes have been designed and reported in literature [3, 4]. In this paper, the author(s) have discussed and compared synchronous reference frame (SRF) theory, unit template, instantaneous reactive power (IRP) theory, and conductance Fryze based control algorithms. MATLAB and Simulink toolbox-based simulation analysis is presented for demonstration of effectiveness of these control techniques for PV-based grid-connected microgrid system.

2 Design of Control Algorithms

The different control algorithms are applied in the closed-loop control of PV inverter to generate gating pulse signals. Difference lies in the sensed parameters and their processing to generate the reference current signal for gating pulse generation. Once the reference signals (i ra*, i rb*, i rc*) are obtained, they are processed with measured currents using hysteresis current controller (HCC). HCC generates the six gating pulse signal for the PV inverter. The proposed algorithms are implemented on a 10 kW PV-based grid connected microgrid as shown in Fig. 1 [5].

Fig. 1
figure 1

Schematic diagram of PV-based grid-connected microgrid

2.1 Synchronous Reference Frame Theory

In the SRF theory-based algorithm, sensed \(i_{\text{la}} , i_{\text{lb}}\) and \(i_{\text{lc}}\); \(V_{\text{terma}}\), \(V_{\text{termb}}\) and \(V_{\text{termc}}\) and \(v_{\text{dc}}\) are fed to controller for extracting the reference currents [6]. SRFT algorithm uses Park’s transformation to reduce three-phase AC quantities to two DC quantities for simplified calculations, given by Eqs. (1) and (2):

$$i_{d} = \frac{2}{3}\,(i_{a} {\text{Re}}\{ {\text{e}}^{i\alpha } \} + i_{b} {\text{Re}}\{ {\text{e}}^{i\beta } \} + i_{c} {\text{Re}}\{ {\text{e}}^{i\gamma } \} )$$
(1)
$$i_{q} = \frac{2}{3}\,(i_{a} {\text{Im}}\{ {\text{e}}^{i\alpha } \} + i_{b} {\text{Im}}\{ {\text{e}}^{i\beta } \} + i_{c} {\text{Im}}\{ {\text{e}}^{i\gamma } \} )$$
(2)

where α is (ωt), β is (α – 2π/3), and γ is (α + 2π/3). The two DC quantities, I d (d-axis) current and I q (q-axis) current are used to control the real and reactive power respectively. The PV inverter generated AC supply has to be synchronized with the grid supply before connection. The generated signals are synchronized with the grid using phase-locked loop (PLL). A PI controller is used for the DC bus voltage regulation. Output of PI is loss current (i loss) component of power of system. To generate the reference currents inverse Park’s transformation is carried out using Eqs. (35)

$$i_{\text{ra}}^{ *} = (i_{d}^{ *} {\text{Re}}\{ {\text{e}}^{i\alpha } \} + i_{q}^{ *} {\text{Im}}\{ {\text{e}}^{i\alpha } \} )$$
(3)
$$i_{\text{rb}}^{ *} = (i_{d}^{ *} {\text{Re}}\{ {\text{e}}^{i\beta } \} + i_{q}^{ *} {\text{Im}}\{ {\text{e}}^{i\beta } \} )$$
(4)
$$i_{\text{rc}}^{ *} = (i_{d}^{ *} {\text{Re}}\{ {\text{e}}^{i\gamma } \} + i_{q}^{ *} {\text{Im}}\{ {\text{e}}^{i\gamma } \} )$$
(5)

2.2 Unit Template Algorithm

In the unit template control algorithm, sensed inputs \(i_{\text{la}} , i_{\text{lb}}\) and \(i_{\text{lc}}\); \(i_{\text{ra}} , i_{\text{rb}}\) and \(i_{\text{rc}}\); \(V_{\text{terma}}\), \(V_{\text{termb}}\) and \(V_{\text{termc}}\) and \(v_{\text{dc}}\) are fed to controller for extracting the reference currents [7]. Unit vectors in phase and in quadrature with terminal voltages are calculated using terminal voltage amplitude (V term) as shown in Eqs. (68)

$$V_{\text{term}} = \sqrt {\frac{2}{3}(V_{\text{terma}}^{2} + V_{\text{termb}}^{2} + V_{\text{termc}}^{2} )}$$
(6)
$$p_{a} = v_{\text{sa}} /v_{\text{term}} , p_{b} = v_{\text{sb}} /v_{\text{term}} , p_{c} = v_{\text{sc}} /v_{\text{term}}$$
(7)
$$q_{a} = p_{c} - p_{b} /\sqrt 3 , q_{b} = p_{a} /\sqrt 2 + (p_{b} - p_{c} )/\sqrt 6 , q_{c} = - p_{a} /\sqrt 2 + (p_{b} - p_{c} )/\sqrt 6$$
(8)

The unit vectors obtained are used to obtain the active load power and reactive load power given by Eqs. (9) and (10).

$$P = V_{\text{term}} \times \left( {p_{a} *i_{\text{la}} + p_{b} *i_{\text{lb}} + p_{c} *i_{\text{lc}} } \right)$$
(9)
$$Q = V_{\text{term}} \times \left( {q_{a} *i_{\text{la}} + q_{b} *i_{\text{lb}} + q_{c} *i_{\text{lc}} } \right)$$
(10)

The total load power calculated has two components, DC component (P dc, Q dc) and oscillating AC component (P ac, Q ac). AC component is harmonic component, which is removed using filter and active (I pf) and reactive (I qf) load current components are obtained. PV inverter is used to supply active load power as well as losses to maintain the unity power factor. PI controller helps in DC bus voltage regulation. Output of PI is loss current (i loss) component of power of system. The unit vectors are then used to calculate the active and reactive components of reference grid currents, using Eqs. (11) and (12)

$$i_{\text{pra}} = p_{a} \times \left( {i_{\text{pf}} + i_{\text{loss}} } \right),i_{\text{prb}} = p_{b} \times \left( {i_{\text{pf}} + i_{\text{loss}} } \right), i_{\text{prc}} = p_{c} \times \left( {i_{\text{pf}} + i_{\text{loss}} } \right)$$
(11)
$$i_{\text{qra}} = q_{a} \times \left( {i_{\text{qf}} + i_{\text{acq}} } \right), i_{\text{qrb}} = q_{b} \times \left( {i_{\text{qf}} + i_{\text{acq}} } \right), i_{\text{qrc}} = q_{c} \times \left( {i_{\text{qf}} + i_{\text{acq}} } \right)$$
(12)

The addition of the above two components provide the total reference currents.

2.3 Instantaneous Reactive Power Theory

In the IRP theory-based algorithm, sensed \(i_{\text{la}} , i_{\text{lb}}\) and \(i_{\text{lc}}\); \(v_{\text{la}} , v_{\text{lb}}\) and \(v_{\text{lc}}\) and \(v_{\text{dc}}\) are fed to controller for extracting the reference currents [8]. In IRPT, active and reactive power are calculated in αβ frame using Clarke’s transformation given by Eqs. (13) and (14)

$$v_{\alpha } + jv_{\beta } = \sqrt {\frac{2}{3}} \left( {v_{a} + v_{b} {\text{e}}^{{\frac{{j2\Pi }}{3}}} + v_{c} {\text{e}}^{{ - \frac{{j2\Pi }}{3}}} } \right)$$
(13)
$$i_{\alpha } + ji_{\beta } = \sqrt {\frac{2}{3}} \left( {i_{a} + i_{b} {\text{e}}^{{\frac{{j2\Pi }}{3}}} + i_{c} {\text{e}}^{{ - \frac{{j2\Pi }}{3}}} } \right)$$
(14)

The estimated active power and reactive power are given by Eqs. (15) and (16).

$$P = v_{\alpha } i_{\alpha } + v_{\beta } i_{\beta } = P_{\text{dc}} + P_{\text{ac}}$$
(15)
$$Q = v_{\alpha } i_{\beta } - v_{\beta } i_{\alpha } = Q_{\text{dc}} + Q_{\text{ac}}$$
(16)

Calculated active and reactive power consists of fundamental component (P dc, Q dc) and harmonic component (P ac, Q ac). To remove the harmonic component, these instantaneous powers are passed through low-pass filter. Filter allows only fundamental signal to pass through. The reference currents are then obtained from fundamental power signals which are in α, β frame. Inverse Clarke’s transform is used to recover three-phase AC quantities of reference currents.

2.4 Conductance Fryze Algorithm

In the conductance Fryze control algorithm, sensed \(i_{\text{la}} , i_{\text{lb}}\) and \(i_{\text{lc}}\) and \(v_{\text{terma}} , v_{\text{termb}}\) and \(v_{\text{termc}}\) are fed to controller for extracting the reference currents [9]. In conductance Fryze algorithm, the average conductance value (G avg) is calculated form three-phase terminal voltages and load currents using Eq. (17).

$$G_{\text{avg}} = (v_{\text{terma}} i_{\text{la}} + v_{\text{termb}} i_{\text{lb}} + v_{\text{termc}} i_{\text{lc}} )/(v_{\text{terma}}^{ 2} + v_{\text{termb}}^{2} + v_{\text{termc}}^{2} )$$
(17)

The calculated value of average conductance value is passed through low-pass filter (LPF) that allows only fundamental signal to pass through. PI controller helps in DC bus voltage regulation, generating a loss component (G loss) which is provided by PV inverter to the system. The net conductance G is obtained using Eq. (18)

$$G = G_{\text{avg}} + G_{\text{loss}}$$
(18)

Reference currents are obtained by multiplying the net conductance with the terminal voltages as shown in Eq. (19).

$$i_{\text{ra}}^{ *} = G \times v_{\text{terma}} , i_{\text{rb}}^{ *} = G \times v_{\text{termb}} , i_{\text{rc}}^{ *} = G \times v_{\text{termc}}$$
(19)

3 Simulation Results

The solar PV system connected to the grid is simulated in MATLAB along with Simulink toolbox. The simulation results of grid side voltage (V grid), grid side current (I grid), DC link voltage (V dc), load current (I la, I lb, I lc), PCC current (I pa, I pb, I pc), PV voltage (V pv), PV current (I pv), and PV power (P pv) for different algorithms are shown in Figs. 2 and 3. Nonlinear load (universal bridge with 10 Ω, 100 mH) is used. Due to nonlinearity, THD of load current is 10.96 %. Simulation for different algorithms are performed taking into consideration the standard test condition of 1000 W/m2 and 25 °C.

Fig. 2
figure 2

Performance of SRF and unit template-based controller

Fig. 3
figure 3

Performance of IRP and conductance Fryze-based controller

For performance under transient conditions, load unbalancing is introduced at 0.3–0.45 s. As seen from the figures, for all the algorithms V dc remains constant and PCC voltage is regulated. A comparative analysis THD level of PCC voltage and grid current are presented in Table 1, which are well within IEEE limits [10].

Table 1 Performance of different algorithms under condition of load change

4 Conclusions

This paper presents four conventional control algorithms for control of PV inverter to integrate PV module with microgrid. The mathematical analysis of the four algorithms, i.e., SRFT, unit template, IRPT, and conductance Fryze have been presented to demonstrate the behavior of PV inverter. Conductance Fryze control algorithms have been found most suitable among all discussed algorithms. PCC and DC bus voltages of the PV inverter have also been regulated to reference values under all load conditions.