1 Introduction

The multilevel inverters (MLIs) has emerged as an enabling technology for the conversion of power. It has been broadly examined for its wide range of low-, medium-, and high-power applications. As inherent advantages of improved power quality, lower voltage stress, improved efficiency, and high modularity, etc., are the key factor for growth and increasing demand of MLIs in industries, electric vehicles, high-frequency AC power distribution systems, and renewable power generation [1, 22, 25]. Conventional types of a multilevel inverter are categorized into three following categories, i.e., neutral point clamped (NPC) [14], flying capacitor (FC) [9], and cascade H-bridge (CHB) [13]. For producing a large number of levels, NPC topology needs more diodes and power switches. Additionally, there is a problem of unbalancing capacitors voltage in NPC topology [6]. Similar to FC topology, more capacitors are used to produce more levels leading to higher cost of the system. In comparison with NPC and FC, there is no use of clamping diode in CHB, and voltage stress is also very low. Though, in CHB, numerous independent power supplies are required [5]. In a general MLI with self-balancing voltage ability, capacitor voltage can be balanced without any additional circuit [16]. FC and NPC can be deduced from this general purpose MLI but this structure requires too many power devices. Additionally, many researchers projected a variety of new and advanced topologies to create more voltage levels. In [20] and [19], researchers move toward the topology of the T-type and E-type back-to-back converter which uses uneven DC source. In [2] and [3], a cascaded multilevel inverter with a reduced number of power switches is projected. Due to the cascade structure, it uses more DC source. To overcome this problem and to produce more levels with reduction in total harmonic distortion (THD), a conventional MLI-based series of hybrid MLI with fault-tolerant capability was developed [8, 15]. In the case of active NPC, hybrid inverter combines toughness of NPC and the adaptability of FC [4]. A five-level inverter topology integrating FC with a H-bridge was developed to reduce the total standing voltage (TSV) [18]. To overcome the problem of inherent balancing of capacitors, switched capacitors MLI (SCMLI) topologies have gained more attention in recent years. These topologies solved the problem of unbalancing capacitor voltage and has ability to produce a higher number of voltage levels with only a single voltage source. In [10], switched capacitor topology was proposed with voltage stress equal to DC input voltage but with an increasing number of power switches and gate drivers. A two-stage structure SCMLI with front end as switched capacitors and back end as H-bridge having high voltage stress and TSV was proposed [7]. In [23], a SCMLI was proposed, limiting its application due to more power switches and gate drivers. Topologies with less power switches, having two voltage sources and large voltage stress across switches, are presented [17]. The SCMLI in [11, 21, 24] has low voltage stress, but cost function (CF) increases with device count.

In the literature described above, the topologies have disadvantages, namely high PIV on power switches, unbalancing of capacitors, high number of power switches, and multiple DC source. To overcome all these disadvantages, a novel SCMLI topology is presented in this paper, having the following features:

  1. 1.

    The voltage stress across the power switches has a maximum value of \(V_\mathrm{DC}\).

  2. 2.

    Ability to generate seven-level output voltage with the help of nine switches.

  3. 3.

    Single DC source/DC link is used for single-phase and three-phase topologies.

  4. 4.

    All capacitors are self-balanced by using proper switching states.

  5. 5.

    Low value of CF owing to reduced device count.

The paper is organized into seven sections: Section 2 outlines the description of topology and modes of operation. The modulation technique is presented in Section 3. In Section 4, the ratings of components and design of capacitors are discussed. A comparative analysis with other SCMLI to validate the advantage of the proposed topology is presented in Section 5. Simulation and experimental results of the proposed SCMLI are presented in Section 6. Lastly, closed-loop control of proposed inverter is presented in Section 7

2 Description of topology

2.1 Circuit Topology

The structure of the proposed seven-level inverter is shown in Fig. 1. It has nine power switches and four capacitors. Each power switch in this topology consists of a transistor (MOSFET) with an anti-parallel diode. The output voltage is labeled as \(V_{ao}\). The DC link consists of two parallel-connected capacitors \(C_{1}\) and \(C_{2}\) whose voltages are rated at half of the DC voltage. Input voltage is obtained from the PV panel which is \(V_\mathrm{DC}\). One DC source is sufficient to produce seven level of voltages \((0, \pm 0.5 V_\mathrm{DC}, \pm V_\mathrm{DC}, \pm 1.5V_\mathrm{DC})\).

