Precision brushless DC motor drive system with Hall sensor hardware interrupts, digital PID speed regulation, and interactive PC configuration via USB CDC.
Fluctuating mechanical shaft loads cause severe RPM sag, commutation jitter, and destructive current spikes through power MOSFET stages. Standard open-source controllers fail to provide instant torque compensation and reliable host telemetry.
Developed a 6-step electronic commutation algorithm on STM32F407. Hall sensor capture is executed in hardware timer interrupts with sub-microsecond latency. Implemented discrete PID speed regulation and a USB CDC interface for real-time parameter tuning directly from a PC.