
BLDC Motor FOC Control
Advanced Motor Control with STM32 and Field-Oriented Control
Project Overview
Developed a sophisticated Brushless DC (BLDC) motor control system centered on an STM32 microcontroller, integrating the Modbus protocol over RS485 for real-time communication and control. This system implements both open-loop and closed-loop Field-Oriented Control ($ ext{FOC}$), with the closed-loop implementation featuring precise PID tuning and relying on SPI-based encoder feedback managed via timer interrupts. The Modbus processing itself was executed using UART interrupt-driven logic. For user interaction and safety, the system featured an OLED screen to display the current motor speed and an emergency stop button. All components, including the custom control circuitry, were integrated onto a single, custom-designed and fabricated PCB.
FOC Algorithm
Industry-standard Field-Oriented Control
Real-Time Control
High-frequency PWM and feedback control
Industrial Protocol
Modbus RS485 communication
Project Demo in Action
Key Features
STM32 microcontroller with HAL library
Field-Oriented Control (FOC) algorithm implementation
Modbus RS485 serial communication
Closed-loop PID control tuning
SPI-based encoder feedback
UART interrupt-driven data handling
Custom PCB design and fabrication
Real-time motor speed and current monitoring
Technologies Used
3D CAD Models
BLDC Motor
Housing Top
Housing Bottom
PCB
Interested in This Project?
Have questions about the technical implementation, want to collaborate, or discuss similar robotics projects? Let's connect!