Fig. 1
figure 1

Schematic circuit of proposed seven-level inverter

2.2 Modes of Operations

All the valid operating states for the proposed seven-level inverter are shown in Fig. 2. The path through which capacitors are charged is shown in red, and the load current path is shown in blue. Table 1 represents the switching states of the proposed topology in which ‘1’ and ‘0’ represent the ON and OFF operation of power switches in particular state. Switching states of \(S_{1a}=S_{5a}, S_{2a}=S_{4a}\) and \(S_{7a}=S_{8a}\). Capacitors states of capacitors (\(C_{1a}, C_{2a}\)) are represented by ‘C’ (charging state), ‘D’ (discharging state), and ‘-’ (idle state). The states are described below.

Table 1 Switching states of the proposed topology
Fig. 2
figure 2

Different states of the proposed seven-level inverter a 0, b 0.5\(V_\mathrm{DC}\), c \(V_\mathrm{DC}\), d \(1.5V_\mathrm{DC}\), e \(-0.5V_\mathrm{DC}\), f \(-V_\mathrm{DC}\), g \(-1.5V_\mathrm{DC}\)

Fig. 3
figure 3

Reference and carrier waveforms to modulate the proposed seven-level inverter

  1. 1.

    State \( \lambda _{1} \)&\( \lambda _{5}\): In this state, the output voltage \(V_{ao}=0\) with continuous conduction of power switches \(S_{1a}, S_{2a}, S_{4a}, S_{5a}, S_{7a}\), and \(S_{8a}\), while power switches \(S_{3a}, S_{6a}\), and \(S_{9a}\) are OFF. As a result, the capacitors \(C_{1}, C_{2}, C_{1a}\), and \(C_{2a}\) are parallel with the DC source and hence get charged to voltage 0.5\(V_\mathrm{DC}\) as shown in Fig. 2a.

  2. 2.

    State \(\lambda _{2}\): In this state, with continuous conduction of power switches \(S_{1a}, S_{2a}, S_{4a}, S_{5a}\), and \(S_{6a}\), while power switches \(S_{3a}, S_{7a}, S_{8a}\), and \(S_{9a}\) are OFF, the output voltage of \(V_{ao}=V_\mathrm{C1}=0.5V_\mathrm{DC}\) is obtained. As a result, the capacitors \(C_{1}, C_{2}, C_{1a}\), and \(C_{2a}\) are parallel with the DC source and hence get charge to voltage \(0.5V_\mathrm{DC}\) as shown in Fig. 2b.

  3. 3.

    State \(\lambda _{3}\): In this state, with continuous conduction of power switches \(S_{1a},S_{3a}, S_{5a}, S_{7a}\), and \(S_{8a}\), while power switches \(S_{2a}, S_{4a}, S_{6a}\), and \(S_{9a}\) are OFF. Thus, the output voltage is \(V_{ao}=V_{C1}+V_{C2a}=V_\mathrm{DC}\) as shown in Fig. 2c.

  4. 4.

    State \(\lambda _{4}\): In this state, with continuous conduction of power switches \(S_{1a}, S_{3a}, S_{5a}\), and \(S_{6a}\), while power switches \(S_{2a}, S_{4a}, S_{7a}, S_{8a}\), and \(S_{9a}\) are OFF. As a result, the output voltage is \(V_{ao}=V_{C1}+V_{C1a}+V_{C2a}= 1.5V_\mathrm{DC}\) as shown in Fig. 2d.

  5. 5.

    State \(\lambda _{6}\): In this state, with continuous conduction of power switches \(S_{1a}, S_{2a}, S_{4a},S_{5a}\), and \(S_{9a}\), while power switches \(S_{3a}, S_{6a}, S_{7a}\), and \(S_{8a}\) are OFF. As a result, the output voltage is \(V_{ao}=-V_{C2}= -0.5V_\mathrm{DC}\) as shown in Fig. 2e.

  6. 6.

    State \(\lambda _{7}\): In this state, with continuous conduction of power switches \(S_{2a}, S_{3a}, S_{4a}, S_{7a}\), and \(S_{8a}\), while power switches \(S_{1a}, S_{5a}, S_{6a}\), and \(S_{9a}\) are OFF. As a result, the output voltage is \(V_{ao}=-V_{C2}-V_{C1a}=-V_\mathrm{DC}\) as shown in Fig. 2f.

  7. 7.

    State \(\lambda _{8}\): In this state, with continuous conduction of power switches \(S_{2a}, S_{3a}, S_{4a}\), and \(S_{9a}\) while power switches \(S_{1a}, S_{5a}, S_{6a}, S_{7a}\), and \(S_{8a}\) are OFF. As a result, the output voltage is \(V_{ao}=-V_{C2}-V_{C1a}-V_{C2a}= -1.5V_\mathrm{DC}\) as shown in Fig. 2g.

