jkboyce / svpwm-stm32

SVPWM motor control with a STM32 microcontroller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svpwm-stm32

Space vector pulse width modulation (SVPWM) motor control with a STM32 microcontroller. See the related blog post for a video demo and more information.

This project is written in Rust. It specifically targets the NUCLEO-F446RE development board, with an attached X-NUCLEO-IHM17M1 motor driver built around the STSPIN233 motor driver IC. The Discovery Book for embedded Rust development has detailed instructions on how to set up a Rust development environment targeting Arm microcontrollers. (The book focuses on the STM32F3 Discovery Kit board, which is very similar to the NUCLEO used in this project.)

When OpenOCD, GDB, and Rust are set up, you can compile and run with:

cargo run --release

About

SVPWM motor control with a STM32 microcontroller

License:MIT License


Languages

Language:Rust 99.1%Language:GDB 0.9%