Two-layer 3-phase BLDC controller in KiCad — STM32G431 FOC MCU with on-board STM32F103 SWD debugger, IR2104 half-bridges, and 3-shunt current sensing via the G431's internal op-amps.
BLDC Project is an open-source printed circuit board by yussufadel8, from the yussufadel8/BLDC-Motor-Controller-STM32 repository on GitHub, published under the MIT licence. It is a 2-layer board of 85 × 65 mm with 128 parts on 142 nets, routed with 730 tracks and 184 vias.
It is built around the CH340C, IR2104PBF and AMS1117-3.3, with the 1N5819WS and RU3560L among its other parts. Its parts include 51 capacitors, 40 resistors, 9 diodes, 8 ICs and 6 transistors. It belongs with the robots and motor control and interfaces and adapters boards and the STM32 boards of this library.
A three-phase BLDC motor driver board designed in KiCad 10. The board pairs an STM32G431 motor-control MCU with an on-board STM32F103 debug/programmer bridge, three IR2104-driven half-bridges, and low-side shunt current sensing on all three phases.
Status: board revision V1.0, layout complete and not yet fabricated. Firmware is planned and will live in this repository.
Board views
Top copper
Bottom copper
Overview
Board size
85.0 × 65.0 mm
Stackup
2 layer, 1.6 mm FR4 (35 µm Cu)
Motor MCU
STM32G431C8T6 (LQFP-48)
Debug MCU
STM32F103RDT6 (LQFP-64)
Gate drivers
3 × IR2104 (bootstrap half-bridge)
Power stage
6 × RU3560L N-MOSFET (TO-252)
Current sensing
3 × 10 mΩ low-side shunt → G431 internal op-amps
USB–UART
CH340C
Power in
Deans (T-plug) connector, fused
Motor out
3-pin screw terminal
Rails
Buck converter → AMS1117-3.3
Design structure
The schematic is hierarchical, rooted at BLDC_Project.kicad_sch:
text
BLDC_Project.kicad_sch Root — power input, fuse, buck + LDO rails, USB connectors
├── Inverter.kicad_sch 3 × IR2104 half-bridge, 6 × MOSFET, phase shunts
├── G431.kicad_sch STM32G431 motor MCU, current-sense front end, CH340C UART
└── untitled.kicad_sch STM32F103 USB/SWD bridge to the G431
Key inter-sheet nets:
CH1 / CH2 / CH3 — PWM inputs to the three gate drivers
SD — global shutdown to all IR2104s
ISENS_{U,V,W}_{P,N} — differential shunt taps; ISENS_*_OP are the op-amp outputs
PHASE_{U,V,W} — half-bridge outputs to the motor terminal
BATT_SENS — battery voltage divider to ADC
F103_TO_G431_{SWDIO,SWCLK,NRST} — on-board debug link
Repository contents
text
BLDC_Project.kicad_pro Project file
BLDC_Project.kicad_sch Root schematic
Inverter.kicad_sch Power stage sheet
G431.kicad_sch Motor MCU sheet
untitled.kicad_sch F103 debug bridge sheet
BLDC_Project.kicad_pcb PCB layout
BLDC_Project.kicad_dru Custom design rules
BLDC_Project.csv Bill of materials
BLDC_Project-job.gbrjob Gerber job file
New_Library.kicad_sym Project symbol library
Images/ 3D render and layer plots
Design rules
BLDC_Project.kicad_dru defines two clearance zones:
0.25 mm inside the courtyards of U3 (F103) and U4 (G431) — 0.5 mm pitch QFP escape
0.30 mm everywhere else
Default net class: 0.25 mm track, 1.0 mm via / 0.4 mm drill, 0.24 mm clearance.
Opening the project
Requires KiCad 10.0 or newer (file format version 20260206).
bash
git clone https://github.com/yussufadel8/BLDC-Motor-Controller-STM32.git
cd BLDC-Motor-Controller-STM32
kicad BLDC_Project.kicad_pro
Custom footprints
Several parts use footprints from a personal library prefixed Yooosf: — the Deans connector, fuse holder, inductors, electrolytic caps and slide switches. These resolve through the global footprint library table, so a fresh clone will show unresolved footprints until that library is added under Preferences → Manage Footprint Libraries.
Bill of materials
BLDC_Project.csv is exported from the schematic (~100 placed components across 41 lines). Passives are 0603/0805/1206 SMD with hand-solder pads; the power MOSFETs and shunts are TO-252 and 2512 respectively, so the board is hand-assemblable throughout.
Regenerate after schematic changes: Eeschema → Tools → Generate Bill of Materials.
Manufacturing
Plot Gerbers to a gerbers/ directory (Pcbnew → File → Plot), then Generate Drill Files. The plot settings currently point at a local Downloads folder — change the output directory before plotting.
Recommended checks before ordering:
DRC clean against BLDC_Project.kicad_dru
ERC clean in Eeschema
Verify shunt-resistor Kelvin connections and gate-drive loop areas in the 3D viewer
Confirm the fabricator supports 0.25 mm / 0.4 mm minimum trace and drill
Firmware
Planned. Firmware for the STM32G431 (FOC / six-step commutation) and the STM32F103 USB-SWD bridge will be added here under firmware/.
This repository contains KiCad 9.0.2 schematics for a pressure‑control system built around an ESP‑12E module, dual precision pressure measurement channels, high‑side battery/adapter power path control, and isolated…
3 channel bench supply with current and voltage plotting
163 parts
Questions
How big is the BLDC Project PCB?
It measures 85 × 65 mm and has 2 copper layers, 1.6 mm thick.
What parts does the BLDC Project use?
128 parts, built around the CH340C, IR2104PBF, AMS1117-3.3 and 1N5819WS. 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.
Where can I download the BLDC Project KiCad files?
From the yussufadel8/BLDC-Motor-Controller-STM32 repository on GitHub, at the commit this page was made from: the board is BLDC_Project.kicad_pcb and its schematic BLDC_Project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the BLDC Project design in my own project?
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).