Power Electronics & Embedded Firmware · IEEE Xplore PCIM Asia 2025
An algorithmic pulse-width modulation framework for 2-level three-phase voltage source inverters. Simulates Sinusoidal PWM (SPWM), Third-Harmonic Injection (THIPWM), Space Vector PWM (SVPWM), and Discontinuous PWM (DPWM1), reducing inverter switching losses by 33% and extending DC-bus utilization by 15.5% on STM32 ARM Cortex-M4 hardware.
Three-phase balanced voltages \((v_a, v_b, v_c)\) project onto a complex orthogonal stationary plane \((\alpha, \beta)\) via the Clarke transformation:
Clarke Stationary Reference Frame
In pure Sinusoidal PWM (SPWM), the maximum modulation index without overmodulation is \(m_a = 1.0\), yielding fundamental line-to-line RMS voltage \(V_{LL} = \frac{\sqrt{3}}{2\sqrt{2}} V_{dc} \approx 0.612 V_{dc}\). Space Vector PWM adds an optimal zero-sequence triplen harmonic, extending the linear modulation ceiling by:
Discontinuous PWM1 (DPWM1) clamps each inverter phase leg to the positive or negative DC rail for 60° of each fundamental cycle (120° total per cycle). Because no switching occurs during the clamped interval, total inverter switching cycles drop by exactly one-third: \[ \Delta P_{\text{sw}} = \frac{120^\circ}{360^\circ} = 33.33\% \]
Select modulation techniques and adjust the modulation index \(m_a\) and carrier frequency ratio \(m_f\). The browser computes switching pulses and performs a genuine client-side Discrete Fourier Transform (FFT) in real time.
Real-time switching pulse calculation and harmonic distortion analysis
Each bar is calculated via direct Fourier integration \(\sum_{n=0}^{N-1} v[n] e^{-j 2\pi k n / N}\) over the synthesized waveform. Note the fundamental at \(h=1\) and the high-frequency switching sidebands clustered around \(m_f\) and \(2m_f\).