1 Introduction

Currently, interest in renewable energy sources, such as photovoltaics (PVs) and wind turbines, is increasing, and they are considered to have significant potential. According to the International Energy Agency report in 2020, the global PV installed capacity has crossed 620 GW [1]. Residential PV applications can be classified into two main groups: grid-connected or stand-alone. In the grid-connected mode, the house is connected to a low-voltage utility grid, and the surplus power is diverted into the power grid. The stand-alone PV system is more suitable for houses that cannot be reached by the electrical grid. However, in this case, the system is more complex since battery packs are needed to store the energy to be used when additional energy is needed.

Power electronics are vital in PV systems. The generated outputs of the PV panels need to go through multiple conversion stages to achieve high-quality AC power. For high efficiency, more compact and lightweight power converters are required [2, 3]. Over the years, multilevel inverters have received interest, owing to their attractive features in power quality regulations [4]. Among different types of DC–AC inverters, multilevel inverters usually have lower harmonic contents, devices with lower rated power, lower filtering requirements, and higher voltage capabilities [5]. Additionally, some multilevel inverters enable transformerless operation and can increase the generated staircase output voltage without increasing the device rating.

Traditional topologies of multilevel inverters include neutral-point diode clamped (NPC), flying capacitor (FC), and cascaded H-bridge (CHB) inverters [6]. These topologies are currently implemented in a wide range of applications, such as blowers, grinding mills, and flexible AC transmission lines (FACTs) applications [7, 8]. However, various disadvantages limit each topology. In the NPC topologies proposed in [9,10,11,12], the main drawback is the unbalanced voltage of the input series-connected capacitors. Also, several clamping diodes are required to generate a higher level of output voltage [13]. Furthermore, with the recently proposed active NPC topology, such as T-type [14] or E-type [15], the replacement of clamping diodes with active switching devices makes the system more complex and results in additional conduction losses. Hence, the main drawback is still not effectively solved. The traditional FC inverter topologies proposed in [16,17,18] are composed of a series connection of units. Each unit consists of one FC and two power-switching devices. However, FC inverters are also limited to three-level applications because of the unbalanced voltage over the flying capacitors as the number of voltage levels increases. Another drawback is that an FC inverter with more than three levels requires many flying capacitors, which may require a large converter. The CHB multilevel inverter topologies proposed in [19] and [20] are composed of several units of H-bridge inverters connected in series with an isolated input DC source for each unit. This topology is commonly used in the industry for its high efficiency and modularity. However, the main disadvantage is the need for an isolated input DC source for each H-bridge inverter, which in turn increases the inverter size. Additionally, as the number of voltage levels increases, the numbers of DC sources and H-bridge inverters significantly increase.

The recently proposed multilevel inverters overcome the aforementioned drawbacks of the conventional multilevel inverter with the main objectives to reduce switches count, reduce number of DC sources, and reduce the voltage stress on power switches. In [21], fifteen level multilevel inverter is proposed to overcome the problem of the high number of DC sources, however, the topology requires ten power switches and three dc source to generate fifteen level. The high number of switches is the main drawbacks. A modular multilevel topology with symmetric configuration is introduces in [22]. The topology uses ten bidirectional switches and seven isolated DC source to generate fifteen level. The limitation of this topology is the high number of DC sources. In practical applications, this configuration requires additional capacitors which further increase the systems size. The drawback with this multilevel inverter can be overcome with the proposed packed U-cell multilevel inverter in [23] where less number of switches can be employed to generate fifteen voltage levels. However, using diodes prevent the bidirectional power flow in thus topology. To reduce the voltage stress of the power devices, the multilevel inverter presented in [24] combine the T-yple multivalve inverter with the three-level H-bridge inverter. This topology requires at least twelve power switches with four diodes. However, the high number of power switches making the topology less efficient and unaffordable. The switched capacitor circuit can be alternative solution to reduce the number of power switches and reduce the voltage stress. In [25], a new K-type is presented to generate thirteen voltage level. The topology requires one DC source, four capacitors and ten power switches. The main advantage is the auto-balance of the capacitor's voltages. However, the high number switching devices is a massive drawback of this topology. A new seven-level-PUC Multi-Cells Modular Multilevel Converter for AC-AC and AC-DC Applications is proposed in [26]. The required arm inductors is a big disadvantages of PUC topology. Complex control is another disadvantage where the control and balance of cell capacitors voltages is required. Moreover, circulating current has to be minimized and this requires another layer of control. Packed E-Cell (PEC) multilevel topology to achieve nine-level is proposed in [27]. The problem with this topology is difficult control to balance the voltage of dc-link capacitors. Also, some power devices need bidirectional voltage blocking, and this require extra gate drive circuit and additional layer of control.

In this paper, a switched capacitor–based multilevel inverter is proposed to overcome the drawbacks of traditional multilevel inverters. The proposed topology employs fewer components as compared to the conventional topologies. The capacitor voltage balancing problem in conventional NPC and FC inverters is addressed by the frequent charging of the capacitors in series to a constant voltage. Moreover, a switched-capacitor circuit avoids the drawback of multiple DC sources in a CHB inverter by using a single voltage source to generate higher voltage levels. Unlike traditional inverters, the proposed topology can boost the input voltage by charging the capacitors in parallel with the input voltage and discharging to the load by connecting the capacitors in series with the input voltage source. Furthermore, the maximum voltage stresses of the switches are limited to the input DC voltage, making the proposed inverter an excellent candidate for high-voltage PV power applications. In addition, the proposed inverter benefits from the superior features of silicon carbide (SiC) devices in high switching frequencies to reduce the size of passive components, such as capacitors and output filters [28]. The high-temperature capability of silicon carbide devices will further reduce the requirement of a cooling system. In the proposed topology, the stray inductance in the printed circuit board (PCB) traces is utilized to regulate the charging current and realize soft-switching. Finally, using a switching capacitor circuit allows for desirable inverter features, including small size, lightweight, large power density, and low harmonic components.