3 Modulation strategy

Various methods are used for modulation of multilevel inverters, namely high-switching-frequency methods [9] and low-switching-frequency methods. The proposed topology can be modulated with any of these methods with an appropriate alteration. This topology is modulated by using level-shifted pulse width modulation (LSPWM) technique as shown in Fig. 3. In this scheme, triangular carrier signals are used to compare with sinusoidal reference signal and resultant pulse signals are used to provide switching to the power devices corresponding to the particular voltage level. As shown in Fig. 3, three carrier waveforms \(V_{\mathrm{cr}j}\) (\(j = 1\) to 3) of the same frequency (\(f_\mathrm{cr}\)), phase, and peak-to-peak value (\(A_\mathrm{cr}\)) are used for carriers. A sinusoidal waveform (\(V_\mathrm{ref}\)) having amplitude (\(A_\mathrm{ref}\)) and frequency (\(f_\mathrm{ref}\)) are taken as the reference signal, and its absolute value \(|V_\mathrm{ref}| \) is compared with the carriers. Therefore, modulation index (M) is denoted as:

$$\begin{aligned} {M}=\frac{{A}_\mathrm{ref}}{3 \times {A}_\mathrm{cr}} \end{aligned}$$
(1)

where \( {A}_\mathrm{cr} \) and \( {A}_\mathrm{ref} \) are amplitude of the carrier and reference waveform, respectively.

Fig. 4
figure 4

Logic gates-based implementation of modulation scheme

Various operating states are shown in Fig. 3 for the complete power cycle, i.e., during \(0\le ~\omega t~\le 2\pi \). It can be seen that during \(0\le ~\omega t~\le \pi \) interval, \({V}_\mathrm{cr1} \) is compared with \(|V_\mathrm{ref}|\), the estimated voltage levels are (\(0, 0.5V_\mathrm{DC}\)) which are obtained by imposing gate signals for states (\( \lambda _{1} , \lambda _{2}\)). In the same way, when \({V}_\mathrm{cr2} \) and \({V}_\mathrm{cr3}\) are compared with \(|V_\mathrm{ref}|\), the estimated levels during \(0\le ~\omega t~\le ~\pi \) are (\(0.5V_\mathrm{DC}, V_\mathrm{DC}\)) and (\(V_\mathrm{DC}, 1.5V_\mathrm{DC}\)) which are obtained by imposing gate signals for states (\(\lambda _{2} , \lambda _{3}\)) and (\( \lambda _{3} , \lambda _{4}\)). For the other half cycle, i.e., during \(\pi \le ~\omega t~\le ~2\pi \), the states for the negative half cycle are to be enacted and zero levels are obtained by the state \( \lambda _{5}\). Therefore, for \(\pi \le ~\omega t~\le ~2\pi \), when \({V}_\mathrm{cr1} , {V}_\mathrm{cr2} \), and \({V}_\mathrm{cr3} \) are compared with \(|V_\mathrm{ref}|\), the estimated levels are (0, \(-0.5V_\mathrm{DC}\)), (\(-0.5V_\mathrm{DC}, -V_\mathrm{DC}\)) and (\(-V_\mathrm{DC}, -1.5V_\mathrm{DC}\)) which are obtained by imposing gate signals for states (\( \lambda _{5} , \lambda _{6}\)), (\( \lambda _{6} , \lambda _{7}\)) and (\( \lambda _{7} , \lambda _{8}\)). Based on the abovementioned description, the execution of the state-selection logic is given in Fig. 4, in which gate signals for specific states are first obtained, and finally fed to OR gates for obtaining respective firing pulses for each power switch.

