A previous blog post listed Mbed code for generating sinusoidal PWM using an STM32F103 Nucleo board. A simple H-bridge was connected to the Nucleo board and used to drive a loud speaker. The circuit happily delivered more than 5W to a load during testing and would have delivered more had I found a suitable power supply. The H-bridge circuit makes use of IRS2003 gate drivers as shown below.
The current (red) and voltage (yellow) waveforms produced by the H-Bridge are shown below
The video clip below allows you hear the 50Hz and 10kHz harmonics produced by the circuit.