STM32-Actuator Using STM32F405RGTx Field oriented control. Code flowchart: TIM1 interrupt outputs 20KHz PWM signal. FOC algorithm runs at 10KHz.