The rest of the paper is organized as follows. The proposed multilevel switched-capacitor inverter and its operation principle are presented in Sect. 2. The soft-switching analysis is described in Sect. 3, and the power losses analysis is presented in Sect. 4 and the control algorithm is described in Sect. 5. The simulation and experimental results are illustrated in Sect. 6, and the conclusion is given in Sect. 7.

2 Proposed Three-phase Three-Port Five-Level Inverter

2.1 System Overview

In contrast to the traditional multiport, multilevel inverter topologies that involve several stages as depicted in Fig. 1, the proposed topology involves only a single-stage power conversion with three-port structure, as seen in Fig. 2. A single-stage DC-AC converter with boosting capability offers an interesting alternative compared to two-stage approaches. The proposed topology omits the intermediate stages since the system resources are shred. Multi-port, multi-level converters based switched capacitors can obtain higher DC voltage utilizations and become a research hotspot today. This paper presents a novel switched-capacitor-based three-phase, three-port, five-level inverter with reduced number of components. The proposed inverter is designed in a way that just one DC source is required to generate different voltage levels. Compared to conventional multilevel topologies, the proposed topology features many advantages (1) single stage conversion with boosting functionality (2) deployment of switched-capacitor circuit with no need for large inductors and transformers (3) low number of semiconductor devices, (4) soft switching operation that reduce the electromagnetic interference and switching losses (5) self-balancing of capacitor and (6) reduced voltage stress on the switches. Moreover, using the silicon carbide devices enable the converter to operate at higher switching frequencies, enabling a dramatic shrink in the size and cost of capacitors and inductors, which then reduces the overall system cost.

Fig. 1
figure 1

System diagram of the conventional five-level three-port DC/AC converter

Fig. 2
figure 2

System diagram of the proposed five-level three-port DC/AC converter

2.2 Circuit Configuration

The schematic of the proposed three-port five-level inverter is shown in Fig. 3. The three-phase legs share the same DC source, reducing the number of DC-link capacitors. Each phase leg combines a switched-capacitor unit with a half-bridge inverter. The switched-capacitor unit in phase A contains one intermediate capacitor C1 and three power switches S1A and S3A working in complementary with switch S2A. Also, a two-port inverter can be formed; the first has the pole voltage VA1N, resulting from switches S4A and S5A. The second has the pole voltage VA2N from switches S5A and S6A. By switching the capacitor C1 and the input DC source between series and parallel, node A1 acts as a five-level inverter with a maximum pole voltage VA1N,max = 2Vdc, while node A2 serves as a three-level inverter with a maximum pole voltage VA2N,max = Vdc.

Fig. 3
figure 3

The schematic of the proposed three-phase three-port five-level inverter

2.3 Comparative Study with the Conventional Topologies

The proposed inverter is compared with recently published conventional multilevel inverter topologies. A summary of the comparative study is provided in Table 1, clarifying the prominent advantages of the proposed topology. The counterpart topologies are the NPC, FC, and CHB multilevel inverters as shown in Fig. 4. The topologies are quantitively compared in terms of the number of switching devices, diodes, capacitors, and input DC sources, as well as maximum voltage stress. Table 1 shows that the conventional topologies require a high number of semiconductor devices to realize a five-level operation. The FC inverter, NPC inverter and CHB inverter require at least twenty-four switching devices while the proposed inverter only has eighteen switching devices to generate a five-level output voltage. Hence, the employed number of switches in the proposed topology is less by 25%. Additionally, the FC inverter requires more six flying capacitors, and the NPC inverter requires eighteen clamping diodes while the proposed inverter only require three flying capacitors to achieve the same functionality. The flying capacitors in FC converter is 50% higher when compared to proposed topology. Moreover, the flying capacitor voltage as well as the DC-link voltage are difficult to balance in FC inverter and NPC inverter, respectfully, while the voltage balancing over the capacitors in proposed inverter can be achieved automatically. Hence, the system complexity and reliability are improved. The proposed topology offers a single-stage DC-AC converter with inherent boosting capability while other topologies require an extra DC-DC stage to achieve a voltage up to two times of the output voltage. However, the new stage requires additional semiconductor devices and passive components which eventually lead to a large system size and less efficiency. Furthermore, among the compared topologies, the proposed inverter shows the lowest voltage stresses. For the five-level FC and five-level CHP, the voltage stresses are Vdc/2. However, for the five-level CHB inverter, the voltage stresses are Vdc. The topologies proposed in [29,30,31,32] are based on switched capacitors circuit. However, these topologies still require high number of switching devices and flying capacitors. Topologies in [29, 30, 32] require twenty-four switching devices to generate three-phase, five-level inverter. However, topologies in [29, 31] require more clamping diodes and flying capacitors compared to other since it consists of front-end boosting stage. The topology in [30] shows less voltage stress compared to other, however, this topology require additional layer of control since dc-bus capacitor voltages cannot be self-balanced. The table shows that the proposed topology is superior to other topologies with a fewer number of switching devices, fewer number of flying capacitors, and less voltage stresses. Furthermore, the proposed inverter is capable to run with soft switching for some devices which is not applicable for other topologies, the switching losses and electromagnetic interference noise can be further mitigated. In general, the proposed five-level inverter achieves high performance compared to other topologies, especially, in term of components count, system complexity and DC voltage utilizations.

Table 1 Comparison of the conventional five-level inverters and the proposed inverter
Fig. 4
figure 4

The conventional five-level DC/AC inverter

