DC-AC · Voltage-Source Inverter · Virtual Lab

Single-Phase Half-Bridge Inverter Simulator

An advanced, physics-accurate simulator of the single-phase half-bridge (DC-AC) inverter — two switches and a split-capacitor DC bus that swing the load between ±Vdc/2. Choose square-wave or sinusoidal PWM (SPWM) modulation, sweep the modulation index ma and carrier ratio mf, and drive an R or R-L load — watching true pole-voltage, output-voltage and load-current waveforms on a real-time oscilloscope, validated live against Vo1 = 2·Vdc/π (square) and ma·Vdc/2 (SPWM), with total & fundamental RMS, %THD and a real harmonic-spectrum FFT that shows the SPWM sideband shift.

Single-phase half-bridge voltage-source inverter circuit diagram: DC bus split by two series capacitors into a mid-point, two switches S1 (top) and S2 (bottom) alternately connecting the load between +Vdc/2 and -Vdc/2 to produce a square or PWM AC output
Half-bridge inverter — a split-capacitor DC bus forms a Vdc/2 mid-point; switches S1/S2 swing the load between ±Vdc/2. Fundamental Vo1 = 2·Vdc/π (square).

Parameters

V
ma ≤ 1 = linear (Vo1 = ma·Vdc/2); > 1 = overmodulation.
Odd mf keeps the output half-wave symmetric.

Load

Adds a lagging current and filters the PWM ripple. L=0 → pure R.

Sampling & display

Points plotted per fundamental period

Presets

Waveforms to display

Waveforms — one fundamental period

sine ref carrier vo output vo fundamental io load current
LIVE

Harmonic spectrum & SPWM sideband shift (topic-specific)

Output-voltage THD (relative to fundamental)
FFT of the output. Square-wave = odd harmonics 3,5,7… (1/n). SPWM pushes the distortion up to sidebands around the carrier mf — raise mf and watch the bars move right, leaving the low-order spectrum clean.

Measurements

Live accuracy check — simulation vs closed-form theory

Fundamental output  
RMS & distortion  

What is a single-phase half-bridge inverter?

A half-bridge inverter is the simplest voltage-source DC-AC converter. Two series capacitors split the DC bus to form a mid-point at Vdc/2, and a single leg of two switches (S1 top, S2 bottom) connects the load between that mid-point and the switch node. Turning S1 on gives +Vdc/2; turning S2 on gives −Vdc/2. Alternating them at the desired frequency produces an AC output. The two switches must never conduct together (a dead-time prevents shoot-through).

Square-wave operation

The simplest control switches S1 for the first half-cycle and S2 for the second, giving a square wave of ±Vdc/2. Its Fourier series contains only odd harmonics:

vo(t) = (2Vdc/π) · Σ (1/n) sin(nω₁t), n = 1,3,5,…
Vo1(peak) = 4/π·(Vdc/2) = 2Vdc/π · Vo1(rms) = √2·Vdc/π ≈ 0.45·Vdc · Vrms = Vdc/2 · THD ≈ 48.3%

Sinusoidal PWM & the modulation index (topic-specific)

To make the output cleaner, sinusoidal PWM compares a sine reference of amplitude ma against a triangular carrier at mf = fc/f1 times the fundamental. In the linear region (ma ≤ 1):

Vo1(peak) = ma · Vdc/2 (linear) · harmonics appear around mf, 2mf, 3mf …

The low-order harmonics are almost eliminated — the distortion is pushed up to sidebands around the carrier frequency, where a small L-C filter removes it easily. This simulator's spectrum panel shows this directly: raise mf and watch the harmonic bars march to the right. For ma > 1 (overmodulation) the fundamental keeps rising but low-order harmonics reappear as the output saturates toward the square-wave limit 2Vdc/π.

R-L load & current

A real load has resistance and inductance. The inductance makes the current lag the voltage by φ = arctan(ωL/R) and filters the PWM ripple, so the current is far more sinusoidal than the voltage. The simulator integrates L·di/dt = vo − R·i to steady state, so the current waveform, its RMS and its THD are all exact.

Half-bridge vs full-bridge

InverterSwitchesOutput swingFundamental (square)
Half-Bridge2±Vdc/2Vo1 = 2Vdc/π
Full-Bridge4±VdcVo1 = 4Vdc/π

See the single-phase full-bridge inverter and the three-phase 180° / 120° VSI simulators.

Applications

Low-power UPS, small motor drives, induction heating, and as the building block for teaching PWM. The half-bridge is the two-switch foundation that the full-bridge and three-phase inverters extend.

Frequently asked questions

What is the output voltage of a half-bridge inverter?

Square-wave: peak ±Vdc/2, RMS Vdc/2, fundamental peak 2Vdc/π. With SPWM the fundamental peak is ma·Vdc/2 in the linear region.

What is the modulation index?

The ratio of the sine-reference amplitude to the carrier amplitude. ma ≤ 1 is the linear region (Vo1 = ma·Vdc/2); ma > 1 over-modulates toward the square-wave limit.

Why does SPWM reduce THD?

It moves the harmonics from low orders (3rd, 5th…) up to sidebands around the carrier frequency, which a small filter removes — leaving a clean fundamental.

Why is the current more sinusoidal than the voltage?

An inductive load has high impedance at the carrier frequency, so it filters the PWM ripple and the current lags by arctan(ωL/R).

Power4All · Half-Bridge Inverter interactive simulator. All waveforms are produced by numerical integration of the actual switching circuit and validated against closed-form theory.