scieee AI-readable full text Open interactive document viewer

An adaptive hybrid control of reduced switch multilevel grid connected inverter for weak grid applications

Muhammad, Tila

Abstract

Grid-connected inverters have a very significant role in the integration of renewable energy resources with utility grids. However, in recent studies, it is revealed that grid-connected inverters are vulnerable to instability when the nature of the grid changes from strong to weak, which produces uncertainty and performance degradation. An increase in grid impedance decreases stability margins, tremendously increases total harmonic distortion after a certain limit, and amplifies the voltage harmonics in the grid. A cascaded reduced switch symmetrical multilevel inverter along with an adaptive hybrid control technique is proposed for injecting power generated from distributed energy resources efficiently and stably to the utility grid. This research contributes twofold: a multilevel inverter topology and the other is its control method. The multilevel inverter reduces total harmonic distortion and size of the filter while increasing power handling capability. The control unit of the proposed system further consists of two parts: one is the synchronous frame current controller, and the other is stationary frame adaptive harmonic compensators. The grid current controller which is working in a synchronous reference frame ensures regulated current injection to the grid. It is not favorable to implement a harmonic compensator in a synchronous reference frame due to computation complexities. Therefore, the stationary reference frame controllers are used for harmonic compensations. But the resultant harmonic compensators have narrow bandwidth. Thus, these are not robust against variation in grid frequency. In this research, this problem is resolved by adding the adaptive features within the harmonic compensators, which shift its passing band according to the frequency of the grid while remaining with the same bandwidth. The proposed design of the hybrid frame controller is validated by considering a nine-level inverter connected with a weak grid.

Full text