2.4 Circuit Operating Principle

The operating principles of both five-level and three-level inverters are addressed in this section. The inverter switches are controlled to generate three unipolar voltage levels of 0, Vdc, and 2Vdc in the pole voltages VA1N, VB1N, and VC1N and two unipolar voltage levels of zero and VDC in the pole voltages VA2N, VB2N, and VC2N, respectively. Five-level bipolar voltages can be produced in the line voltages by subtracting the corresponding pole voltage in each phase leg. For example, the line-to-line voltage VA1B1 can be synthesized by subtracting the pole voltage VA1N from VB1N, generating five-level voltages of − 2Vdc, − Vdc, 0, Vdc, 2Vdc. However, the line-to-line voltage VA2B2 can be synthesized by subtracting the pole voltage VA2N from VB2N, generating the three-level voltages − Vdc, 0, and Vdc. The switching states for generating the five-level voltage VA1B1 and three-level voltage VA2B2 are illustrated in Table 2. The states are defined such that “0” refers to the OFF state, and “1” refers to the ON state of the related switches. The current paths in each operating switching state are shown in Fig. 5a–d. The following switching states analysis applies to the circuit in phase A; the circuits in phases B and C experience the same analysis, but the output voltage is shifted by − 120° and 120°, respectively.

Table 2 Five-level Output voltage and switching states of the circuit in Phase A only
Fig. 5
figure 5

Four switching states for the three-port five-level inverter

2.4.1 Switching State 1 (V A1N = 0, V A2N = 0)

Figure 5a depicts the equivalent circuit for switching state 1. The front-end circuit switches S1A and S3A are ON while S2A is OFF. During this state, capacitor C1 is connected in parallel with the input DC source and charged to Vdc. In the half-bridge inverter, S4A is OFF while switches S5A and S6A are ON. The pole voltages across both nodes A1 and A2 are zero.

2.4.2 Switching State 2 (V A1N = V dc, V A2N = 0)

The equivalent circuit is shown in Fig. 5b and labeled as switching state 2. The switches in the front-end circuit maintain the same switching pattern as in state 0. However, in the half-bridge inverter, the switches S4A and S6A are ON while S5A is OFF. The pole voltage at node A1 becomes VA1N = Vdc, and node A2 has a pole voltage of zero, VA2N = 0.

2.4.3 Switching State 3 (V A1N = V dc, V A2N = V dc)

Figure 5c illustrates the equivalent circuit of switching states 3. In Fig. 3c, the switches in the front-end stage S1A and S3A are ON while S2A is OFF, and capacitor CA is still in charging mode. In the half-bridge stage, the switches S4A and S5A are ON while S6A is OFF. The pole voltage at node A1 becomes VA1N = Vdc, and node A2 has the pole voltage VA2N = Vdc. Another redundant switching state 3 can be realized by turning ON switches S2A, S6A, and S5A and turning OFF switches S1A, S3A, and S4A, connecting the DC source to nodes A1 and A2.

2.4.4 Switching State 4 (V A1N = 2V dc, V A2N = V dc)

The equivalent circuit is shown in Fig. 5d, labeled as switching state 4. In the front-end stage, switch S2A is ON and switches S1A and S3A are OFF, thereby connecting capacitor C1 in series with the input DC source. In the half-bridge stage, switch S4A and S6A are ON while switch S5A is OFF, and C1 is discharging in series with the DC source, resulting in 2Vdc at node A1 through S4A and Vdc from node A2 through S6A.

Fig. 6
figure 6

Schematic diagram of the PWM technique

2.5 Modulation Strategy

Since the proposed topology features fewer switching devices, some switching constraints are imposed in the modulating design. To solve these constraints, a sinusoidal pulse width modulation (SPWM) technique is applied. Figure 6 illustrates the modulation scheme for the inverter operation, where Vref_A1 and Vref_A2 are the modulating reference waveform for the pole voltage VA1N and VA2N. The modulation reference waveforms for the circuit in phase A can be defined as

$$\begin{aligned} V_{ref\_A1} (t) & = 2m_{A1} \sin (\omega t) \\ V_{ref\_A2} (t) & = m_{A2} \sin (\omega t) + 1 \\ \end{aligned}$$
(1)

where \(m_{A1}\) and \(m_{A2}\) are modulation indices for pole voltages VA1N and VA2N, respectively.

To prevent the two modulating waves from intersecting, the voltage reference \(V_{ref\_A2} (t)\) is lifted to the top by adding proper DC offsets. In this way, the inverter operation constraints are satisfied. Figure 7a illustrates the modulation scheme in a single switching period for the proposed inverter when the modulating reference waveforms are in the first half-cycle, compared with a common triangular carrier. In this case, the pulse width modulation (PWM) signals for switches S1A–S6A are generated such that the instantaneous time TA2 of the reference \({V}_{ref\_A2}\left(t\right)\) must be no less than the instantaneous time TA1 of reference \({V}_{ref\_A1}\left(t\right)\). However, when the reference \({V}_{ref\_A1}\left(t\right)\) passes to the negative half cycle, in this case, as illustrated in Fig. 7b, the two modulating reference waveforms are compared to different triangular carriers and arranged such that the instantaneous time TA1 of \({V}_{ref\_A1}\left(t\right)\) is not less than TA2 of \({V}_{ref\_A2}\left(t\right)\) at any instant of time. Therefore, PWM signals for switches S1A–S6A in the second half-cycle are generated such that the instantaneous time TA1 is longer than the instantaneous value TA2.

3 Soft-Switching Operation