Table 2 PIV of power switches

4 Ratings of components and designing of capacitors

4.1 Voltage and Current Rating

PIV for the power switches in the proposed topology is shown in Table 2. The PIV rating of switches \(S_{7a}\) and \(S_{8a}\) is \(\approx \,34\%\) of the operating voltage and for remaining switches, it is \( \approx \,67\% \) of the operating voltage.

Besides, the minimum current ratings of power switches are shown in Table 3. Four power switches (\( S_{6a} , S_{7a}, S_{8a} \), and \( S_{9a} \)) need to carry only the load current (\( {I}_\mathrm{ac} \)), and hence they should be rated at least at the value equal to the amplitude of the load current (\( {I}_\mathrm{ac} \)). Considering, unity factor load case with power ratings equal to \(P_{r}, {I}_\mathrm{ac} \) can be calculated as:

$$\begin{aligned} {I}_\mathrm{ac} = \frac{\sqrt{2}\times P_{r}}{1.5\times {M}\times {V}_\mathrm{DC}} \end{aligned}$$
(2)

where M is modulation index defined in Eq. (1)

Table 3 Current through power switches

The switches \( S_{1a} , S_{2a} , S_{4a} \), and \( S_{5a} \) need to carry two currents, the load current (\( {I}_\mathrm{ac} \)) and the charging current (\( I_\mathrm{C} \)) for the capacitors \( C_{1a} \) and \( C_{2a}\), and hence it should be rated at least equal to the sum of their peak values. The path for \( I_\mathrm{C} \) is shown in Fig. 5, and it can be calculated as:

Fig. 5
figure 5

Charging path for capacitors \(C_{1a}\) and \(C_{2a}\)

$$\begin{aligned} I_\mathrm{C} = \left( \frac{V_\mathrm{eq}}{R_\mathrm{eq}}\right) \times \exp \left( - \frac{t}{R_\mathrm{eq}\times \frac{C_{1a}\times C_{2a}}{C_{1a}+C_{2a}}}\right) \end{aligned}$$
(3)

where

$$\begin{aligned}&V_\mathrm{eq} = {V}_\mathrm{DC} - {V}_{D4a} - {V}_{C1a}- {V}_{D5a} - {V}_{C2a}\nonumber \\&R_\mathrm{eq} = r_{D4a} + r_{D5a} + r_{S_{1a}} + r_{S_{2a}} + R_{\mathrm{ESR}_{C1aC2a}} \end{aligned}$$
(4)

Therefore, \(V_{D4a}\) and \(V_{D5a}\) are the on-state voltage drops across the diodes of switches \(S_{4a}\) and \(S_{5a}\), respectively. \(V_{C1a}\) and \(V_{C2a}\) are the voltages across capacitors \(C_{1a}\) and \(C_{2a}\), respectively. \(r_{D4a}, r_{D5a}, r_{S1a}\), and \(r_{S2a}\) are the respective on-state resistances of the diode \(S_{4a}\), the diode of \(S_{5a}\), transistor part of \(S_{1a}\), and transistor part of \(S_{2a}\), and \(R_{\mathrm{ESR}_{C1aC2a}}\) is the equivalent series resistance (ESR) of the series combination of \(C_{1a}\) and \(C_{2a}\).

Table 4 Comparison of proposed topology with other seven-level topologies

4.2 Designing of Capacitors

