
BLDCM Power
brenocq/bldc-motor
High-precision BLDC motor and controller development from scratch (in progress...)

High-precision BLDC motor and controller development from scratch (in progress...)
BLDCM MCU is an open-source printed circuit board by brenocq, from the brenocq/bldc-motor repository on GitHub, published under the MIT licence. It is a 4-layer board of 30.2 × 20.5 mm with 91 parts on 87 nets, routed with 823 tracks and 147 vias.
It is built around the STM32F446RET6, SK6805E-J and AS5048A, with the ISM330DHCX, SN74LV1T34DBVR-TP and ECS-3225MVLC-240-CN-TR among its other parts. Its parts include 28 capacitors, 20 ICs, 3 resistors, 1 connector and 1 switch. It belongs with the robots and motor control boards and the STM32 boards of this library.
[!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 EM3215 BLDC motor. It's important to note that, for this specific project, the motor's original windings are being utilized, and there are no plans to re-wrap the wire around the coils. The mechanical folder contains various CAD files (FreeCAD) for components like the rotor adapter, chassis, and PCB cutouts, ensuring a perfect fit and robust assembly.
The 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 :)
https://github.com/user-attachments/assets/e86b0316-7ecf-4e15-9d3b-c0315d690438
This project is licensed under the MIT License - check LICENSE for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 37 | Test point 0.5mm | BrenoCQ:TP_0.5mm | TP1, TP2, TP10, TP11, TP12, TP13, TP14, TP15, TP16, TP17, TP18, TP19, TP20, TP21, TP22, TP23 +21 |
| 25 | 100nF | BrenoCQ:C_0402 | C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24 +9 |
| 16 | SK6805 | BrenoCQ:LED-1515 | U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19 |
| 2 | 10K | BrenoCQ:R_0402 | R1, R4 |
| 1 | 10uF | BrenoCQ:C_0805 | C28 |
| 1 | 1uF | BrenoCQ:C_0402 | C1 |
| 1 | 4.7uF | BrenoCQ:C_0603 | C6 |
| 1 | 500 | BrenoCQ:R_0402 | R5 |
| 1 | 52991-0308 | BrenoCQ:52991-0308 | J1 |
| 1 | AS5048A | BrenoCQ:TSSOP-14 | U20 |
| 1 | ECS-3225MVLC-240-CN | BrenoCQ:Crystal_3225 | Y1 |
| 1 | EVPAKE31A | BrenoCQ:EVPAKE31A | K1 |
| 1 | ISM330DHCX | BrenoCQ:LGA-14L | U3 |
| 1 | SN74LV1T34DBVR | BrenoCQ:SOT-23-5 | U2 |
| 1 | STM32F446RE | BrenoCQ:LQFP64 | U1 |

brenocq/bldc-motor
High-precision BLDC motor and controller development from scratch (in progress...)

increpare/PuzzleScript-labs
firehose of mostly ai-written puzzlescript projects. main project is https://github.com/increpare/puzzlescript/


korken89/ovio_core
Work in progress. PCB have arrived for v1.0 of the board and bring-up has started.

MohamadAminGhanoum/IMU-board
planning to make a module that has small sensors on the pcbs, which will give me motion data, which i will track and recieve on either my phone or computer using the usb-c

thejamesrhodes/IMU-Quantisation-research-project
Research into quantisation effects in MEMS gyroscopes using custom STM32 hardware.

arudhranpk/VECTRON_V1
This is a custom made flight computer designed for sounding rockets.

dmanla/SecureConnectivityDevelopmentPlatform
A development platform which provides secure connectivity and data logging support while maintaining compatibility with Arduino-Mega hardware and software.

It measures 30.2 × 20.5 mm and has 4 copper layers, 1.6 mm thick.
91 parts, built around the STM32F446RET6, SK6805E-J, AS5048A and ISM330DHCX. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the brenocq/bldc-motor repository on GitHub, at the commit this page was made from: the board is electronics/BLDCM-MCU/BLDCM-MCU.kicad_pcb and its schematic electronics/BLDCM-MCU/BLDCM-MCU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).