The main obstacle of the switched-capacitor circuit is that the charging current of the capacitor is not regulated. Hence, the switches in the path of charging current experience high pulses. In the proposed topology, the stray inductance in the PCB traces is utilized to regulate the charging current; hence, power devices realize soft-switching. The proposed soft-switching scheme is only applied to the switches located in the charging path of the capacitors. The main purpose is to minimize the associated power losses and reduce the electromagnetic interference (EMI) due to an unregulated charging current. Figure 8a shows the equivalent circuit of the capacitor charging loop in the circuit of phase A. By neglecting the equivalent resistance in the charging loop, the charging path can be represented only by the LC circuit. Under this assumption, the charging current that flows through switches S1A and S3A is sinusoidal. The current profile of capacitor C1 is shown in Fig. 8b. Capacitors C2 and C3 in phase B and phase C have the same current profiles.

To implement the soft-switching method in the proposed inverter, a variable switching-frequency algorithm is adopted. The main goal is to keep the charging time of the capacitor constant. The following equation describes the relationship between the charging time of the capacitor and the instantaneous duty ratio:

$${T}_{ch}\left(t\right)= \left(1-D\left(t\right)\right)\frac{1}{{f}_{s}(t)}$$
(2)

The instantaneous duty ratio \(D\left(t\right)\) during the charging/discharging process of capacitor C1 can be defined as