Two capacitors \(C_{1a}\) and \(C_{2a}\) are maintained at \(0.5V_\mathrm{DC}\) each in the proposed inverter by using the principle of switched capacitor technique. Ripples that appear on them should not be more than 10% of the desired capacitors voltage when they discharge from supply to load [12]. The voltage ripple across the capacitors is determined by discharging time and the current across the load. The worst situation is when a load is purely resistive [7]. In capacitors \(C_{1a}\) and \(C_{2a}\), continuous maximum discharging happens in interval \( \theta _{1} \) to \( \pi -\theta _{1} \) in the positive and negative cycle when obtaining continuously output voltage levels of \(+V_\mathrm{DC}, +1.5V_\mathrm{DC}\), and \(-V_\mathrm{DC}, -1.5V_\mathrm{DC}\) as shown in Fig. 6. The maximum discharge for resistive load \(R_\mathrm{L}\) can be described as:

Fig. 6
figure 6

Ripple voltage across capacitor \(C_{2a}\)

For \(C_{1a}\),

$$\begin{aligned}&\Delta Q_{C1a} = C_{1a}\times \Delta {V}_{C1a} \nonumber \\&= \int _{\frac{\theta _{1}}{\omega }}^{\frac{\theta _{2}}{\omega }} \frac{{V}_\mathrm{DC}}{R_\mathrm{L}}\,dt + \int _{\frac{\theta _{2}}{\omega }}^{\frac{\pi -\theta _{2}}{\omega }} \frac{1.5{V}_\mathrm{DC}}{R_\mathrm{L}}\,dt + \int _{\frac{\pi -\theta _{2}}{\omega }}^{\frac{\pi -\theta _{1}}{\omega }} \frac{{V}_\mathrm{DC}}{R_\mathrm{L}}\,dt \end{aligned}$$
(5)

By solving this

$$\begin{aligned}&\Delta Q_{C1a} = \frac{{V}_\mathrm{DC}}{\omega \times R_\mathrm{L}} \times (1.5\pi -2\theta _{1} -\theta _{2}) \end{aligned}$$
(6)

And, Figure 3 shows that

$$\begin{aligned}&\theta _{1} = \sin ^{-1}\left( \frac{1}{3{M}}\right) \end{aligned}$$
(7)
$$\begin{aligned}&\theta _{2} = \sin ^{-1}\left( \frac{2}{3{M}}\right) \end{aligned}$$
(8)

With a maximum allowed voltage ripple of 10%, we have:

$$\begin{aligned}&\frac{100\Delta {V}_{C1a}}{0.5{V}_\mathrm{DC}}\le 10 \end{aligned}$$
(9)

Using these equations, we have:

$$\begin{aligned} C_{1a} \ge&\frac{20}{2\pi \times f\times R_\mathrm{L}} \Bigl [1.5\pi - 2\sin ^{-1}\left( \frac{1}{3{M}}\right) \nonumber \\&- \sin ^{-1}\left( \frac{2}{3{M}}\right) \Bigr ] \end{aligned}$$
(10)

A similar analysis for \( C_{2a} \) would show that it is equal to \( C_{1a} \), i.e.,

$$\begin{aligned} C_{1a} = C_{2a} \end{aligned}$$
(11)

5 Comparison with other topologies

Switched capacitor-based multilevel inverter topology offers a high voltage gain and self-balancing capability, whereas conventional topology like cascade H-bridge, diode clamped and flying capacitor offers a unity voltage gain but requires multiple DC source, more number of components which leads to increase in cost function. A proposed seven-level topology is compared with other recent seven-level topologies. The components for comparison are the number of levels (\(N_\mathrm{L}\)), number of power switches (\(N_\mathrm{S}\)), number of gate drivers (\(N_\mathrm{GD}\)), number of isolated source (\(N_\mathrm{IS}\)), number of diodes (\(N_\mathrm{D}\)), number of capacitors (\(N_\mathrm{C}\)), PIV, TSV, and cost function (CF). Table 4 presented in this section summarized the comparative study of the proposed topology. Equal importance has been given to all the parameters, while calculating CF which is further defined as:

