Loading files…
[!NOTE] This project is currently in active development. Features and documentation are subject to change.
This project aims to develop a high-precision Brushless DC (BLDC) motor controller from scratch, covering both hardware and firmware aspects. The controller is designed for advanced motor control applications, leveraging a powerful STM32 microcontroller, a dedicated motor driver IC, and comprehensive sensing capabilities for precise operation and rotor position estimation.
The core of the system is a custom two-board stack: an MCU board housing the main control logic and a power board managing motor drive and sensing.
The project is organized into logical directories to enhance maintainability and readability:
simulation/: Contains code and files related to motor control simulation.mechanical/: Houses all mechanical design files (CAD models, part designs).electronics/: Stores KiCad project files for both the MCU and Power PCBs, including schematics and PCB layouts.firmware/: Contains all the embedded software for the STM32 microcontroller.controller/: Specific implementations of motor control algorithms (trapezoidal, FOC).common/: Shared utilities and communication definitions across different parts of the project.The mechanical aspects of this project are centered around integrating the custom electronics with an off-the-shelf . It's important to note that, for this specific project, the , and there are no plans to re-wrap the wire around the coils. The folder contains various CAD files (FreeCAD) for components like the rotor adapter, chassis, and PCB cutouts, ensuring a perfect fit and robust assembly.
mechanicalThe electronics consist of two interconnected custom-designed Printed Circuit Boards (PCBs), designed using KiCad. Both boards are 4-layer designs to facilitate efficient signal routing and power integrity. A Molex PCB stack connector is used to establish a robust electrical connection between the MCU and Power PCBs.
The top PCB serves as the brain of the controller, housing the main microcontroller and various sensors and interfaces for user interaction and precise feedback.
| Top Layer | Layer 1 | Layer 2 | Bottom Layer | 3D Top View | 3D Bottom View |
|---|---|---|---|---|---|
MCU PCB Key Components:
MCU PCB v1.0 Release Package:
The bottom PCB handles the high-current motor driving functions and essential power monitoring.
| Top Layer | Layer 1 | Layer 2 | Bottom Layer | 3D Top View | 3D Bottom View |
|---|---|---|---|---|---|
Power PCB Key Components:
Power PCB v1.0 Release Package:
The firmware, developed for the STM32F4 microcontroller, is the intelligence behind the motor control. It includes:
controller directory, to provide flexible and high-performance motor driving capabilities.The firmware architecture and design decisions will be documented in the future.
The simulation directory contains resources for simulating the BLDC motor system and visualizing the sensor data in real time. This allows for testing and validating control algorithms and system behavior in a virtual environment before deployment on the hardware. The bldc.atta file can be opened with Atta, and it implements a basic motor model simulation and plotting of sensor data.
Instructions on how to run the BLDCM simulation with Atta will be added in the future
Below are some pictures/videos taken during the development. The controller design and calibration procedures will be explained in depth in the future :)
This project is licensed under the MIT License - check LICENSE for details.
No comments yet. Be the first to ask about this board.