Introduction

World’s dependency on electrical energy is increasing day by day. Nevertheless, corona pandemic and lockdown situation have brought about irregular supply of industry raw material and goods. Energy generation sector is also affected in terms of the delayed and insufficient supply of fossil fuels viz. mainly coal and diesel. Insufficient power generation carries significant impact on small scale industry, agriculture, rural areas and on community loads comprising both linear and nonlinear loads in nature. Based on the studies of Ministry of Power, Govt. of India, the total growth in the generation is reduced by 0.95% and -0.5% during pandemic years 2019–20 and 2020–21, respectively [1]. At present the effect of covid is still persisting in coastal states viz. Kerala, Maharashtra, Tamilnadu etc. A three phase wind based microgrid (WMG) can become a prudent choice of energy generation for smooth conduction of small industries and community loads during energy crisis situation as well as in normal situation. As it is well known that fossil fuel-based energy resources have come into the declining state due to their exhaustive utilization. As far as cost is concerned, renewable energy generation may have an edge over the fossil fuel based generation due to low cost of wind energy and implementation of advance research. Though the research concepts with renewable energy resources [2,3,4] and distributed generation are not new but it has been appreciated and promoted significantly from the last decade as it is based on clean and green energy, which is environment friendly and the technical advancement as well as subsidies have made its price affordable. Such systems can also sell energy by feeding excess energy to the grid. Good literature on converter topologies is being used with satisfactory performance for energy transfer among various units of MGs [5, 6].

Various control methods of VSI (Voltage Source Inverter) for the grid connected and standalone operations are explained in the literature. In the researches [7, 8], the control methods for utility interfaced systems are explained with current control approaches. In the literature [9, 10], the authors have proposed the control algorithms for isolated power generation systems. Grid synchronization concept is reported in the investigations [11] detailing about the challenges during the transition between two modes (standalone & grid tied mode) in synchronization or isolation processes. This switching may lead power imbalance among various generating units due to low inertia or poor dynamics. The battery bank is a good solution in order to meet such power imbalance. Therefore, due to controlled charging and discharging at high frequency switching, proper heat dissipation from the capacitor does not take place in time. Therefore, these systems arise high risk due to converter harmonics. Literature related to microgrid operations [7,8,9,10,11] provides motivation for this work where in order to make the battery system less burdened, direct attachment of it at DC link of VSI is done under proposed topology. Further battery storage can mitigate the system issues by improving the power factor of the system, regulating voltage and frequency, reducing fluctuations, standardizing the intermittency of the renewable sources; hence providing balance among generation and demand units. Angular stability is affected by low inertia systems, it may cause voltage and frequency instability. System stability and power quality problems can be resolved by applying good control algorithms for both modes of operations and using battery support during synchronization.

In this paper, the wind generator and the storage are directly attached to the DC link of VSI. Therefore, number of converters and switches are reduced in comparison to other topologies reported in the literature [12, 13]. Performance of wind based MG in standalone and grid tied operations is presented with smooth transition between these modes. In standalone mode, microgrid VSI operates in voltage control and feeds the local load demand. The battery charges and discharges depending on load demand and wind availability. During the grid recovery, the process of synchronization connects the STS (Static Transfer Switch). The control of VSI shifts from voltage control technique to current control technique. In grid connected operation, the VSI supplies excess power to the mains and at low wind generation or high load demand, the utility delivers power to local loads. The transient free connection and isolation are achieved and are demonstrated with variety of results. The main aspects of this work are briefed as follows:

  • Power quality issues like voltage and frequency regulation, harmonics mitigation, power balance, etc., are taken care in all states of operation.

  • MG has plug and play capability; seamless functioning with both control methods during synchronization and isolation process.

  • During standalone operation, it works as a back-up system and supports local area network under grid failure. It increases reliability as well as stability aspects with this functioning.

  • The battery is directly attached at the capacitor of DC bus therefore is not prone to high frequency switching during charge and discharge and has better life and less losses.

  • Proposed topology is economic and simple due to reduced number of converters as, P&O (Perturb and Observe), a HIL climb method is utilized for wind MPPT and is able to reduce sensors, i.e., wind speed sensor, position sensor, and generator speed sensor to reduce the system cost. The battery and the wind energy converted into DC power using a diode rectifier are attached at the DC bus of the same VSI. Here two converters requirement is reduced and the control complexity is also minimized.