$$\begin{aligned} \text {CF} = \left( {N_\mathrm{S} + N_\mathrm{GD} + N_\mathrm{D} + N_\mathrm{C} + \frac{\alpha \times TSV}{\beta }}\right) \times \left( \frac{N_\mathrm{IS}}{N_\mathrm{L}}\right) \nonumber \\ \end{aligned}$$
(12)

where \(\alpha \) is the weighing factor for assigning weightage to TSV in comparison with the component count and \(\beta \) is the voltage gain. Higher voltage gain reduces the requirement of any boosting circuit; however, it may lead to higher PIVs across the switches. As shown in Table 4, [7] has higher PIV and CF compared to the proposed topology. The topology proposed in [17] has less number of switches; however, it requires multiple DC source and power diodes. Although the topologies of [11, 21, 24] have a lower number of capacitors than the proposed one; however, these topologies have high TSV and high CF. From the resultant CF shown in Table 4, the proposed topology gives the less CF as compared to other topologies which implies that the proposed topology has better structural features.

6 Experimental Verification

The simulation results of the proposed seven-level inverter are taken in the MATLAB/SIMULINK to validate its practicability. In Table 5, simulation parameters are described. Modulation index M is set to 0.85. Figure 7 presents the voltage and current output waveforms with a resistive load of 500 \(\Omega \). Figure 8 presents the voltage and current output waveforms under R–L load of 50 \(\Omega \) and 120 mH. The proposed topology can generate seven levels with the amplitude of output voltage being 150V, and amplitude of output current changes with respect to change in load.

Table 5 Parameters of simulation
Table 6 Experimental parameters
Fig. 7
figure 7

Simulation waveforms of the output voltage and current with resistive load

Fig. 8
figure 8

Simulation waveforms of the output voltage and current with R–L load

Figures 9 and 10 depict the total harmonics distortion (THD) of output voltage and current under R–L load of 50 \(\Omega \) and 120 mH in which it can be seen that THD of output voltage and current is 23.09% and 0.96%, respectively. Figure 11 shows the current through capacitors \(C_{1}, C_{2}, C_{1a}\), and \(C_{2a}\) under R–L load of 50 \(\Omega \) and 120 mH. Figure 12 represents a sudden change in the load. For \(t<1\) s, the load comprises resistance 50 \(\Omega \) and inductance 120 mH. After \(t=1\) s load change to half the previous value of resistance 25 \(\Omega \) and inductance 60 mH. Therefore, load current is changed significantly and gets double by decreasing load to half of the earlier values.

Fig. 9
figure 9

Harmonic profile of the output voltage

Fig. 10
figure 10

Harmonic profile of the output current

Fig. 11
figure 11

Current through capacitors \(C_{1}, C_{2}, C_{1a}\), and \(C_{2a}\)

Fig. 12
figure 12

Waveforms of load voltage and current for transition in load from (50 \(\Omega \), 120 mH) to (25 \(\Omega \), 60 mH)

The waveforms at lower modulation indexes of 0.55 and 0.25 are shown in Figs. 13 and 14 , respectively. Figures 13a and 14a present the voltage and current output waveforms with a resistive load of 500 \(\Omega \) having reduced levels with less peak value. Figures 13b and 14b present the voltage and current output waveforms under R–L load of 50 \(\Omega \) and 120 mH. The waveforms for the over-modulation index of 1.25 are shown in Fig. 15. Figure 15a presents the voltage and current output waveforms with a resistive load of 500 \(\Omega \). Figure 15b presents the voltage and current output waveforms under R–L load of 50 \(\Omega \) and 120 mH. Zero level is present in every value of the modulation index. At this level, all the capacitors (\(C_{1},C_{2}, C_{1a}\), and \(C_{2a}\)) are in parallel with the DC source which implies all the capacitors are balanced at their desired voltages.

Fig. 13
figure 13

Output voltage and current waveforms for modulation index of 0.55 a resitive load b R–L load

Fig. 14
figure 14

Output voltage and current waveforms for modulation index of 0.25 a resitive load b R–L load

Fig. 15
figure 15

Output voltage and current waveforms for modulation index of 1.25 a resitive load b R–L load

