For those who are getting started with STM32 programming, this Electric Motor PID Experiment tutorial can be a good starting point. It uses an STM32F103C8T6. Covers project setup, peripheral initialization, timer interrupts, encoder input, PWM, USB serial debugging, and PID control.
1 Like