Received 17 February 2023, accepted 15 March 2023, date of publication 20 March 2023, date of current version 23 March 2023. Digital Object Identifier 10.1109/ACCESS.2023.3259323 An Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications TILA MUHAMMAD1, ADNAN UMAR KHAN 1, YOUSRA ABID 1, MUHAMMAD HILAL KHAN2, NASIM ULLAH 3, VOJTECH BLAZEK 4, LUKAS PROKOP 4, AND STANISLAV MISÁK 4 1Department of Electrical and Computer Engineering, International Islamic University Islamabad, Islamabad 44000, Pakistan 2Department of Electrical Engineering, City University of Science and Information Technology, Peshawar 25000, Pakistan 3Department of Electrical Engineering, College of Engineering, Taif University, Taif 11099, Saudi Arabia 4ENET Centre, VSB—Technical University of Ostrava, 708 00 Ostrava, Czech Republic Corresponding authors: Nasim Ullah ([email protected]) and Tila Muhammad ([email protected]) This work was supported by the following projects: TN02000025 National Centre for Energy II and CK04000060 Development of analytical tools for effective transition to electromobility. This work was also supported in part by the Taif University Researchers Supporting Project (TURSP-2020/144), Taif University, Taif, Saudi Arabia. ABSTRACT Grid-connected inverters have a very significant role in the integration of renewable energy resources with utility grids. However, in recent studies, it is revealed that grid-connected inverters are vulnerable to instability when the nature of the grid changes from strong to weak, which produces uncertainty and performance degradation. An increase in grid impedance decreases stability margins, tremendously increases total harmonic distortion after a certain limit, and amplifies the voltage harmonics in the grid. A cascaded reduced switch symmetrical multilevel inverter along with an adaptive hybrid control technique is proposed for injecting power generated from distributed energy resources efficiently and stably to the utility grid. This research contributes twofold: a multilevel inverter topology and the other is its control method. The multilevel inverter reduces total harmonic distortion and size of the filter while increasing power handling capability. The control unit of the proposed system further consists of two parts: one is the synchronous frame current controller, and the other is stationary frame adaptive harmonic compensators. The grid current controller which is working in a synchronous reference frame ensures regulated current injection to the grid. It is not favorable to implement a harmonic compensator in a synchronous reference frame due to computation complexities. Therefore, the stationary reference frame controllers are used for harmonic compensations. But the resultant harmonic compensators have narrow bandwidth. Thus, these are not robust against variation in grid frequency. In this research, this problem is resolved by adding the adaptive features within the harmonic compensators, which shift its passing band according to the frequency of the grid while remaining with the same bandwidth. The proposed design of the hybrid frame controller is validated by considering a nine-level inverter connected with a weak grid. INDEX TERMS Adaptive harmonic compensators, grid-connected inverters, harmonic compensators, multilevel inverters, phase disposition level shift carrier pulse width modulation, reduced switch multilevel inverters, total harmonic distortion, weak grid. I. INTRODUCTION Grid connected inverters(GCIs) play an important role in enabling the use of renewable energy resources. It is used The associate editor coordinating the review of this manuscript and approving it for publication was Snehal Gawande . to connect Distributed Generators(DGs) with the existing grid or within a microgrid. Most of the renewable energy resources are intermittent in nature [1], [2]. Thus, the energy produced is affected by environmental conditions like weather, temperature, sunlight, speed of the wind and humidity can affect its output. Therefore, storage devices VOLUME 11, 2023 This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4.0/ 28103 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications are required to make electricity available when there is less power generation than demand or the power generation is not possible [1]. The commonly used device for electrical energy storage is a battery, which has fixed cycles of chargedischarge. After these cycles, the performance of the batteries degrades and needs replacement. This problem is common in the system where photovoltaic generation occurs because sunlight is available only in the daytime. Thus, the energy has to be stored in order to provide uninterrupted power to the users at night e.g. in the case of thermal power plants connected to the grid reserve fossil fuels during the daytime when energy enters from solar panels, and at night the thermal power plant runs by using the fuels that were reserved in the daytime. The theme looks like the energy is stored in the grid indirectly during the daytime and used at night. Due to higher utilization, batteries need replacement which increases the maintenance cost of photovoltaic systems. The cost-effective solution for this problem is to supply the excessive energy to the grid and extract it again when needed, by doing this the requirements of storage devices like batteries can be minimized. The core component used for this purpose to transfer energy from distributed sources to the grid is called GCIs. Thus, the GCIs play an important role in the integration of distributed power sources. The GCIs are not much different from isolated inverters in circuit parameters, the main difference lies in their control and protection unit. Due to the increase in the utilization of renewable energy resources, the GCI is one of the hot areas of research. Currently, the research is focused on the efficiency and stability of inverters which is a challenging task. The grid itself to which GCIs are connected can be classified at a certain locality as strong or weak. The strength of a grid can be defined in two ways, grid impedance and short circuit ratio (SCR). The SCR is the ratio of the short circuit power at the point of common coupling (PCC) and the rated power of the inverter. When the SCR is below 10, the grid is weak. In the case when the SCR is above 20, the grid is strong [3], [4], [5]. Moreover, the grid impedance of a strong grid is considered zero while a weak grid has some considerable impedance. Some contemporary techniques have considered and tested for grid impedance up to 9mH [6] while in reference the inverter is tested up to 15mH [7]. The integration of GCIs with a weak grid becomes more challenging. The grid impedance of a weak grid varies due to parameters like distribution lines, line frequency transformer, distance from generation units, and short circuit ratio [3], [4], [5]. The inverter controller is designed by considering a dynamic model with the assumption that grid impedance does not vary but in practice, the impedance of weak grid varies [6], [8]. This variation can change the stability margins of the GCI which make the system at risk to become unstable. The research in this paper is focused on: GCI topology improvements, determining the stability of the connected GCI, and robust control techniques. In [9], the GCI is formulated in the form of a closedloop system which is used for the evaluation of stability. Moreover, it is found that the ratio of grid impedance and inverter output impedance must satisfy the Nyquist criteria of stability. In [10] further detail of impedance-based stability is discussed. The development of GCI occurs either in form of improvements in topology or in its controller. Both parts of GCI are of equal significance. Therefore, this research contributes to both domains by improving the power handling capability, stability, and THD of the entire system. The control unit of the GCI plays a vital role in the stability of the system. It usually performs three main functions: synchronization, current regulation, and harmonic compensation. The synchronization unit extracts the phase of the grid voltage and forwards it to the current controller. The extracted phase is further used in Direct-Quadrature-Zero (DQZ) transformation and reference generation. The current controller regulates the current and generates the current that is in phase with the grid voltage which results in active power transfer. The controller must be designed to inject pure sine wave currents even in the presence of grid harmonics but in most cases, the inverter controller can not minimize those harmonic and the inverter injects current polluted with low-order harmonics into the grid. Therefore, harmonic compensators are used in addition to the current controller to reduce these harmonics’ content in the grid current. In the weak grid, any increase in impedance boosts the voltage harmonics. These harmonics propagate through the phase lock loop (PLL) circuit and reach the control unit. Where it adds up to the grid current and increases the total harmonic distortion. In [7], PLL based on a second-order generalized integrator (SOGI) filter is used which helps to minimize the harmonic contents in the phase generated by PLL. Moreover, the controller used in PLL is Proportional Integral (PI) which is a synchronous frame controller and requires orthogonal signals for DQZ transformation. The SOGI filters also help in the generation of the required orthogonal signals. The PI controller is one of the suitable and commonly used current controllers for PWM due to its robustness and ease of implementation but the grid current is an AC signal which can not be controlled with the PI controller directly. Therefore, first, the current signal is converted to a synchronous frame using DQZ transformation and then a PI controller can be used. DQZ transformation converts the AC signal into DC form and after the processing by the PI controller, the controlled signal converts to AC form with the help of inverse DQZ transformation [11]. Additional feedback of capacitor current is also used to work as active damping and avoid resonance created by a capacitor of LCL filter [12]. Although PI control reduces the total harmonic distortion due to switching and dead time the low-order harmonics are still present. Therefore, additional PI controllers or Proportional Resonance (PR) are used as harmonic compensators. Each technique has its own pros and cons. The PI controllers are not appropriate for harmonic compensation because for a single harmonic two PI controllers in addition 28104 VOLUME 11, 2023 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications to the complexity of DQZ transformation are required [13]. Therefore, PI controllers are not recommended for this purpose. PR controllers are suitable compensators but they have narrow bandwidth. Therefore, even a small variation in grid frequency can affect their performance [14]. This problem of frequency variation can be fixed with the help of increasing the damping factor and using adaptive harmonic compensators [15]. The GCI is intrinsically a slow response system that produces many complications. The response time of the GCI can be improved with the help of voltage feedforward. In recent studies, voltage feedforward is considered an integrated part of GCI. Moreover, grid voltage feedforward minimizes the burden on the current controller and reduces the effect of sag and spike in grid voltage [16]. There are different techniques used for voltage feedforwards like proportional voltage feedforward, fundamental voltage feedforward, adaptive voltage feedforward [6] and full voltage feed-forward [17], [18] are some of the commonly used techniques. Although the voltage feedforward plays an important role in GCI but it reduces the stability margins of the inverter. Therefore, different techniques are proposed to overcome this limitation. The full voltage feedforward, proportional voltage feedforward, selective harmonic voltage feedforward, and fundamental voltage feedforward are the commonly used techniques for this purpose [18], [19]. In [20], it is found that fundamental voltage feedforward has more stability margin as compared to others. Therefore, fundamental voltage feedforward is used here. An inverter is the core part of a GCI and it is critical to select an appropriate inverter topology. Therefore, the inverters can be classified on the basis of different parameters to find the appropriate topology. On the basis of, power rating there are low, medium, and high power inverters like fly back, push-pull, and half-bridge inverters are used as low-cost and low-power inverters. The H-bridge inverters are used as medium power inverters and multilevel inverters are suitable to use in medium to high power applications. In a comparison of the H-bridge and multilevel inverters, the H-bridge inverters have the advantage of the minimum number of power electronic switches, but it requires filter components with higher values which compromises the advantage of the minimum number of power electronic switches. The increase in the values of filter components increases the cost, size, weight, and losses. Moreover, the minimum number of switches increases stress on the switches, thus it requires switches with a higher rating. Therefore, considering these constraints the smaller number of switches does not look promising [21], [22]. Instead of a full bridge inverter, the multilevel inverter produces a sine wave in stair form. Where each stair is encoded with pulse width modulation(PWM). Hence, the voltages across the switches producing PWM vary by a smaller value as compared to the zero and peak values in the case of the full bridge inverter. Due to this, the stress on power switches reduces and the transient response improves. There are many multilevel inverter topologies available in literature but clamped diodes, flying capacitors and cascaded multilevel inverters are the classical topologies [23], [24]. The other topologies are derived forms of these inverters. Each of these topologies has its own advantages and disadvantages. On the basis of better output waveform resolution, symmetry in the circuit, simple PWM, and reduced total harmonic distortion, the cascaded multilevel inverter is a good choice for GCI. Moreover, its structure is more suitable for photovoltaicbased power plants, therefore the cascaded multilevel inverter is considered suitable for the way forward for this research. The cascaded symmetrical multilevel inverter integrates multiple isolated sources to generate different levels in the output waveform. The requirement of isolated sources limits its usage. But in the case of PV panels as a source of energy, each panel or string of panels can be used as an isolated source which makes it useful. Another limitation of MLI is the requirement of many power switches. To minimize this limitation, many variants have been proposed to reduce the number of switches. Similarly, this research is focused on one such variant which uses a reduced number of switches. In [25] the author has proposed a reduced switch topology with an additional feature of equal voltage source sharing. This is further extended in this research, by proposing an adaptive hybrid frame controller to make it promising for weak grid-connected applications. The contributions of this research are: 1) Designed and controlled reduced switched cascaded multilevel inverter for grid-connected applications having the feature to utilize sources equally. 2) A hybrid Adaptive controller is implemented which is working in both, synchronous and stationary frames of references simultaneously for performance improvement. 3) The adaptive harmonic compensators are designed to minimize the effect of grid frequency and grid impedance variations on its performance and improve the robustness of the system. Moreover, this paper is arranged such as Section II is related to reduced switch cascaded MLI, Section III consists of mathematical modeling, Section IV explains the proposed hybrid control, Section Vdiscusses impedancebased stability, Section VI presents results and analysis, and Section VII consists of conclusion. Renewable energy resources can be connected to the AC grid in four possible configurations as given in Figure 1. The merits and demerits of each configuration are summarized in Table 1. Table 1shows that a multilevel inverter is a suitable solution. Because the DC sources can be used individually if required and they can be combined by using the multilevel inverter to connect them with the grid effectively. II. REDUCED SWITCH CASCADED MLI The reduced switch cascaded multilevel inverter as shown in Figure 2consists of two stages: stage 1 is a level synthesizing cell, while stage 2 consists of an H-bridge. The VOLUME 11, 2023 28105 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications FIGURE 1. The architecture of GCI. TABLE 1. The architecture of GCI. level synthesizing cells are used for generating levels and the H-Bridge is used for polarity inversion. Each synthesizing cell can generate two levels a positive and a negative level. Moreover, a single synthesizing cell consists of a discrete diode and a power electronic transistor packed with an antiparallel diode. The required number of switches Nsw, diodes Ndand isolated DC sources NDC can be calculated from (1), (2) and (3) respectively by using desired level of the inverter NL. Nsw =NL−1 2+4.(1) Nd=NL−1 2.(2) NDC =NL−1 2.(3) To demonstrate the working principle of the proposed design we have considered an arbitrary nine-level inverter as a case study shown in Figure 3. The number of control switches (power transistors) required in the nine-level inverter are eight and the discrete diodes are computed from (1) and (2). We have considered 4 dc sources Vdc1,Vdc2,Vdc3and Vdc4 of equal magnitude. Four switches are required in stage 1, namely S1,S2,S3and S4along with four diodes D1,D2, D3and D4, respectively while 4 switches in stage 2 denoted by A1,A2,A3and A4coupled with their respective antiparallel diodes. FIGURE 2. Reduced Switch Cascaded N-Level Inverter. FIGURE 3. Reduced Switch Cascaded 9-Level Inverter. A. PHASE DISPOSITION PWM AND EQUAL SOURCE SHARING PWM plays an important role in the control of any power electronic converter. The most common of these are available in [26]. Here, the phase disposition Pulse Width 28106 VOLUME 11, 2023 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications TABLE 2. The specification of level shifted carriers used in PDPWM. Modulation(PDPWM) technique is used which consists of level-shifted carriers with the same amplitude and phase [27]. The carriers of the PDPWM is described here by Ciwhich has a frequency ωc(the ωcis 1kHz in this section II-A for ease of demonstration while in the remaining sections, the ωcis 10kHz). The carriers can be defined as Ci=E((−1)f(i)yc(wc, ϕ)+i−N 2).(4) where, E is amplitude of a single triangular carrier, N is the number of levels, i=1, 2,..., N-1 and ycis a normalized symmetrical triangular carrier defined as yc(wc, ϕ)=(−1)[α]((αmod2) −1) +1 2.(5) where, ∝= wct+ϕ π.(6) The phase angle of ycis represented by ϕand mod represents the modulus function. The ycis a periodic function having the time period Tc=2π/ωc. For the PDPWM technique f(i)=0. On the basis of these assumptions and specifications the four carriers which are used here are summarised in Table2. Figure 4shows the classical PDPWM technique of multilevel inverter and the switching signals generated on the basis of classical PDPWM for the transistors of level enhancement cells. In Figure 5, the proposed modulation technique is presented along with pseudocode which makes the utilization of sources on an equal basis. It is shown in Figure 5b that in the positive half cycle, the utilization of source 1 to source 4 is decreasing while in the negative half cycle, the utilization of source 4 to source 1 is decreasing. The switching signals for the corresponding switches of level enhancement cells are given in Figure 5b. To minimize the energy losses in the transistor switches PWM signal is applied to any one transistor in the track of the ON transistors at the same time and the remaining transistors of the same path will just be kept ON. Similarly, zero is applied to the rest of the transistors to keep them OFF at the meanwhile. This pattern of switching technique is explained with the help of Table 3. On the basis of the modulation technique given in Figure 4 the generated output of the inverter is given in Figure 6a. FIGURE 4. The PDPWM for 9-Level GCI (a) Multi carriers and reference signal (b) Gate signal generated by conventional PDPWM. FIGURE 5. The PDPWM for 9-Level GCI for equal sources sharing (a) Modulation based on proposed pseudocode (b) gate signals generated for equal source sharing. Similarly, the switching patterns for S1to S4are generated on the basis of the modulation technique given in Figure 5 VOLUME 11, 2023 28107 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications TABLE 3. Gate signals for of switches used in nine level inverter. FIGURE 6. Output wave form of 9 level inverter (a) Conventional (b) Equal voltage source sharing. and the resulting output of the 9-level inverter is given in Figure 6b. III. SYSTEM MODELING The proposed model of the system is shown as a block diagram in Figure 7. Here the single-phase grid is considered as mostly residential consumers are connected with a single phase. The model can be extended to a 3-phase inverter with minor modifications. The blocks of the proposed GCI system model consist of i) Multilevel inverter, ii) inductor-capacitorinductor (LCL) filter, iii) Control unit which further consists of a current regulator and harmonic compensator, iv) Pulse width modulator, v) A weak grid (represented by Thevinen circuit of an impedance along with a voltage source) at the FIGURE 7. Multilevel(9-Level) weak GCI model. FIGURE 8. The proposed average switch control model of GCI. point of common coupling, vi) A PLL used for the phase detection of grid voltage to generate reference current and frequency for the adaptive harmonic compensators and vii) an extra loop is used for active damping. IV. PROPOSED HYBRID CONTROL The average switch control model of the proposed inverter is given in Figure 8. Based on the functionality of the systems blocks can be divided into two parts as: Area A consists of grid, inverter, LCL filter, modulator, active damping loop, voltage feedforward loop and feedback current controller designed in a synchronous frame of reference. Area B represents the adaptive harmonic compensator working in the stationary reference frame and adaptive notch filter. The important parts of the average model are elaborated in the below subsections. A. SYNCHRONIZATION The inverters output current igmust be synchronized with grids voltage Vgfor injecting active power within the grid. Here, PLL is used to estimate the phase and frequency of grid voltage Vg. The PLL used here uses a synchronous frame controller, which needs direct-quadrature-zero (DQZ) transformation of AC signal but DQZ transformation of single phase system cannot be implemented directly like in the threephase system. In a single-phase system orthogonal signals 28108 VOLUME 11, 2023 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications TABLE 4. Symbols, description and values of system parameters. FIGURE 9. PLL block diagram for extraction of phase and frequency of Vg along with SOGI-based orthogonal signal generator. are required for DQZ transformation which are generated by SOGI-based orthogonal signal generation method. The transfer function of SOGI filters used here are given in (7) and (8). The Gpllαgiven in (7) remove high order harmonics and noise from Vgand allow Vαat the output and Gpllβgiven in (8) removes high order harmonic as well as produces a delay of 90oin Vgto make it orthogonal to Vα. The orthogonal signals generated are converted from stationary reference frame to synchronous reference frame by using DQZ transformation which produces Vdand Vqas given in Figure 9. Now, by using PLL technique fg,iref and ωpll can be extracted. Gpllα=kpllωpll s s2+kpllwplls+(ωpll )2.(7) Gpllβ= kpllω2 pll s2+kpllwplls+(ωpll )2.(8) There are other advanced techniques that can be used to improve the synchronization of the GCI with grid voltage, some of the latest are [28], [29], [30], and [31]. The focus of this research is on designing an adaptive harmonic compensator for multilevel GCIs therefore an existing PLL technique is implemented in [7] is used in this research to evaluate the performance of the proposed technique. B. CURRENT REGULATOR The current regulator is used to control injected power into the grid. The controller used here is the PI controller, and its transfer function is given in (9). The injected current within the grid is AC, if the PI controller is implemented to control the AC waveform it has reduced bandwidth and can become unstable. This issue can be overcome by converting the AC signal from a stationary reference frame to its corresponding synchronous frame as discussed in subsection IV-A. Where, the AC signal is converted into its corresponding DC, for this purpose, a DQZ transformation is used here. The orthogonal signal generators are again required like in subsection IV-A to convert a single phase current signal to two orthogonal signals but the same technique orthogonal signal generation is not appropriate here because the removal of harmonic from the input signal is not desired here. Therefore, the grid current igis considered as iαas given in (10) and the other signal iβ is produced by passing the grid current igthrough two low pass filters with a phase lag of 45◦per filter as given in (11). Then, with the help of Park transformation, the orthogonal signals are converted into their corresponding DC form Id and Iqwhich is given (12). The Idand Iqand are subtracted from their respective reference signals and the error signals are generated. Both of the error signals of the D-axis and Q-axis are passed through PI controller which is expressed in (13) and (14) respectively. The inverse Park transform is used to convert the controlled signals to their respective orthogonal signals in (17). This whole process of current control is described in a simplified form in Figure 10. Gc(s)=Kp+Ki s.(9) iα(s)=ig(s).(10) iβ(s)=(ig(s)) 1 1+Ts.(11) Id Iq=coswt sinwt −sinwt coswtiα iβ.(12) Vcd (s)=(I∗ d−Id)Gc(s).(13) Vcq(s)=(I∗ q−Iq)Gc(s).(14) Vinv_d=Vcd (s)−Iq(ω0(L1+L2)) +Vgd .(15) Vinv_q=Vcq(s)−Id(ω0(L1+L2)) +Vgq.(16) Vinv_α Vinv_β=coswt −sinwt sinwt coswt Vinv_d Vinv_q.(17) The desired values of Kpand Kiare selected with the help of the MATLAB SISO tool, which is listed in Table 4. C. ADAPTIVE HARMONIC COMPENSATORS The harmonic compensators are used to minimize the harmonics contents in the current feeding into the grid. The reduction of harmonics in grid current enhances the performance and increases the stability of the GCIs. The grid impedance variation changes the harmonics content in the grid current. Therefore, harmonics compensators are helpful to provide robustness against the variation of grid impedance. VOLUME 11, 2023 28109 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications FIGURE 10. Block diagram of synchronous frame current regulator along with DQZ and inverse DQZ transformation. The synchronous reference frame compensator uses two controllers for each harmonic. Hence, for four harmonics eight controllers are required but instead of synchronous only four stationary reference frame controllers are required. Therefore, the resonant controllers selected here for this purpose are stationary frame controllers. The controllers estimate the harmonic frequencies present within the grid and mitigate them. The realization of the controller in a digital domain is complex due to which its usage is limited. This limitation is overcome by adding a damping factor which not only makes it realizable but also increases its bandwidth. The advantage of the broad bandwidth is that controllers can estimate harmonics even if there exist small variations in fundamental and harmonic frequencies. The limitation of broader bandwidth is that contents of fundamental can also pass through the filters because the magnitude of the fundamental signal is very large as compared to the harmonics. To overcome this, and stop the fundamental signal contents from entering to the resonant filters a notch filter is used here. The notch filter has a very narrow bandwidth and is difficult to realize therefore a damping factor is also added to the notch filter to increase its bandwidth for realization. Both filters with relatively larger bandwidths perform well within very slight variations in frequencies of the grid. But in the case of little larger frequency variations, the performance of these filters significantly degrades and sometimes produces adverse effects. The notch filter transfer function Gno is given in (18) and the transfer function of resonant filters Grn is given in (19). Both of these filters are cascaded with gain KRto form a fixed value harmonic compensator GRwhich is given in (20). The first four odd harmonic compensators are shown in area B of Figure 8. Gno =s2+0s+ω2 o s2+kons+ω2 o .(18) Grn =kor ωos s2+kor wos+(nωo)2.(19) GR=KRGno n X i=3 Gri.(20) where iis an odd integer starting from 3. In this research, to fix this problem of limitation that fix frequency harmonic compensator can not properly work when there is a variation in grid frequency, the fixed valued notch and resonant filters are replaced with adaptive filters. Sometimes, a larger variation occurs in grid frequency due to rapid variations in load or generating stations. In such conditions, the performance of the fixed value compensator degrades or produces some adverse effects. In this research, this limitation is overcome by designing adaptive filters. Although the bandwidths of the adaptive filters to estimate harmonics are the same as that of fixed value filters, but the adaptive filters tune themselves to the frequencies of the harmonics. Therefore, it is found that the variation in the fundamental frequency has a minor effect on the performance of compensators. The designed adaptive filters adapt themselves according to frequency estimated by PLL. The block diagrams of the adaptive compensators are given in Figure 11(a) and (b). The transfer functions of the filter are given in (21) and (22). These adaptive filters are cascaded with the gain KRand work as adaptive harmonic compensators as given in (23). Gnoad = s2+ω2 pll s2+kons+ω2 pll .(21) Grnad =kor ωos s2+kor wos+(nωpll)2.(22) GRad =KRGnoad n X i=3 Griad .(23) where iis an odd integer starting from 3. Figure 11(c) shows the frequency response of adaptive resonance compensators and notch filter against the grid frequencies of 49Hz, 50Hz or 51Hz labeled as blue, black and red respectively. Thus, every adaptive harmonic compensator work according to the grid frequency and set the cutoff values of its filter such that low-order odd harmonics lies in the bandwidth of its corresponding compensator. This phenomenon is explained with the help of Figure 11 which shows that the performance of the harmonic compensator depends on the grid frequency that is if the grid frequency is 51Hz then the frequency of the 9th odd harmonic is 459Hz. Thus, in the case of fixed values harmonic compensators the resonance filter will not pass the harmonic but in the case of adaptive, it will pass through the filter as the response of Figure 11 shows the result. There in the case of frequency variation fixed valued harmonic compensator devalues its performance, and a larger variation can make it unstable. The harmonic compensator takes frequency as the input from PLL continuously. The adaptive notch filter is playing an important role to minimize the content of grid frequency in the output signal of the adaptive resonant filters. The notch filter blocks the grid frequency to enter into the resonant filter as shown in Figure 11(a). The results of Figure 12 show the notch filter has a significant role to improve the result. 28110 VOLUME 11, 2023 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications FIGURE 11. Adaptive resonance harmonic compensator (a) Adaptive notch filter (b) Adaptive resonance filter (c) Frequency response of adaptive harmonic compensator for 49Hz, 50Hz and 51Hz. D. PARAMETERS SELECTION OF CURRENT CONTROLLER AND HARMONIC COMPENSATOR To find the appropriate parameters of the current controller and harmonic compensator for the desired stability margin (gain margin −3 to −5 dB and phase margin 30◦to 60◦), the open loop gain (24), as shown at the bottom of the page, is derived from the proposed system given in Figure 8by using block reduction method. The values of parameters are extracted with the help of Bode Plot and MATLAB SISO Tool and listed in Table 4. The Bode plots of the open loop gain is given in Figure 13 by using the parameters given in Table 4. The responses are for three different values of grid impedance 5mH, 10mH, and 15mH. The results show that the minimum phase margin and gain margin are 3dB and 50◦respectively. The Ghin (24) is given in (25): Gh=kωos s2+kωos+ω2 o .(25) FIGURE 12. Impact of adaptive notch filter (a) 3rd harmonic without notch filter (b) 3rd harmonic with notch filter. FIGURE 13. The open loop gain of the proposed system. V. IMPEDANCE-BASED STABILITY The stability of the whole system is tested with the help of the impedance-based stability method. The proposed system given in Figure 7is divided into two equivalent subsystems the inverter side is represented in Norton form and the grid along with grid impedance is represented in Thevenin form as given in Figure 14. The network of Figure 14 can be solved with the help of the superposition theorem to find the grid current given in Gig iref =Gckpwm s3L1L2C1+s2L1ZgC1+s2L2C1kckpwm +sZgC1kckpwm +sL1+sL2+Zg−ZgGfGhkpwm +kpwmKrGPR (24) VOLUME 11, 2023 28111 T. Muhammad et al.: Adaptive Hybrid Control of Reduced Switch Multilevel Grid Connected Inverter for Weak Grid Applications ADNAN UMAR KHAN received the B.B. degree in electrical and electronic engineering from Eastern Mediterranean University, Cyprus, in 1994, the M.S. degree in communication systems from the University of Portsmouth, U.K., in 1995, and the Ph.D. degree from De Montfort University, U.K. He is currently an Assistant Professor with the Department of Electrical Engineering, International Islamic University Islamabad, Pakistan. YOUSRA ABID received the B.S. degree in electronic engineering from International Islamic University Islamabad, in 2018, and the M.S. degree in electrical engineering from Air University, Islamabad, in 2021. She is currently pursuing the Ph.D. degree with the Centre for Advance Electronics and Photovoltaic Engineering on the Pakistan–U.K. mutual project for energy harvesting and storage at International Islamic University Islamabad. Her research interest includes power electronic converters. MUHAMMAD HILAL KHAN received the B.Sc. degree in electrical engineering from the University of Engineering and Technology, Peshawar, in 2007, the M.Sc. degree in electrical engineering from the University of Engineering and Technology, Taxila, in 2012, and the Ph.D. degree in electrical engineering from the CECOS University of IT and Emerging Sciences, Peshawar, in 2021. His research interests include renewable energy, microgrid, smart grids, power electronic applications in power systems, and smart transformers. NASIM ULLAH received the B.Sc. degree in electrical engineering from the University of Engineering and Technology, Peshawar, in 2004, and the Ph.D. degree in mechatronics engineering from Beihang University, Beijing, China, in 2013. He is currently a Professor with the Electrical Engineering Department, Taif University, Saudi Arabia. His research interests include renewable energy, microgrid, smart grids, power electronic applications in power systems, smart transformers, robotics, and flight control systems. He has completed several research projects funded by the Deanship of Scientific Research, Taif University, and the Ministry of Education, Saudi Arabia, as a Principal Investigator (PI). He has authored/coauthored more than 200 research articles in peer-review journals and contributed several book chapters. VOJTECH BLAZEK was born in the Czech Republic, in 1991. He received the Ing. degree from the Department of Electrical Engineering, VSB—Technical University of Ostrava, in 2016, where he is currently pursuing the internal doctoral student degree. He is currently a Junior Researcher with the research Centre ENET—Energy Units for Utilization of Non-Traditional Energy Sources. His current work includes developing modern and green technologies in off-grid systems with vehicle-to-home technologies. LUKAS PROKOP graduated (Ing.) in electrical power engineering from FEEC Brno. He was an Associate Professor with FEI TU Ostrava. He is currently engaged in renewable energy sources, modern technologies, and methods in electrical power engineering and electrical measurements. He is a research team member of Czech and international research projects. He serves as the Deputy Head for the ENET Research Centre. STANISLAV MISÁK was born in the Czech Republic, in 1978. He received the Ing. and Ph.D. degrees from the Department of Electrical Engineering, VSB—Technical University of Ostrava, in 2003 and 2007, respectively. He is currently a Professor and the CEO of the Research Centre ENET and the Centre for Energy and Environmental Technologies. He holds a patent for a fault detector for medium-voltage power lines. His current work includes the implementation of smart grid technologies using prediction models and bio-inspired methods. 28118 VOLUME 11, 2023