This MG concept is validated by incorporating test results on a developed porotype of three-phase WMG. Table 1 shows the overall brief of the wind power generation and Table 2 shows comparative study on various control system.

Table 1 Main outcomes of Result and discussion section
Table 2 Indices for comparative study on various controls’ behaviors

System Structure

A permanent magnet BLDC (Brushless-DC) generator based three phase WMG is shown in Fig. 1. The wind generator is connected to a diode bridge rectifier, which converts AC power from the wind generator into DC power. After maximum power point tracking (MPPT) implementing P&O (Perturbation and observation) approach [14] using a DC-DC boost converter, it is fed to DC bus capacitor of the VSI. A battery bank support is applied at the DC bus capacitor to manage power balance during excess generation or peak demands. Using VSI with the appropriate control method, the DC power is transformed into the AC power. Three-phase nonlinear/linear loads with RC filters and interfacing inductances (Lf) are used at common point coupling (PCC) to reduce current harmonics and voltage harmonics. This WMG is connected or is disconnected from the grid according to its availability via STS (Static Transfer Switch). The closing and opening of STS depend on the grid condition to produce a synchronization signal. The design data of WMG are given in Table 3.

Fig. 1
figure 1

Schematic diagram of WMG

Table 3 Microgrid components and design

Control Methods of WMG

WMG has to perform different operations as per the grid and load behavior. The three phase VSI is communicating with all the units with appropriate control method to provide satisfactory performance of WMG for the community. In standalone operation, VSI functions with VCM and in grid tied operation, it works in CCM. Both voltage and current control methods are very simple and robust. By proper control on STS opening and re-closure the transfer between two modes, is made seamless and transient free.

Control Method for Standalone Operation

The WMG operates in standalone operation when some abnormalities appear in the grid and system has to work in back-up mode for smooth conduction of the community load. Figure 2 demonstrates the voltage control method for PWM pulse generation of VSI. The load voltage references are formed with peak reference voltage and frequency (Vp*, ω0).

Fig. 2
figure 2

VCM for standalone operation

The voltage references are achieved in the standalone operation as [15],

$$v_{{{\text{La}}}}^{*} = V_{{\text{p}}}^{*} \sin \omega_{0} t$$
(1)
$$v_{{{\text{Lb}}}}^{*} = V_{{\text{p}}}^{*} \sin \left( {\omega_{0} t - 120^{0} } \right)$$
(2)
$$v_{{{\text{Lc}}}}^{*} = V_{{\text{p}}}^{*} \sin \left( {\omega_{0} t + 120^{0} } \right)$$
(3)

Voltage references are compared with sensed load voltages (vLabc) and voltage errors are sent to PI regulators, to generate load current references (i*Labc). A comparison of sensed (iLabc) and reference (i*Labc) currents, is made for pulse generation of VSI.

Control Method for Utility tied Operation

During normal grid running conditions, Fig. 3 depicts the current control for the utility tied operation of MG to compute reference grid currents. A second order generalized integrator (SOGI) [16, 17] is implemented to extract fundamental current components from load currents. This current control is used to compute reference grid currents. The grid phase voltages (vg_abc) are derived [18] from grid line voltages as,

$$v_{{{\text{g}}\_{\text{a}}}} = \frac{1}{3}\left( {2v_{{{\text{g}}\_{\text{ab}}}} + v_{{{\text{g}}\_{\text{bc}}}} } \right)$$
(4)
$$v_{{{\text{g}}\_{\text{b}}}} = \frac{1}{3}\left( { - v_{{{\text{g}}\_{\text{ab}}}} + v_{{{\text{g}}\_{\text{bc}}}} } \right)$$
(5)
$$v_{{{\text{g}}\_{\text{c}}}} = \frac{1}{3}\left( { - v_{{{\text{g}}\_{\text{ab}}}} - 2v_{{{\text{g}}\_{\text{bc}}}} } \right)$$
(6)
Fig. 3
figure 3

An indirect current control in utility tied operation

The terminal voltage amplitude Vg_t is calculated from grid phase voltages as,

