Skip to content

Rodrogamby/spwm

Repository files navigation

Sinusoidal Pulse Width Modulation

Generate three phase AC signals through inductive loads

This program can be used as a driver for the following two-level inverter:
The schematics of a two-level inverter with passive diode front-end, DC-link capacitor and a motor equivalent connected. Snubbers and anti-parallel diodes are not shown.
Image from switchcraft.org

To adjust the frequency of the fundamental waves, adjust the following:

$\text{TIM6}_{\text{Period}}=\frac{32\text{M}}{\text{Sine}_f \text{Q}_\text{Levels} \text{TIM6}_\text{Prescaler}}$

The lookup-gen branch can be used to generate lookup tables for the three phases.

About

DC-AC inverter through bipolar SPWM for STM32H533RE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages