BLDC-FOC-Motor-Driver
Loredati-svg·BLDC-FOC-Motor-Driver·Hardware/FOC_Driver/FOC_Driver.kicad_pcb
About the BLDC-FOC-Motor-Driver PCB
BLDC-FOC-Motor-Driver is an open source STM32 PCB design by Loredati-svg, published on GitHub. It is a 4-layer board measuring 66 × 58.5 mm, with 92 components from 46 distinct parts.
Its main chip is the STM32G431CBUx, from the STM32 family. Other key parts include the DRV8323RHRGZR, USBLC6-2SC6, AP2112K-3.3, MA730 and MR30PW. By type, the board carries 38 capacitors, 30 resistors, 7 ICs, 6 transistors, 5 diodes and 2 connectors.
It belongs with the robotics & motion and power & battery designs in this gallery.
From the project
Single-motor BLDC/PMSM FOC driver: STM32G431 + DRV8323RH, 4-layer round PCB with on-board MA730 magnetic encoder. Motor block for a self-balancing robot. Designed in KiCad 10.
Single-motor BLDC / PMSM driver with sensored Field-Oriented Control (FOC). It is the motor-control building block for a two-wheeled self-balancing robot, and it also works as a standalone driver on the bench, commanded and monitored over USB.
Rev A is a test board: the motor is screwed to the centre of the PCB, with the magnetic encoder sitting right under the motor shaft.

Main components on the BLDC-FOC-Motor-Driver
BLDC-FOC-Motor-Driver bill of materials (BOM)
92 components, 46 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | DRV8323RHRGZR | QFN50P700X700X100-49N-D | IC1 |
| 1 | STM32G431CBUx | QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mm | U1 |
| 1 | USBLC6-2SC6 | SOT-23-6 | U2 |
| 1 | AP2112K-3.3 | SOT-23-5 | U3 |
| 1 | MA730 | QFN-16-1EP_3x3mm_P0.5mm_EP1.75x1.75mm | U4 |
| 1 | MR30PW | AMASS_MR30PW-M_1x03_P3.50mm_Horizontal | U5 |
| 1 | XT30PW | AMASS_XT30PW-M_1x02_P2.50mm_Horizontal | U6 |
| 6 | CSD18540Q5B | TDSON-8-1 | Q4, Q5, Q6, Q7, Q8, Q9 |
| 1 | 12Mhz | Crystal_SMD_ECX-32_Series_4Pin_3.2x2.5mm | Y1 |
| 1 | USB_C_Receptacle_USB2.0_16P | USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J1 |
| 1 | Motor phase wire pads (solder) | SolderWire-0.5sqmm_1x03_P4.6mm_D0.9mm_OD2.1mm | J3 |
| 1 | Polyfuse | Fuse_1206_3216Metric | F1 |
| 1 | SMBJ26A hongjiacheng | D_SMB | D1 |
| 1 | B5819W MDD(Microdiode Electronics) | D_SOD-123 | D2 |
| 1 | PMEG6010CEH | D_SOD-123F | D3 |
| 2 | LED | 0603_pol | D4, D5 |
| 1 | FerriteBead | 0603 | FB1 |
| 1 | 33u | L_Bourns_SRN6045TA | L2 |
| 2 | 22u | CP_Elec_6.3x5.4 | C1, C2 |
| 3 | 1u | C_0402_1005Metric | C3, C4, C8 |
Show 26 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | 100n | 0603 | C5 |
| 1 | 47n | 0603 | C6 |
| 2 | 1u | 0603 | C7, C34 |
| 6 | 10u | C_1206_3216Metric | C10, C12, C19, C20, C22, C23 |
| 1 | 22u | 1206 | C11 |
| 1 | 10u | 1210 | C13 |
| 9 | 100n | 0402 | C14, C32, C33, C36, C37, C38, C39, C40 +1 |
| 2 | 4u7 | 0805 | C15, C35 |
| 2 | 1u | 0402 | C16, C17 |
| 3 | 100n | C_0603_1608Metric | C18, C21, C24 |
| 2 | 12p | 0402 | C27, C28 |
| 3 | 2n2 | 0402 | C29, C30, C31 |
| 2 | 5k1 | R_0402_1005Metric | R1, R2 |
| 3 | 50m | R_Shunt_Vishay_WSK2512_6332Metric_T1.19mm | R3, R14, R15 |
| 1 | 17.8k | 0402 | R4 |
| 3 | 100k | 0402 | R5, R7, R28 |
| 2 | 10k | 0402 | R6, R22 |
| 1 | 75k | 0402 | R8 |
| 3 | R | 0402 | R9, R10, R12 |
| 1 | 0 | 0402 | R11 |
| 1 | 47k | 0402 | R13 |
| 6 | 10 | R_0603_1608Metric | R16, R17, R18, R19, R20, R21 |
| 2 | 1k | 0402 | R23, R24 |
| 3 | 100 | 0402 | R25, R26, R27 |
| 1 | 100k | 0603 | R29 |
| 1 | 10k | 0603 | R30 |
BLDC-FOC-Motor-Driver design files
The KiCad project lives in the Loredati-svg/BLDC-FOC-Motor-Driver repository on GitHub; these links point at the commit this page was built from.
BLDC-FOC-Motor-Driver: common questions
What microcontroller does the BLDC-FOC-Motor-Driver use?
The BLDC-FOC-Motor-Driver is built around the STM32G431CBUx, from the STM32 family.
How big is the BLDC-FOC-Motor-Driver PCB?
The BLDC-FOC-Motor-Driver measures 66 × 58.5 mm, has 4 copper layers and is 1.6 mm thick.
How many components are on the BLDC-FOC-Motor-Driver?
92 components, from 46 distinct parts. The full bill of materials is listed on this page.
Where can I download the BLDC-FOC-Motor-Driver design files?
From the Loredati-svg/BLDC-FOC-Motor-Driver repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the BLDC-FOC-Motor-Driver design in my own project?
The repository has no license, so all rights stay with Loredati-svg. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the BLDC-FOC-Motor-Driver without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
Type g
google
169 × 30 mm24 parts2LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9k