$$V_{{{\text{g}}\_{\text{t}}}} = \sqrt {\left( {{\raise0.7ex\hbox{${2\left( {v_{{{\text{g}}\_{\text{a}}}}^{2} + v_{{{\text{g}}\_{\text{b}}}}^{2} + v_{{{\text{g}}\_{\text{c}}}}^{2} } \right)}$} \!\mathord{\left/ {\vphantom {{2\left( {v_{{{\text{g}}\_{\text{a}}}}^{2} + v_{{{\text{g}}\_{\text{b}}}}^{2} + v_{{{\text{g}}\_{\text{c}}}}^{2} } \right)} 3}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$3$}}} \right)}$$
(7)

where vg_a, vg_b, vg_c are grid phase voltages.

The in-phase unit vectors are estimated as,

$$p_{{{\text{ga}}}} = \frac{{v_{{{\text{g}}\_{\text{a}}}} }}{{V_{{{\text{g}}\_{\text{t}}}} }},p_{{{\text{gb}}}} = \frac{{v_{{{\text{g}}\_{\text{b}}}} }}{{V_{{{\text{g}}\_{\text{t}}}} }},p_{{{\text{gc}}}} = \frac{{v_{{{\text{g}}\_{\text{c}}}} }}{{V_{{{\text{g}}\_{\text{t}}}} }}$$
(8)

The quadrature unit vectors are obtained as,

$$q_{{{\text{ga}}}} = \frac{{\left( {p_{{{\text{gc}}}} - p_{{{\text{gb}}}} } \right)}}{\sqrt 3 }$$
(9)
$$q_{{{\text{gb}}}} = \frac{{\left( {3q_{{{\text{ga}}}} + q_{{{\text{gb}}}} - q_{{{\text{gc}}}} } \right)}}{2\sqrt 3 }$$
(10)
$$q_{{{\text{gc}}}} = \frac{{\left( { - 3p_{{{\text{ga}}}} + p_{{{\text{gb}}}} - p_{{{\text{gc}}}} } \right)}}{2\sqrt 3 }$$
(11)

The fundamental load current component for phase ‘c’ (iLfc) is extracted using SOGI scheme. At zero crossing (ZCH) of vqgc with a sample and hold (SCH) logic, individual active component for phase ‘c’ (iLpc) is generated from load fundamental current iLfc.

An active component of the 3−φ load currents is estimated as,

$${\text{I}}_{{{\text{Ld}}}} = \frac{{{\text{I}}_{{{\text{Lpa}}}} + {\text{I}}_{{{\text{Lpb}}}} + {\text{I}}_{{{\text{Lpc}}}} }}{3}$$
(12)

The reference grid active current component is extracted as,

$${\text{I}}_{{{\text{gT}}}} = \left( {{\text{I}}_{{{\text{Ld}}}} - {\text{I}}_{{\_{\text{w}}}} } \right)$$
(13)

where an equivalent wind current, I_w is estimated as,

$${\text{I}}_{\_w} = \frac{{{\text{P}}_{{{\text{wind}}}} }}{{3{\text{V}}_{{\text{t}}} }}$$
(14)

where Pwind = Ir*Vr (input current and voltage of boost converter), Pbt and Vg_t are the MPPT wind power, the battery power and the peak of terminal voltages.

Reference values of grid currents (i*g_abc) are produced multiplying reference grid active current component (Igd) with in-phase unit vectors. The VSI switching is made by comparing reference values (i*g_abc) and sensed values of grid currents (ig_abc) to generate PWM pulses for VSI.

Grid and Load Angles Estimation and Load Angle Correction

The grid and load voltages angles (θg, θsa) are generated using three phase PLL (Phase Lock Loop). Angle error signal is send to the PI regulator. The PI regulator regulates the frequency difference (Δω) as depicted in Fig. 4. The change is incorporated in load voltage angle (θsa) for updating it close to an angle of the grid voltage (θg).

Fig. 4
figure 4

Control of an angle of load voltage close to grid voltage angle

WMG Responses

Steady state performance of WMG is observed at nonlinear loads with wind speed variations. Two scenarios are considered as: (1) high wind power generation at low load demand, and (2) low wind power generation at high load demand. Dynamic behavior is studied at linear/nonlinear loads. The voltages and currents at common coupling points (PCC) are detected using Hall Effect voltage and current sensors. The control methods are applied on a DSP-dSPACE 1103. An Agilent make- DSO-7014A, DSO (Digital Storage Oscilloscope) and Fluke-43B, a power analyzer are employed to record results.

Condition1: High Wind power Generation at Less Demand

At reduced load demand with full capacity wind power generation, the excess power is delivered to the grid during utility tied operation and is put into the battery storage during standalone operation.

Standalone Operation

The steady state functioning of WMG for the standalone operation is taken with voltage control method as revealed in Fig. 5. The load current (iLc) at line voltage (vLab), their THDs are shown in Fig. 5a, b. The VSI current (iVSI_c) and the load voltage THDs are illustrated in Fig. 5c, d. The load voltage is sinusoidal and its harmonics content is very small. This justifies that WMG control is effective in improving voltage profile under standalone operation. Figure 5e, f depicts that VSI power satisfies the load demand. The wind generation is higher than the demand as shown in Fig. 5g, h. So, the rest power is conserved in the battery. A part of power is consumed in system losses.

Fig. 5
figure 5

a Load currents (iLc) with VLab b Load current THD c Current of VSI (iVSI_c) with VLab d THD of load voltage e PL f PVSI g P_w h Pbt

Utility Tied Operation

The WMG behavior in utility tied operation is demonstrated in Fig. 6. The VSI is operating in current control mode. Figure 6a, b shows the line voltage and grid current (igc) with its THD. The voltage THD is shown in Fig. 6c. The current control algorithm is capable of improving the power quality. Figure 6d–f illustrates the load currents (iLc), its THD and VSI current (iVSI_c). The wind power generation is revealed in Fig. 6g. The VSI power (PVSI), grid power (Pg) and demand (PL) are shown in Fig. 6h–j. The renewable power is fed to the load and the grid (negative in sign) through VSI. The battery power (Pbt) shown in Fig. 6k is negative, which shows that the battery releases power for system losses.

Fig. 6
figure 6

a Utility-grid currents (iug_c) with vg_ab b THD of grid current c THD of line voltage d Load currents (iLc) with Vg_ab e THD of load current f VSI currents (iVSI_c) with Vg_ab g P_w h PVSI i Pg j Load demand (PL) k Battery power (Pbt)

Condition 2: Low Wind Power Generation at High Demand

With low wind power generation, the extra load demand is fulfilled by the battery storage during standalone condition. At grid availability and grid connected operation, the power is supplied by the mains.

Standalone Operation

Figure 7 demonstrates the steady state scenario of the WMG in a standalone operation when it realizes high load demand. Figure 7a, b depicts the load current and load voltage THD. Figure 7c–f illustrates different power states during high load demand. It is shown that VSI (PVSI) is supplying the sufficient power to the load (PL). The wind generation (Pw) is not sufficient to fulfill the load demand shown in Fig. 7e, therefore, the battery discharges to provide rest of the required power (Pbt) as depicted in Fig. 7f.

Fig. 7
figure 7

a Load current (iLc) b THD of line voltage c Load demand (PL) d PVSI e Wind power (Pw) f Battery power (Pbt)

Utility Tied Operation

With grid availability and low wind speeds having less power generation, the grid supplies deficit power to the load. This detailed scenario in utility tied state is shown in Fig. 8. Figure 8a–c presents utility current (ig_c), load current (iLc) and VSI current (iVSI_c).

Fig. 8
figure 8

a Utility-grid current (ig_c) b Load current (iLc) c Currents of VSI (iVSI_c) d Load demand (PL) e P_w f Pg g PVSI (h) Battery power (Pbt)

The whole energy scenario is shown in Fig. 7d–h. The load demand (PL = 1.69 kW) is much higher than the wind power (Pw = 183 W). Therefore, as VSI is providing very small power to the load (PVSI), the rest power is coming from the grid (Pg = 1.58 kW). VSI power and battery powers are shown in Fig. 7g, h, respectively.

It is observed that during steady state operation, the WMG control methods are effective to provide power balance as well as power quality.

Dynamics Under Synchronization, Isolation and DSTATCOM Operations

The dynamic performance of WMG is achieved experimentally at linear/nonlinear loads synchronizing grid, grid isolation and DSTATCOM operation with wind speeds variation. The WMG is functioning in standalone operation to feed the community loads and it synchronizes to the grid as per IEEE 1547 [19] and delivers power to the grid as soon as it comes back to the healthy state. Figure 9 illustrates various signals of synchronizing grid and isolation operations. Figure 9a shows both isolation and synchronization together. During the isolation, the grid line voltage (vg_ab) and current (ig_a) both disappear instantaneously without having spikes in load voltage (vLab) and current (iLa). The synchronization takes place within few cycles after the grid voltage appearance and the grid current ig_a comes into the picture. The load line voltage (vLab) and current (iLa) are maintained constant without spikes. Figure 9b, c illustrates the grid current (ig_a) with grid and load angles (θg & θsa) at grid synchronization and isolation under nonlinear loads. The smooth transfer between the modes is achieved using the appropriate control methods, i.e., voltage control and current control modes.

Fig. 9
figure 9

Dynamics of WMG under nonlinear loads a vg_ab, ig_a, vLab, iLa bc ig_a, θg, θsa, iLa

During the grid tied operation, the WMG feeds the consumer load and the excess power is delivered to the grid. At high speed winds, the surplus wind power is fed to the utility (under SS1). During low wind availability, the generation is almost reduced to zero or insufficient to feed the consumer loads as depicted in Fig. 10a. Under these circumstances, the VSI behaves as DSTATCOM (SS2) and the power flows from the grid to the load. The grid currents now change with 1800 phase shift and in-phase with the grid voltage. Figure 10b reveals the DSTATCOM (under SS2) action with linear load, where at no wind condition the grid supplies power to the load at unity power factor while the load is at lagging power factor. Therefore, reactive power compensation and power factor correction are provided by the VSI under DSTATCOM operation. Figure 10c shows the DC bus voltage (VDC), battery current (Ibt), wind speed variation in terms of the boost converter input current (Ir) and the boost converter input voltage (Vr). In absence of wind power, the grid feeds power to the consumer load. Moreover, the battery either discharges or may charge or in floating state according to its state of charge. Internal parameters of wind current component (Ir), load active component (ILd), and reference grid current active component to feed grid (Igd) and reference grid current (i*g_a) are shown in Fig. 10d. ILd is constant with fixed load demand. The active power component of wind current (I_w) is changed from negative to positive with wind speed reduction, which shows that the grid is feeding the load rather than fed by the WMG. The phase of reference grid current (i*g_a) also changes, which shows its action is changed now.

Fig. 10
figure 10

WMG dynamics with variation in wind speed a vg_ab, ig_a, iLa, iVSI_a b vg_ab, ig_a, iLa, iVSI_a c VDC, Ibt, Vr, Ir d ILd, I_w, Igd, i*g_a

A comparative analysis for system dynamics is done with SOGI (second order generalized integrator), LMLS (Least Mean Logarithmic Square) in [20] and EPLL (Enhanced Phase Lock Loop) [21]. Using MATLAB Simulink, the load removal is realized in Fig. 11, on phase ‘a’ at t = 2.5 s and it is again revived at t = 2.7 s. During observation, the SOGI is found fastest among all the control schemes. FFT analysis for steady state operation is also done. Finally, a comparative study is included in Table 2.

Fig. 11
figure 11

Dynamic behavior of different controls

Conclusion

A permanent magnet BLDC generator based three phase WMG prototype has been designed and developed into the laboratory to validate its performance with test results. Performance of WMG has been demonstrated in standalone, and utility tied operations with low and high wind variations. The transient free transition between grid synchronization and isolation process has also been demonstrated effectively. The VSI has operated in voltage and current control modes seamlessly using simple and robust control methods. The synchronization control is used for switching of STS. The control methods are able to resolve power quality issues like voltage and current harmonics, voltage regulation during dynamics as mode changes from grid tied to standalone and vice-versa, and also during power reversal of the grid at low wind generation when VSI starts behaving as DSTATCOM. During standalone operation, it supports the local system as a back-up during grid failure and also increases reliability and stability of the network. VSI manages power among different units such as energy sources, battery bank and various industrial and agricultural loads in all operations. The efficient power flow, PQ and power balance are achieved under this scheme.