This article covers a 9 level cascaded multilevel inverter simulated in MATLAB Simulink. The video above shows the simulation running. Below you will find how the topology works, how the model is usually built, and what to check in the results.
What is a 9 level cascaded multilevel inverter?
A multilevel inverter builds an AC output from several DC voltage steps instead of a single high and low value. A two-level inverter switches between only two voltages. A 9 level inverter can produce nine voltage values, for example -4Vdc, -3Vdc, -2Vdc, -Vdc, 0, +Vdc, +2Vdc, +3Vdc and +4Vdc. The output looks like a staircase that follows a sine wave more closely.
In a cascaded H-bridge design, several single-phase full bridges are connected in series. Each bridge has its own DC source and can output +V, 0 or -V. The bridge outputs add together to form the final waveform.
Why use more voltage levels?
- Lower harmonic distortion: a staircase with more steps is closer to a sine wave, so the output needs less filtering.
- Lower voltage stress: each switch only handles the voltage of one DC source, not the full output voltage.
- Smaller dv/dt: each step is small, which is gentler on the load and reduces electromagnetic interference.
- Modular structure: bridges are identical, so the circuit is easy to extend or repair.
Ways to get nine levels
With equal DC sources, a cascaded H-bridge with n bridges gives 2n + 1 levels. Nine levels therefore need four bridges and four isolated sources, with 16 switches in total.
You can reduce the part count with unequal sources. Two H-bridges fed with Vdc and 3Vdc can also produce nine levels, using 8 switches. The trade-off is that the two sources must keep a precise 1:3 ratio.
Other topologies reach nine levels with fewer isolated sources. The switched-capacitor 9 level inverter is one example, and a hybrid multilevel inverter with a coupled inductor is another.
Building the model in Simulink
The exact blocks depend on your version of MATLAB, but the structure is usually the same.
- DC sources: add one DC voltage source for each H-bridge, with the values matching your chosen configuration.
- H-bridges: build each bridge from four switches (MOSFET or IGBT blocks with anti-parallel diodes) from Simscape Electrical. Connect the bridge outputs in series.
- Load: start with a series resistor-inductor (RL) load. This is a common test load for single-phase inverters.
- Gate signals: generate the pulses with a PWM scheme or a staircase switching pattern (see below).
- Measurement: add voltage and current measurement blocks and scopes. Use a Powergui block to set the solver and run the FFT analysis.
Modulation options
Two approaches are common. In multicarrier PWM, a sine reference is compared with triangular carriers. Level-shifted carriers need one fewer carrier than the number of levels, so a 9 level inverter uses eight. Phase-shifted carriers give each bridge its own carrier, offset in phase from the others.
The alternative is fundamental-frequency staircase switching. Each switch changes state only a few times per cycle at calculated angles, which keeps switching losses low.
Simulation settings
- Use a small fixed step or a variable-step stiff solver, such as ode23tb, and keep the maximum step well below the carrier period.
- Set the carrier frequency high enough to give clean steps in the output.
- Run for several fundamental cycles so that the transient has settled before you analyze the waveform.
What to check in the results
First, count the levels in the output voltage scope. If you see fewer than nine steps, check the source values, the modulation index and the gate signals.
Next, look at the load current. With an inductive load it should be much smoother than the voltage, because the inductor filters the steps.
Finally, run an FFT analysis on the output voltage and current. Note the fundamental amplitude and the total harmonic distortion (THD). Increasing the modulation index raises the fundamental, but going too far can cause the top and bottom levels to be lost (overmodulation).
Common mistakes
- Connecting the DC sources so they share a ground. Each H-bridge needs its own isolated source.
- Missing dead time or a wrong gate signal that shorts a bridge leg.
- Using too large a solver step, which hides the switching detail and distorts the FFT.
- Comparing THD across runs with different numbers of analyzed cycles or different fundamental frequencies.
Related simulations
If you are new to the topic, start with the 7 level cascaded inverter simulation, which uses the same idea with fewer steps. For the basic building block, see the 3 level full bridge inverter. Once you understand how one H-bridge behaves, stacking them is straightforward.
Frequently asked questions
How many switches does a 9 level cascaded H-bridge inverter need?
With four bridges and equal DC sources, it needs 16 switches. With two bridges and sources in a 1:3 ratio, it needs 8 switches.
Does a 9 level inverter always have lower THD than a 5 level inverter?
In general, more levels give an output closer to a sine wave, so the distortion is usually lower. The actual figure depends on the modulation method, the switching frequency and the load, so measure it in your own model.
Do I need a filter at the output?
Often a small filter or an inductive load is enough, because the output already has small steps. Add an LC filter if you need a very clean sine wave.
Can I build this as hardware?
Yes, but you will need isolated DC supplies for the bridges, gate drivers and a controller that can generate the gate pulses. Verify the design in simulation first, including dead time and realistic switch models.