Fig. 16
figure 16

Photograph of experimental setup

Fig. 17
figure 17

Experimental waveforms of output voltage and current under resistive load

Fig. 18
figure 18

Voltages across capacitors \(C_{1}, C_{2}, C_{1a}\) and \(C_{2a}\)

Fig. 19
figure 19

Switching signals for power switches \(S_{1a}, S_{2a}, S_{3a}\) and \(S_{4a}\)

Fig. 20
figure 20

Switching signals for power switches \(S_{1a},S_{2a}, S_{3a}\) and \(S_{4a}\)

Fig. 21
figure 21

Experimental waveforms of output voltage and current under R–L load

A prototype of the proposed seven-level SCMLI is designed further to validate the analysis and simulation results. A fixed DC voltage of 100V from PV emulator is used as an input source. The device values chosen for the prototype are shown in Table 6. The experimental photograph is shown in Fig. 16. OPAL-RT (OP4510) real-time controller was used in conjunction with MATLAB/Simulink to generate the desired gate signals for the power switches. These signals are obtained for modulation index of 0.85 and fsw=2KHz. Figure 17 shows the voltage and current output waveforms under a resistive load of 500 \(\Omega \). The amplitude of output voltage and current is 150V and 0.3A, respectively. Figure 18 shows that capacitors \(C_{1}, C_{2}, C_{1a}\), and \(C_{2a}\) gets approximately charged to 50V, and they are within the range of 10% voltage ripples. Figures 19 and 20 depict the voltage waveforms of switches \(S_{1a}\) to \(S_{9a}\). The PIV of the bidirectional switch (\(S_{7a}, S_{8a}\)) is 50V for each, and for other switches, it is 100V. Therefore, PIV across the switches does not exceed input source. Figure 21 shows the voltage and current output waveforms under R–L load of 50 \(\Omega \) and 120 mH. The amplitude of output voltage and current is 150V and 2A, respectively.

7 Closed-loop control of proposed inverter

Closed-loop structure of the proposed inverter is shown in Fig. 22. The main components of this structure are PV array, proposed SC-MLI, LCL filter to improve THD, controller, and the utility grid. The controller of this structure consists of a maximum power point tracker (MPPT) algorithm using perturb and observe method, and phase-locked loop (PLL) is utilized to extract the voltage angle and generate the synchronized current reference.

Fig. 22
figure 22

Closed-loop structure of proposed inverter

Fig. 23
figure 23

Block diagram of voltage and current controller

In this work, voltage and current are controlled by the proportional integral and proportional resonant controller, respectively. In Fig. 23, components of controller are shown in which output (\(V^\mathrm{ref}_\mathrm{DC}\)) from MPPT block and source voltage (\(V_\mathrm{DC}\)) is  fed to voltage controller which produces reference signal (\(I_\mathrm{ref}\)) which multiplied with signal (Cos\(\mathrm {\theta }\)) from PLL block to produce reference grid current (\(I_\mathrm{ref}\mathrm{Cos}\mathrm {\theta }\)) which further fed to current controller. It produces the desired reference signal which further processes with PWM, described in Sect. 3, and generates a switching pulse. These pulses are fed to the power switches of the proposed inverter.

The closed-loop performance characteristic is shown in Fig. 24 in which the grid voltage is in phase with grid current and hence maintains unity power factor with amplitudes 130V and 11.5A, respectively.

Fig. 24
figure 24

Waveform of grid voltage, grid current and inverter voltage

8 Conclusion

A novel seven-level PV inverter is described in this paper, having advantages over different SCMLI topologies. Nine switches and four capacitors are used in the proposed topology to generate seven-level with voltage stress across all switches controlled within the input voltage. The maximum attainable voltage level was 1.5 times the input voltage. The LSPWM algorithm improves the quality of its output voltage and reduces the capacitors voltage ripples simultaneously. Self-voltage balancing of capacitors and a single DC source are also some of the attractive features of the proposed inverter. By using voltage and current controller, closed-loop PV connected grid system is presented. Theoretical analyses were shown and proved by the experimental study of a single-phase prototype.