Every solar inverter and UPS does the same magic trick: it takes DC — a battery, a solar string, a rectified mains bus — and turns it into the 230 V, 50 Hz sine wave your wall socket delivers. The circuit that does it is the full-bridge inverter: four switches in an H, a high-frequency switching pattern called SPWM, and an LC filter that irons the switching ripple into a clean sine. This article builds one on paper — 400 V DC in, 230 V AC out at 500 W — with the modulation index, the filter, the switch losses and the dead time all worked out.
Figure 1: A full-bridge inverter (a) — 400 V DC in, Q1–Q4 in an H-bridge, L = 3.3 mH and C = 2.2 µF filtering the output into 230 V RMS / 50 Hz across a 105 Ω load; the chart (b) shows the filtered 50 Hz sine with a 324 V peak against the ±400 V bus limits over one 20 ms mains period. (Schematic, not to scale.)
How it works — flip the bus, then shape the sine
The bridge has two legs: Q1 above Q3 on the left, Q2 above Q4 on the right. Turn on the diagonal pair Q1 and Q4, and the left end of the load (point A) is pulled to +400 V while the right end (point B) is pulled to ground — the load sees +400 V. Turn on the other diagonal, Q2 and Q3, and the load sees −400 V. Switch between the two diagonals 20,000 times a second and the load sees a high-frequency square wave flipping between +400 V and −400 V. That is not mains yet — but if the time spent on the positive diagonal is varied smoothly, following a 50 Hz sine wave, the average voltage over each switching period follows that sine. That technique is SPWM (sinusoidal pulse-width modulation): a 50 Hz sine reference is compared with a 20 kHz triangle wave, and the bridge switches whenever they cross.
The depth of the sine is set by the modulation index, m — the ratio of the sine reference to the triangle peak. The fundamental output is simply Vpk = m × Vdc. We want a 230 V RMS sine, whose peak is 230 × √2 = 325 V, so from a 400 V bus we need m = 325 / 400 = 0.81. Keep m below 1 and the output stays a clean sine; push it past 1 (overmodulation) and the peaks flatten toward a square wave, which is more volts but far more distortion.
Worked example — the load and the filter
Our design delivers 500 W into a resistive load. With Vpk = 0.81 × 400 = 324 V, the RMS voltage is 324 / √2 = 229 V, so the load resistance is R = 229² / 500 = 105 Ω. The load current is Irms = 500 / 229 = 2.18 A, with a peak of 2.18 × √2 = 3.09 A.
The bridge output is still a 20 kHz switching waveform, so it passes through an LC low-pass filter before the load. The filter's cutoff must sit far above 50 Hz and far below 20 kHz — 1.9 kHz is a good middle. With C = 2.2 µF, the inductor is L = 1 / ((2Ï€ × 1900)² × 2.2 µF) = 3.3 mH, giving fc = 1 / (2Ï€√(3.3 mH × 2.2 µF)) = 1868 Hz. The filter sees the switching ripple as a voltage of about the bus size, so the ripple current is ΔIL = Vdc × 0.25 / (L × f_eff). With unipolar SPWM the two legs switch on opposite half-cycles, so the filter sees an effective frequency of 2 × 20 kHz = 40 kHz: ΔIL = 400 × 0.25 / (3.3 mH × 40 kHz) = 0.76 A peak-to-peak, about 25% of the 3.09 A load peak — acceptable, and the capacitor turns that current ripple into only ΔVc = 0.76 / (8 × 40 kHz × 2.2 µF) = 1.08 V peak-to-peak of voltage ripple on the output, less than half a percent of the 324 V peak. The switching harmonics themselves are attenuated by (fc / fsw)² = (1.9 / 20)² = 0.0087, or −41 dB. That is the difference between SPWM and a plain square wave: a square wave's distortion (THD) is 48.3%, while a filtered SPWM output measures under 3%.
The switches — what four MOSFETs actually lose
Each switch must block the full 400 V bus, so a 500 V part leaves too little margin for spikes — we use 600 V MOSFETs. The IPW60R041C6 (Infineon CoolMOS, 600 V, Rds(on) 41 mΩ maximum at 10 V gate, 77.5 A continuous, TO-247 — verified from Infineon's product page) is a good fit: 600 V against a 400 V bus is a comfortable 50% margin, and 77.5 A against a 3.09 A peak is enormous headroom.
Each switch conducts for half of every mains cycle, so its RMS current is Irms / √2 = 2.18 / 1.414 = 1.54 A. Conduction loss per switch is 1.54² × 0.041 = 0.098 W, or 0.39 W for all four — almost nothing, which is what 41 mΩ buys you. Switching loss is the bigger term: with unipolar SPWM each switch switches at 20 kHz during its own half-cycle, so 10 kHz on average, and with about 100 ns of combined rise and fall time and an average switched current of about 2 A, each switch loses ½ × 400 V × 2 A × 100 ns × 10 kHz = 0.40 W, or 1.60 W for all four. Add the filter inductor's copper (0.2 Ω × 2.18² = 0.95 W) and roughly 2.5 W for body-diode recovery, snubbers and the control supply, and the total loss is about 5.5 W against 500 W out — an efficiency of about 98.9% on paper, and 96–98% on a real bench once every small loss is counted. A 500 W inverter that throws away only a few watts is why modern solar inverters barely need a heatsink.
Dead time — the 500 nanoseconds that save the bridge
One rule is absolute: the two switches in one leg must never be on at the same time. If Q1 and Q3 conduct together, they short the 400 V bus through two 41 mΩ resistances — in theory nearly 5,000 A, and in practice the bus inductance limits the spike but the switches still die. So every switching event inserts a dead time, a short gap where both switches in a leg are off. With 0.5 µs of dead time at 20 kHz, the lost voltage is ΔV = Vdc × 2 × t_dead × fsw = 400 × 2 × 0.5 µs × 20 kHz = 8 V peak, about 2.5% of the 324 V output — small, and good controllers compensate for it. Make the dead time too long and the distortion grows; make it too short and the bridge shoots through. Half a microsecond is a sensible middle for 20 kHz.
Design it for something else — a 12 V battery inverter
The same bridge works from a car battery, with a transformer doing the step-up. A square-wave bridge from 12 V has a fundamental peak of 4 × 12 / Ï€ = 15.3 V, so to reach a 325 V peak on the secondary the transformer needs a turns ratio of 325 / 15.3 = 21:1. For 100 W out, the battery must supply 100 / (0.9 × 12 V) = 9.3 A — and the low-voltage side is where the current lives. An IRFZ44N (55 V, 17.5 mΩ — from our push-pull converter article) carries 9.3 / √2 = 6.55 A RMS per switch and loses 6.55² × 0.0175 = 0.75 W each in conduction. That is the classic trade of the low-voltage inverter: the switches are cheap, but they carry ten times the current of the 400 V design, and the transformer adds its own size and loss. It is also why real solar inverters boost to a 400 V bus first and then invert — high voltage means low current, and low current means small losses.
Key points to remember
- A full bridge flips the DC bus across the load: Q1 + Q4 on gives +400 V, Q2 + Q3 on gives −400 V; SPWM varies the duty smoothly to trace a 50 Hz sine.
- Worked example: with m = 0.81 and a 400 V bus, Vpk = 324 V (229 V RMS); a 500 W load is 105 Ω, drawing 2.18 A RMS with a 3.09 A peak.
- The LC filter (L = 3.3 mH, C = 2.2 µF, fc = 1.9 kHz) leaves 0.76 A pk-pk of ripple current and only 1.08 V pk-pk of output ripple; switching harmonics are cut by 41 dB, and THD falls from 48.3% (square wave) to under 3%.
- 600 V MOSFETs (IPW60R041C6, 41 mΩ, 77.5 A) lose 0.098 W each in conduction and 0.40 W each in switching; total losses are about 5.5 W, so efficiency is roughly 98% on paper, 96–98% in practice.
- Dead time is mandatory: 0.5 µs at 20 kHz costs 8 V peak (2.5%), but without it the two switches in a leg short the 400 V bus.
- Same bridge from a 12 V battery: a square wave's fundamental is 15.3 V peak, so a 21:1 transformer reaches 325 V peak — but the battery side carries 9.3 A for 100 W, and each IRFZ44N loses 0.75 W in conduction.
