My implementation of Field-Oriented Control(FOC) on STM32 following DengFOC's tutorial
DengFOC's tutorial: DengFOC
I first used STM32G4 Nucleo-64 board from motor control kit (used on open loop speed control case). When working on closed loop position control, I found SPI communication is not working on that board. Although spent lots of time on it, I found it hard to debug.
Thus, I switched to bluepill (STM32F103C8T6) from then. If anybody can figure out the SPI communication problem, please Email me or submit a pull request. Thank you!
iPower Motor GM3506 Brushless Gimbal Motor w/ AS5048A Encoder link