$$D\left(t\right)= \left\{\begin{array}{ll}{2m}_{A1}\mathrm{sin}\left(\omega t\right)&\quad 0\le t \le D{T}_{s}\\ 2-{2m}_{A1}\mathrm{sin}\left(\omega t\right)&\quad D{T}_{s}\le t \le {T}_{s}\end{array}\right.$$
(3)
Fig. 7
figure 7

Switching states of the proposed converter

Fig. 8
figure 8

Equivalent circuit during capacitor charging and current profile

From (5) and (6), the variable switching frequency \({f}_{s}\left(t\right)\) can be calculated as

$${f}_{s}\left(t\right)= \frac{2 \left(1-D\left(t\right)\right)}{{T}_{{\rm osc}}}$$
(4)

where \({T}_{osc}=\pi \sqrt{{L}_{s}{C}_{1}}\) is the resonance time of the charging current.

Equation (4) illustrates the relation between the instantaneous duty ratio \(D\left(t\right)\) and the switching frequency \({f}_{s}\left(t\right)\). Since the switching frequency varies from cycle to cycle, the voltage variation should be minimized to prevent the capacitor from being over-discharged. Therefore, the capacitor voltage ripple in one switching cycle is calculated from the following equation:

$$\begin{aligned} \Delta V_{C1} & = \frac{1}{{C_{1} }}D(t)i_{A1} (t)\frac{1}{{f_{s} (t)}} \\ & = \frac{1}{2}\frac{1}{{C_{1} }}i_{A1} (t)T_{{\rm osc}} \left( {\frac{1}{1 - D(t)} - 1} \right) \\ \end{aligned}$$
(5)

Equation (5) clearly states that the voltage variation increases with the inverter current i1A(t) and the instantaneous duty ratio \(D\left(t\right)\). The maximum voltage variation occurs at a unity power factor when the inverter current i1A(t) and the duty ratio \(D\left(t\right)\) reach their maximum value simultaneously. Hence, Eq. (4) becomes

$${\Delta V}_{C1\_max}= \frac{1}{2}\frac{1}{{C}_{1}} {I}_{A1\_peak}{T}_{{\rm osc}}\left(\frac{{m}_{A1}}{1-{m}_{A1}}\right)$$
(6)

By using the current-second balance, the maximum charging current of the capacitor can be calculated from the following:

$$\frac{1-D\left(t\right)}{\pi }{\int }_{0}^{\pi }{I}_{C1\_peak}\hbox{sin}\left(\theta \right)d\theta = D\left(t\right){i}_{A1}$$
(7)

Solving Eq. (7), the peak charging current in phase A can be obtained from

$${I}_{S3A\_peak}={I}_{C1\_peak}= \frac{\pi }{2}\left(\frac{1}{2-2{m}_{A1}} \right) {I}_{A1\_peak}$$
(8)

Equation (8) estimates the maximum capacitor charging current. Both the modulation index and the phase current directly impact the maximum charging current. Switch S1A in phase A (see Fig. 5c), carries both the charging current \({i}_{C1}(t)\) and the inverter current \({i}_{A1}(t)\). Switch S1A experiences the highest current stress. Therefore, the peak current value of switch S1A is

$${I}_{S1A\_peak}= \left(\frac{\pi }{4-{4m}_{A1}}+1\right) {I}_{A1\_peak}$$
(9)

4 Power Losses Analysis

In this section, power losses are analyzed to study the effect of load value and switching frequency on system efficiency. The inverter mainly uses the capacitor and semiconductor devices to perform the energy transfer tasks; therefore, a major part of the losses is dissipated in the semiconductor devices. Two types of losses are considered—conduction and switching losses.

4.1 Conduction Losses

The conduction losses of the inverter are caused by the on-state resistance Ron in the semiconductor devices when the current flows through them. Therefore, estimating the conduction losses mainly depends on the device parameters, load current, and the average value of the duty cycle. During the positive half cycle when the reference waveform \({V}_{refA1}(\theta )>0\), \(\theta \in [ 0, \pi ]\), the duty ratios \({d}_{A1}\left(\theta \right)\) and \({d}_{A2}\left(\theta \right)\) are given by

$$\left\{ {\begin{array}{ll} {d_{A1} \left( \theta \right) = \frac{{2m_{A1} \sin \theta }}{2}} \hfill &\quad {0 \le \theta \le \pi } \hfill \\ {d_{A2} \left( \theta \right) = \frac{{m_{A2} \sin \theta + 1}}{2}} \hfill &\quad {\pi \le \theta \le 2\pi } \hfill \\ \end{array} } \right.$$
(10)

However, when the reference \(V_{refA1} (\theta )\) is in the negative half cycle, \(\theta \in [\pi ,2\pi ]\), the duty ratio is given by

$$\left\{ {\begin{array}{ll} {d_{A1} \left( \theta \right) = \frac{{2m_{A1} \sin \theta + 2}}{2}} \hfill &\quad {0 \le \theta \le \pi 0 \le \theta \le \pi } \hfill \\ {d_{A2} \left( \theta \right) = \frac{{m_{A1} \sin \theta + 1}}{2}} \hfill &\quad {\pi \le \theta \le 2\pi } \hfill \\ \end{array} } \right.$$
(11)

The total power conduction losses for the circuit in phase A equals the sum of the conduction losses of the switches S1AS6A:

$${P}_{con\_\phi A}= {P}_{S1A}+ {P}_{S2A}+ {P}_{S3A}+{P}_{S4A}+{P}_{S5A}+{P}_{S6A}$$
(12)

Since the circuit structures in the three phases are identical, the total conduction losses of the inverter are the sum of three phases:

$${P}_{con\_3\phi }= {3 P}_{con\_\phi A}$$
(13)

4.1.1 Conduction Loss of Switch S 1A

Two currents are supported by switch S1A. During the first half of the cycle, S1A conducts the capacitor’s charging current iC1(t), and both phase currents iA1,(t) and iA2(t) flow through switches S4A and S5A, respectively. Since no charging/discharging operation occurs in the second half of the cycle, no current flows through S1A. The conduction loss PCond_S1A can be written as

$$\begin{aligned} P_{Cond\_S1A} =& \left[ \frac{1}{2\pi }\left( \int_{0}^{\pi } \left( \left( {1 - d_{A1} \left( \theta \right)} \right)\left( {i_{A1} \left( \theta \right) + i_{C1} \left( \theta \right)} \right)\right.\right.\right.\\ & \left.+ \left( {d_{A2} \left( \theta \right) - d_{A1} \left( \theta \right)} \right)i_{A2} \left( \theta \right) \right)^{2} d\theta + \int_{\pi }^{2\pi } \\ &\left.\left.\left( d_{A1} \left( \theta \right)i_{A1} \left( \theta \right)+ d_{A2} \left( \theta \right)i_{A2} \left( \theta \right) \right)^{2} d\theta \right) \right]r_{S}\end{aligned}$$
(14)

4.1.2 Conduction Loss of Switch S 2A

Switch S2A is only active in the first half of the cycle, conducting phase current iA1 (t) and iA2 (t). The conduction loss through switch S2A PCond_S2A is given by

$$P_{Cond\_S2A} = \left[ {\frac{1}{2\pi }\left( {\begin{array}{*{20}c} {\int_{0}^{\pi } \left( {d_{A1} (\theta ) \left( {i_{A2} (\theta ) + i_{A2} (\theta )} \right)} \right)^{2} d\theta } \\ \end{array} } \right)} \right]r_{S}$$
(15)

4.1.3 Conduction Loss of Switch S 3A

Switch S3A carries capacitor current iC1 during the first half-cycle and phase currents iA1 (t) and iA2(t) during the second cycle. The conduction loss PCond_S3A can be obtained as

$$P_{Cond\_S3A} = \left[ \frac{1}{2\pi }\left( { \begin{array}{*{20}l} \int_{0}^{\pi } \left( \left( {1 - d_{A1} \left( \theta \right)} \right)i_{C1} \left( \theta \right)\right.\\ \quad \left.- \left( {1 - d_{A2} \left( \theta \right)} \right)i_{A2} \left( \theta \right) \right)^{2} d\theta \\ \quad+\int_{\pi }^{2\pi } \left( \left( {1 - d_{A2} \left( \theta \right)} \right)i_{A2} \left( \theta \right) \right.\\ \quad\left.+ \left( {1 - d_{A1} \left( \theta \right)} \right)i_{A1} \left( \theta \right) \right)^{2} d\theta \\ \end{array} } \right) \right] r_{S}$$
(16)

4.1.4 Conduction Loss of Switch S 4A

Switch S4A conducts the phase currents iA1 (t) and iA2(t). The conduction loss PCond_S4A is given as:

$$\begin{aligned} P_{Cond\_S4A} = &\left[ \frac{1}{2\pi }\left( \begin{array}{*{20}l} \int_{0}^{\pi } \left( i_{A1} \left( \theta \right) + \left( d_{A2} \left( \theta \right)\right. \right.\\ \quad\left.\left.- d_{A1} \left( \theta \right) \right)i_{A1} \left( \theta \right) \right)^{2} d\theta \\ + \int_{\pi }^{2\pi } \left( d_{A1} \left( \theta \right)i_{A1} \left( \theta \right)\right.\\ \quad\left.+ d_{A2} \left( \theta \right)i_{A2} \left( \theta \right) \right)^{2} d\theta \\ \end{array} \right) \right]r_{S}\end{aligned}$$
(17)

4.1.5 Conduction Loss of Switch S 5A

Switch S5A conducts the phase current iA1 (t) and iA2(t) in the first half of the cycle. During the negative half-cycle, the switch carries the phase current iA1 (t) only. The conduction loss PCond_S5A switch S5A is:

$$\begin{aligned}& P_{Cond\_S5A}\\ &\quad = \left[ {\frac{1}{2\pi }\left( {\begin{array}{*{20}c} {\begin{array}{*{20}c} {\int_{0}^{\pi } \left( {\left( {d_{A2} \left( \theta \right) - d_{A1} \left( \theta \right)} \right)i_{A2} \left( \theta \right)} \right)^{2} d\theta + } \\ \end{array} } \\ \int_{\pi }^{2\pi } \left( {d_{A2} \left( \theta \right)i_{A2} \left( \theta \right) + \left( {1 - d_{A1} \left( \theta \right)} \right)\left( {i_{A2} (\theta ) + i_{A2} (\theta )} \right)} \right)^{2} d\theta \\ \end{array} } \right)} \right]r_{S}\end{aligned}$$
(18)

4.1.6 Conduction Loss of Switch S 6A

Switch S6A carries both phase currents iA1 (t) and iA2(t) in one fundamental cycle, and the power loss of switch S6A PCond_S6A can be estimated as

$$\begin{aligned}& P_{Cond\_S6A} \\ &\quad= \left[ \frac{1}{2\pi }\left( \begin{array}{*{20}c} {\begin{array}{*{20}c} {\int_{0}^{\pi } \left( {d_{A1} \left( \theta \right)i_{A1} \left( \theta \right) + \left( {1 - d_{A2} \left( \theta \right)} \right)i_{A2} \left( \theta \right)} \right)^{2} d\theta + } \\ \end{array} } \\ { \int_{\pi }^{2\pi } \left( {\left( {1 - d_{A2} \left( \theta \right)} \right)i_{A2} \left( \theta \right) + \left( {1 - d_{A1} \left( \theta \right)} \right)i_{A1} \left( \theta \right)} \right)^{2} d\theta } \\ \end{array} \right) \right]r_{S}\end{aligned}$$
(19)

4.2 Switching Losses of Power Devices

The switching losses of the presented topology are calculated based on the charging and discharging of the parasitic capacitor Cs of the semiconductor devices. For all switches, the capacitor Cs is charged to the maximum voltage Vdc when the switch is turned off and discharged to zero when the switch is turned on. Therefore, the switching losses can be calculated as follows:

$${P}_{sw}= {C}_{s}{{V}_{dc}}^{2}{f}_{sw}$$
(20)

where \({f}_{sw}\) is the switching frequency of the switches and can be calculated from

$${f}_{sw}= {N}_{sw} {f}_{o}$$
(21)

where \({N}_{sw}\) is the number of switching transitions in one period. Therefore, the \({N}_{sw}\) of a single switch can be obtained as

$${N}_{sw}= \frac{{t}_{s}{f}_{c}}{{T}_{s}{f}_{o}}$$
(22)

where \({t}_{s}\) is the operating time of the switches, which can be determined from Fig. 7. \({T}_{s}\) is the switching time of one cycle. Therefore, the total switching losses \({P}_{sw}\) can be calculated from the following:

$${P}_{sw}=18 \sum_{i=1}^{18}{C}_{si} {{V}_{dc}}^{2}{t}_{si}{f}_{sw}$$
(23)

The efficiency of the proposed inverter can be obtained from

$$\eta = \frac{{P}_{o1}+ {P}_{o2}}{{P}_{o1}+{P}_{o2}+{P}_{con}+{P}_{sw}}$$
(24)

where \({P}_{o1}\) and \({P}_{o2}\) are the output power of AC port 1 and AC port 2, respectively. The losses of the inverter can be calculated numerically at different levels of output power. The values of rs, fs, fo, and Cs are estimated to be 25 mΩ, 150 kHz, 60 Hz, and 500 pF, respectively. The calculated efficiency of the proposed three-phase inverter is shown in Fig. 9a. The losses are obtained under the condition that output powers of the two ports are equal, i.e., \({P}_{o1}={P}_{o2}=1 \mathrm{kW}\), and the conduction and switching losses can be determined as Pcon = 0.12 W and Psw = 0.3 W. The breakdown of the losses is illustrated in Fig. 9b.

Fig. 9
figure 9

Theoretical efficiency and losses analysis

5 Control Algorithm

The Control block diagram of the proposed multiport multilevel inverter is illustrated in Fig. 10. The DQ reference frame technique is used at the grid port. This technique employs two control loops, outer loop, and inner loop. The outer loop is the voltage control, and the objective is to keep a stable dc-link voltage. The output of the maximum power point tracking (MPPT) controller, VPV, is employed as input voltage reference to the outer loop. The PI controller is implemented to minimize the error between the input voltage reference and the feedback signal from the dc-link voltage. The output of PI is fed into the inner loop. The inner loop is the current control loop, where the feedback signal is the grid current. The objective of this loop is to track any sudden change in the input power and also to maintain a unity power factor at grid side. Therefore, in case of any sudden increase or decrease in the input power, the outer loop will clamp the dc-link voltage and the inner loop will track the grid current. Usually, the inner loop response very fast when compared to the outer voltage control. The phase looked loop (PLL) is employed for grid current synchronization. At the load port, a high-quality ac voltage must be guaranteed. And the control objective is to keep a stable ac voltage all the time. Figure 10 illustrates that the output voltage of the load is fed into the load voltage controller. The PI controller is employed to maintain a constant voltage by continuously adjusting the related modulated signal.

Fig. 10
figure 10

Control block diagram of the proposed five-level three-port inverter

6 Simulation and Experimental Validation

6.1 Simulations Verification

To verify the effectiveness of the proposed three-phase topology, a simulation model was conducted using MATLAB. The topology was designed to operate in 240 V/120 V VAC. The DC bus was set to 200 VDC to coincide with the interface of a large PV array, with a line inductance of 2 mH and a switching frequency of 150 kHz. The modulation indices were equal for each port, mA1 = mA2 = 0.8. To achieve soft-switching, the stray inductance and capacitance in the charging loop were determined based on Eqs. (4) and (5) to be 140 nH and 50 µF, respectively.

Figure 11 shows the simulated waveforms of phase A unit. The five-level, line-to-line output voltage VA1B1 at load side, the three-level, line-to-line output voltage at grid side VA2B2, the phase grid voltage Vg, and the phase current IA2 flows into grid port. It is very clear that the grid side voltage works in unity power factor since the phase voltage and phase current are in-phase, hence, the proposed control method is working effectively. Also, the figure shows that the five-level operation for the load port with step voltage 200 V making the line-to-line voltage approximately 240 Vrms. The grid port works with three-level and the line-to-line voltage is 120 Vrms. The phase current flows into the grid is approximately 4.8 Arms.

Fig. 11
figure 11

Simulation result of the proposed inverter under unity power factor

Figure 12 shows the simulation result for the three flying capacitor voltages VC1, VC2, and VC2, the five-level load voltage (VA1B1), and the load current (IA1). The flying capacitor voltages are self-balanced with an average value of 200 Vdc, hence, the system does not require any additional layer of control. This is important advantage of the proposed inverter since the complexity of the system is reduced. Furthermore, the flying capacitors show a very small peak-to-peak ripple of about 3%, hence a small multilayer ceramic capacitor of about 5 µF is used. The load is inductive with 0.7 lag pf and the rms phase current is 4.2 A.

Fig. 12
figure 12

Simulation result of the proposed inverter under 0.707 inductive load

Figure 13 illustrates the dynamic performance of the proposed inverter. When a sudden change in load occurs, the proposed control algorithm must perform to maintain a stable system. The figure shows a step change occurs in the load current from half-load to full-load between the time 0.6–0.14 s. The average dc bus voltage is maintained constant at 200 V, however, the variation in the flying capacitors are increased due to the increase in the load current, hence a stable system is achieved.

Fig. 13
figure 13

Simulation result of the dynamic response under different load

Due to the unexpected variations in weather conditions, the solar irradiance is varied and simulated for analysis of the system. A PV-grid system model is built using MATLABSimulink with 9 solar modules connected in series and a total of 2 Kw power. Figure 14 shows the PV array output voltage Vs. current and power for different solar irradiance. The figure shows that the PV output current is directly proportional to the amount of the irradiance. The solar irradiance also has a direct impact on the output power, it can be seen that as the mount of solar irradiance increase the output power increases. In order to improve the system energy conversion efficiency, the maximum power point tracking (MPPT) is implemented to extract maximum power from PV panels. In this simulation, the perturb-and-observe (P&O) technique is applied for its simplicity and popularity.

Fig. 14
figure 14

PV module characteristic for varying irradiances

The simulation result is shown in Fig. 15, initially, the simulation starts at t = 0, the irradiance is set at 1000 W/m2 and the maximum output power of 2 kW is extracted from the PV modules. From t = 0.14 s, the irradiance is reduced from 1000 to 700 W/m2, hence, the output power reduced from 2 to 1.4 kW. From t = 0.27 s, the solar irradiance is further reduced to 300 W/m2 and the output power is reduced to 600 W. The figure clearly shows that the decrease in solar irradiance decreases the performance of the PV modules. Thus, varying solar irradiance has a significant effect on the output power generated, however, the effect on the output voltage is very small and can be ignored.

Fig. 15
figure 15

Simulation results under variable irradiance condition

6.2 Experimental Validation

To verify the feasibility of the proposed topology experimentally, a prototype was built to test the steady-state performance and the parameters are listed in Table 3. The 2-kW prototype was created using a single phase silicon carbide devices (TPH3006PD) from Cree as shown in Fig. 16. The test set up is shown in Fig. 17 where the units are connected together to form a three phase inverter. The parameters, devices, and PCB layout of the three circuits were identical. The flying capacitors C1, in Fig. 3 are 5 µF multilayer ceramic capacitors. The input voltage was set at 200 VDC. The grid inductance Lg was 200 µH, the filter capacitance was 2 µF, the load was selected as LL = 200 µH and R = 57 Ω, respectfully. The modulation index was mA1 = mA2 = 0.8, and the switching frequency was 150 kHz. A TMS320F2812 digital signal processor provided the stimulus to the gate drivers, and the voltage/current waveforms were measured using an oscilloscope Tektronix TPS2012.

Table 3 Parameters of the prototype
Fig. 16
figure 16

single phase unit

Fig. 17
figure 17

Test setup: three-phase, three-port, five-level inverter

The prototype was tested at rated power using the SPWM with the condition that the output power was equal for the two output ports. Figure 18 shows the measured line-to-line five-level output voltage (VA1B1) in channel 1 (blue), the dc-link voltage (Vdc) in channel 2, the grid voltage (Vg) in channel 3 (purple), and the grid current (iA2) in channel 4. It can be noticed that the five-level output voltage is generated, and the grid voltage is synchronized with the phase current, hence unity power factor is achieved. It can be seen that that Vdc is 200 V, the magnitude value of grid voltage is 120 Vrms, and the magnitude of the grid rms current is 4.8 A, and the delivered power to the utility is about 1 kW. As the voltage of the input dc source was 200 V, a boost gain multiplier of two was achieved. Compared to the five-level conventional topologies, the proposed inverter can generate five-level inverter voltage step of 200 V and a maximum output voltage of 400 V with fewer number of switching devices, and better DC voltage utilization.

Fig. 18
figure 18

Experimental results when grid-port under unity power factor

Figure 19a shows the measured three-level line-to-line output voltage at grid side (VA2B2), the phase current at grid side (IB1), five-level line-to-line output voltage at load side (VA1B1), and the phase current at load side (IA1). It can be seen that the five-level voltage of the load VA1B1 and the three-level voltage of the grid VA2B2. The measured RMS voltage were 120 Vrms and 240 Vrms, respectfully, and RMS phase currents were 4.8 A and 2.4 A, respectively. In this testing condition, the modulation index was fixed at 0.8 and the peak switching frequency was 150 kHZ. Figure 19b shows the zoomed-in view of Fig. 19a. It can be seen clearly that the time/div is 10 us, therefore, the system is operating at very high switching frequency about 150 kHz. Hence, the significant reduction in flying capacitors size and the output filter requirements is a major achievement of the proposed five-level inverter compared to the conventional five-level topologies. The flying capacitors was chosen 5 µF whereas the output inductance filter was 200 µF. The employment of the silicon carbide devices made an important contribution in the overall converter size reduction.

Fig. 19
figure 19

a Experimental results for five-level and three-level output waveforms. b Experimental results, zoomed-in picture for five-level and three-level output waveforms

Figure 20a illustrates the measured flying capacitors voltages in the three phases, VC1, VC1, and VC3 and the current flowing into capacitor C1, iC1. The average voltages for all flying capacitors equal 200 V. It is the same as the input dc voltages, hence, VC1 = VC2 = VC3 = Vdc. It can be seen that the peak-to-peak voltage ripples over the flying capacitors is 12 V, about 6% of the average value. As a result, A multilayer ceramic capacitors of about 5 µF was used in the proposed inverter to replace a large size of electrolytic capacitor. Furthermore, the self-balancing of the flying capacitors voltages is another advantage of the proposed inverter when compared to the conventional NPC and FC multilevel inverter. The current flowing into capacitor C1 is also measured and has an rms value of about 4.16 A. Figure 20b illustrates the voltage stress of switches. The experimental results show the voltage stress for switches S2A and S2B is 200 V. The proposed topology has an even distribution of the voltage stress, and the voltage blocking for all switches are the same and equal to the input dc voltage.

Fig. 20
figure 20

a Experimental results for dc-link voltage, FC voltages and current flowing into capacitor C1. b Experimental results for voltage stresses of switches S2A and S2B

The converter transient response to the change in the load current is tested and the resulted waveforms are depicted in Fig. 21. The load current has step change from half to full load at time t1 and another step change back to the original value at time t2. As the current increase, the voltage ripple across the capacitors C1 and C2 is increased, but the average voltage is maintained at 200 V. The grid current iA1 is smoothly follow the change in the power, hence, the applied control technique has an excellent transient response performance.

Fig. 21
figure 21

Experimental results under transient response with step change in the load

The solar PV emulator from NHR (9200) is used to study the performance of the proposed inverter under different solar irradiance conditions. It is mainly used to evaluate the performance of the MPPT algorithm with built-in control panel to adjust the parameters of PV simulator for different scenarios. The experimental result under variable irradiance condition is shown in Fig. 22. Initially, the solar irradiance is set at 1000 W/m2, the grid voltage is 120 Vrms, the output load current is 2.4 A and the output grid current is 4.6 A. As shown in channel 4 with green color, a step change of the solar irradiance from 1000 to 0 W/m2 is emulated. The current for both grid current and load current decreased to zero at the same time, hence, the load current and the grid current tracked the control reference from the MPPT control algorithm. The experimental result verifies the functionality of the system under different solar irradiance conditions.

Fig. 22
figure 22

Experimental results under variable irradiance condition

The measured efficiency is plotted in Fig. 23. The efficiency test was carried out with the condition that the output power was equal for the two ports. The measured output power ranges from 100 to 2000 W. It is divided equally between the two-output port, for example, when measuring 200 W, the load port is 100 W and the grid port is 100 W. For this condition, a peak efficiency of 96.3% was achieved at 100 W. The efficiency curve in Fig. 23 takes this shape because the switching losses are dominant when low power is derived. This is because the rms value of the output current is very small, hence a small current flow through the power devices resulting in small conduction losses. However, when high power is derived, the conduction losses become dominant. The switching losses kept the same, and with high current flow through power devices, the conduction losses become dominant, hence, the efficiency curve starts decreases. Moreover, using the fast speed of silicon carbide devices, the circuit benefited from the created stray inductance to achieve soft switching and further improvement in the efficiency performance is achieved. The efficiency is about 3% higher than the efficiency of the conventional topology in [12] which was obtained at 93.3%. The main reason is that six extra power switching devices are involved in the conventional topology, which generate higher conduction losses.

Fig. 23
figure 23

Measured efficiency curve of the proposed inverter

7 Conclusion

Topology based on a three-phase, three-port, five-level switched capacitor is presented in this paper. The converter operation principles and control strategy under unity power factor were analyzed and presented. The circuit employs silicon carbide devices to increase the efficiency and improve the performance of the system. The prototype was fabricated to operate in 240 V/120 V VAC, and the DC bus was set to 200 VDC. The experimental results show that a peak conversion efficiency of 96.3% was achieved. Contrary to the conventional five-level inverter, the proposed topology has single stage power converter with boosting functionality and employs 25% less switching devices. Furthermore, the employed flying capacitors in the proposed topology are 50% less with self-balancing capability. The topology utilized the switched capacitor unit in the front-end stage to replace the traditional DC–DC converter; therefore, the large inductor could be removed, replacing with small capacitors. The back-end H-bridge inverter generates five voltage levels without clamping diodes or flying capacitors. Moreover, using silicon carbide devices enabled the converter to run at high switching frequency (150 kHz). Hence, a very small multilayer ceramic capacitors of about 5 µF were used, and very small size output filter with values 200 µH and 1.2 µF can be realized. As a result, a very small voltage ripples of about 6% is obtained. Such a reduction in converter size cannot be achieved without using the silicon-carbide devices. The proposed inverter can be used on the grid-connected PV system, and the application also can be extended to the off-line PV system such as houses, traction and pumps.