Skip to the content
2 layers85 × 65 mmBLDC Project, the printed circuit board in 3D

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.

Size
85 × 65 mm
Copper layers
2
Thickness
1.6 mm
Parts
128
Nets
142
Pads
469
Tracks, vias
730, 184
Pours
24
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
30 Jul 2026
Updated
30 Jul 2026

Overview

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.

Main components

5

README

README.md

BLDC_Project

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.

3D render of the assembled BLDC motor controller


Board views

Top copperBottom copper
Top copper layerBottom copper layer

Overview

Board size85.0 × 65.0 mm
Stackup2 layer, 1.6 mm FR4 (35 µm Cu)
Motor MCUSTM32G431C8T6 (LQFP-48)
Debug MCUSTM32F103RDT6 (LQFP-64)
Gate drivers3 × IR2104 (bootstrap half-bridge)
Power stage6 × RU3560L N-MOSFET (TO-252)
Current sensing3 × 10 mΩ low-side shunt → G431 internal op-amps
USB–UARTCH340C
Power inDeans (T-plug) connector, fused
Motor out3-pin screw terminal
RailsBuck 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:

  1. DRC clean against BLDC_Project.kicad_dru
  2. ERC clean in Eeschema
  3. Verify shunt-resistor Kelvin connections and gate-drive loop areas in the 3D viewer
  4. 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/.

Parts

128
QtyValueFootprintReferences
19100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC10, C11, C14, C15, C17, C24, C25, C26, C27, C33, C36, C37, C38, C41, C43, C44 +3
1210KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R5, R6, R16, R18, R21, R25, R26, R36, R37, R41, R42
91uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C19, C20, C29, C30, C32, C39, C47, C49
610RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR22, R23, R34, R35, R39, R40
61N5819WSDiode_SMD:D_SOD-323D1, D3, D4, D9, D10, D11
6RU3560LPackage_TO_SOT_SMD:TO-252-2Q1, Q2, Q3, Q4, Q5, Q6
510uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C5, C16, C23, C40
41.5KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR17, R31, R32, R33
410nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6, C18, C28, C31
422pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC21, C22, C34, C35
422uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC8, C9, C12, C13
31kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR7, R13, R14
31uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC42, C48, C50
32.2KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR20, R28, R30
322KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR19, R27, R29
3IR2104Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU6, U7, U8
3R010Resistor_SMD:R_2512_6332Metric_Pad1.40x3.35mm_HandSolderR24, R38, R43
3REDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD2, D6, D7
243KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2, R4
2470uFYooosf:CAPPRD350W60D800H2000C1, C2
268uHYooosf:IND_SIDMP-SP0730-100ML1, L2
28MhzCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mm_HandSolderingY1, Y2
2FerriteBeadInductor_SMD:L_0805_2012Metric_Pad1.05x1.20mm_HandSolderFB1, FB2
2SW_SPDTYooosf:SS-12D10G5_XKBSW1, SW2
2USB_B_MicroConnector_USB:USB_Micro-B_Wuerth_629105150521J4, J5
11.5nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC7
1100KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR45
11RResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR8
147kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR44
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Battery ConnectorYooosf:DEANSJ1
1Buck ConverterPackage_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm_ThermalViasU1
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU5
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ2
1Fuse_SmallYooosf:FUSE_0154004.DRF1
1STM32F103RDTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU3
1STM32G431C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU4
1Screw_Terminal_01x03TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_Type703_RT10N03HGLU_1x03_P9.52mm_HorizontalJ3

Similar boards

  • 2 layers100 × 100 mmESP12E, the printed circuit board in 3D

    ESP12E

    Mohamed-U3/Pressure-measuring-and-control-Board

    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…

    129 partsMIT
  • 2 layers139.7 × 88.9 mmCharge Controller, the printed circuit board in 3D

    Charge Controller

    jharvey/Charge_Controller

    MPPT hardware which uses FUGU firmware

    163 parts24
  • 4 layers101.6 × 53.3 mmZ80ctrlng, the printed circuit board in 3D

    Z80ctrlng

    jblang/z80ctrl

    AVR-based bootloader, I/O, and debugging for Z80-based computers

    65 parts73
  • 4 layers99.5 × 65 mmEcho, the printed circuit board in 3D

    Echo

    rh1tech/echo

    Echo: ESP32-Based VGA Board

    181 parts4
  • 4 layers85 × 56 mmAvrbrain, the printed circuit board in 3D

    Avrbrain

    jblang/avrbrain

    An AVR128DB64 development board

    64 parts1MIT
  • 4 layers85.6 × 54 mmFrank air, the printed circuit board in 3D

    Frank air

    rh1tech/frank-lab

    FRANK Board Laboratory (work-in-progress board prototopyes)

    184 parts4GPL-3.0
  • 2 layers100 × 102.6 mmDSP Regulator HAT RevB, the printed circuit board in 3D

    DSP Regulator HAT RevB

    Phil-CIA/Development-Station-Power-Supply

    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).