Abstract
Brushless DC (BLDC) motors are central to modern electric vehicle (EV) drivetrains, yet achieving high efficiency and stable torque under dynamic conditions remains a significant engineering challenge. This study presents the design and real-time embedded implementation of a motor control system realised on the STM32F103C8T6 microcontroller, together with a hardware-parameterised performance characterisation used to evaluate and cross-validate its behaviour. Two established control strategies—Trapezoidal Commutation and Field-Oriented Control (FOC)—were implemented independently on the same hardware platform under identical load conditions to enable a direct, unbiased comparison. The system incorporates Hall-effect sensor-based rotor position detection, closed-loop PI control (speed for Trapezoidal, d/q current for FOC), Direct Memory Access (DMA) for high-speed data acquisition, and a Controller Area Network (CAN) / Universal Asynchronous Receiver-Transmitter (UART) framework for real-time parameter transmission to a driver-facing display. Characterised performance results, derived from the implemented hardware's own rated parameters, show that FOC achieves a peak efficiency of 92% versus 86% under Trapezoidal Control, with torque ripple reduced by approximately 40% and peak current lowered from 50 to 44 A. The characterised thermal behaviour indicates that FOC maintains motor temperatures below 70 °C at full load, whereas Trapezoidal Control approaches critical thresholds under equivalent conditions. The modular architecture supports scalability across microcontroller tiers and EV configurations, providing a validated and deployable reference for energy-efficient BLDC drive systems.
Funding Information
  • Higher Technological Institute 10th of Ramadan