Skip to the content
8 layersFoc control, the printed circuit board in 3D

BLDC field-oriented-control board for a humanoid robot actuator. KiCad 10, Ø80 mm, 8 layers, 1.6 mm.

Copper layers
8
Thickness
1.6 mm
Parts
104
Nets
100
Pads
442
Tracks, vias
621, 249
Pours
25
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
22 Oct 2026
Updated
23 Oct 2026

Overview

Foc control is an open-source printed circuit board by sujaygouda123, from the sujaygouda123/foc-control repository on GitHub. It is an 8-layer board with 104 parts on 100 nets, routed with 621 tracks and 249 vias.

It is built around the STM32G474RET3, MCP2562FD-E/SN and LM5164DDAR, with the AS5047P-ATSM, DRV8353SRTAR and AP2112K-3.3 among its other parts. Its parts include 46 capacitors, 22 resistors, 7 ICs, 6 transistors and 5 connectors. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

12

README

README.md

FOC CONTROL REV A

BLDC field-oriented-control board for a humanoid robot actuator. KiCad 10, Ø80 mm, 8 layers, 1.6 mm.

TopBottom
Top side, 3D renderBottom side, 3D render

Main parts

FunctionPart
MCUSTM32G474RET3
Gate driverDRV8353S
MOSFETs6 × BSC040N10NS5 (100 V, 4 mΩ)
Current sensing3 × 1 mΩ low-side shunts
PositionAS5047P magnetic encoder (bottom side)
CAN FDMCP2562FD, 2 × XT30PW 2+2 (power + CAN)
Supplies2 × LM5164 (12 V, 5 V), AP2112K (3.3 V)

Stage 1 – single actuator

Stage 1 block diagram

Stage 2 – multiple actuators

Stage 2 wiring

  • One cable per link: VBUS + GND (16 AWG) and CAN-H / CAN-L as a twisted pair.
  • Two XT30 2+2 connectors per board (IN, OUT), 15 A continuous.
  • 120 Ω termination only at the two ends of each bus (JP1 on the last actuator).

Stackup

LayerUse
F.Cu, 2 ozComponents, power pours
In1GND
In2Signals
In3VBUS
In4GND
In5Signals
In6GND
B.Cu, 2 ozPhase pours, encoder

Inner layers are 1 oz. Power runs on the 2 oz outer layers; every signal layer sits next to a plane.

JLCPCB rules

RuleJLCPCB minimum (2 oz)This board
Track / gap0.15 / 0.15 mm0.2 / 0.15 mm (0.15 mm only at fine-pitch pins)
Via diameter / hole0.25 / 0.15 mm0.45 / 0.2 mm
Copper to board edge0.2 mm0.5 mm

Trace widths

Net classWidthGap
Signals0.2 mm0.15 mm
Gate drive0.3 mm0.15 mm
High voltage (VBUS, phases)0.5 mm, power in pours0.2 mm
CAN pair0.2 mm0.2 mm between the pair

File structure

text
foc-control/
├── foc-control.kicad_pro        KiCad 10 project (open this)
├── foc-control.kicad_sch        Root schematic (links the 6 sheets below)
├── can_connectors.kicad_sch     XT30 connectors, MCP2562FD CAN FD transceiver, termination
├── encoder.kicad_sch            AS5047P magnetic encoder
├── MCU.kicad_sch                STM32G474, clock, decoupling, reset/boot, SWD pads
├── power_rails.kicad_sch        12 V and 5 V bucks (LM5164), 3.3 V LDO
├── gate_driver.kicad_sch        DRV8353 gate driver
├── power_stage.kicad_sch        3 half-bridges, shunts, bus capacitors, VBUS sense, NTC
├── foc-control.kicad_pcb        Ø80 mm, 8-layer board layout
├── fp-lib-table                 Project footprint libraries (points to libs/)
├── sym-lib-table                Project symbol libraries (points to libs/)
├── libs/
│   ├── foc-control.kicad_sym    DRV8353 symbol
│   ├── DRV8353.pretty/          DRV8353 footprint (WQFN-40)
│   ├── XT30/                    XT30PW 2+2 symbol, footprint and 3D model
│   └── logo.pretty/             Board logo
├── bom/
│   └── foc-control.csv          Bill of materials
└── docs/
    ├── Stage1/Stage1.drawio.png Stage 1 block diagram (single actuator)
    ├── Stage2/Stage2.drawio.png Stage 2 wiring diagram (multiple actuators)
    └── img/                     3D renders of the board (top, bottom)

Parts

104
QtyValueFootprintReferences
13100 nF 16V X7RCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C6, C7, C8, C9, C10, C12, C16, C40, C47
71 µF 16V X7RCapacitor_SMD:C_0603_1608MetricC5, C13, C31, C32, C35, C38, C39
72.2 µF 100V X7RCapacitor_SMD:C_1210_3225MetricC17, C18, C24, C25, C41, C42, C43
6BSC040N10NS5ATMA1Package_TO_SOT_SMD:TDSON-8-1Q1, Q2, Q3, Q4, Q5, Q6
410 kΩResistor_SMD:R_0603_1608MetricR2, R3, R14, R15
4MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
31mΩ 1W WSL25121L000FEAResistor_SMD:R_2512_6332MetricR17, R18, R19
3NetTie_2NetTie:NetTie-2_SMD_Pad0.5mmNT1, NT2, NT3
22.2 nF 50V X7RCapacitor_SMD:C_0603_1608MetricC19, C26
222 µF 16V X7RCapacitor_SMD:C_1210_3225MetricC28, C30
222 µF 25V X7RCapacitor_SMD:C_1210_3225MetricC22, C23
227 pF 50V C0GCapacitor_SMD:C_0603_1608MetricC14, C15
23.3 nF 50V X7RCapacitor_SMD:C_0603_1608MetricC20, C27
247 µF 100VCapacitor_SMD:CP_Elec_10x10C44, C45
249.9 kΩ 1%Resistor_SMD:R_0603_1608MetricR6, R11
268 µHInductor_SMD:L_Bourns_SRN6045TAL1, L2
2LM5164DDARPackage_SO:HSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.1mm_ThermalViasU4, U5
1+3V3TestPoint:TestPoint_Pad_D1.0mmTP4
110 nF 16V X7RCapacitor_SMD:C_0603_1608MetricC46
110 µF 16V X5RCapacitor_SMD:C_0603_1608MetricC11
110 µF 25V X7RCapacitor_SMD:C_1206_3216MetricC34
1100 nF 25V X7RCapacitor_SMD:C_0603_1608MetricC33
1100kResistor_SMD:R_0603_1608MetricR16
1100k 1%Resistor_SMD:R_0603_1608MetricR4
1100k 1%Resistor_SMD:R_1206_3216MetricR20
110k 1%Resistor_SMD:R_0603_1608MetricR22
1120 Ω 1%Resistor_SMD:R_0603_1608MetricR1
1158k 1%Resistor_SMD:R_0603_1608MetricR10
1180 pF 50V C0GCapacitor_SMD:C_0603_1608MetricC29
11M 1%Resistor_SMD:R_0805_2012MetricR12
1200k 1%Resistor_SMD:R_0805_2012MetricR9
13.3k 1%Resistor_SMD:R_0603_1608MetricR21
141.2k 1%Resistor_SMD:R_0603_1608MetricR8
1453 kΩ 1%Resistor_SMD:R_0603_1608MetricR5
1453k 1%Resistor_SMD:R_0805_2012MetricR7
147 nF 100V X7RCapacitor_SMD:C_0805_2012MetricC36
156 pF 50V C0GCapacitor_SMD:C_0603_1608MetricC21
182k 1%Resistor_SMD:R_0603_1608MetricR13
1ABM3B-8.000MHZ-B2-TCrystal:Crystal_SMD_Abracon_ABM3B-4Pin_5.0x3.2mmY1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U6
1AS5047P-ATSMPackage_SO:TSSOP-14_4.4x5mm_P0.65mmU2
1BUS_INXT30:CONN-TH_4P-XT30PW-MJ1
1BUS_OUTXT30:CONN-TH_4P-XT30PW-MJ2
1CAN_TERMJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1DRV8353SRTARDRV8353:RTA0040BU7
1GNDTestPoint:TestPoint_Pad_D1.0mmTP5
1LOGOlogo:sujay_logoG***
1MCP2562FD-E/SNPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1MOTOR_AConnector_Wire:SolderWire-1.5sqmm_1x01_D1.7mm_OD3.9mmJ3
1MOTOR_BConnector_Wire:SolderWire-1.5sqmm_1x01_D1.7mm_OD3.9mmJ4
1MOTOR_CConnector_Wire:SolderWire-1.5sqmm_1x01_D1.7mm_OD3.9mmJ5
1NRSTTestPoint:TestPoint_Pad_D1.0mmTP1
1NTC 10kResistor_SMD:R_0603_1608MetricTH1
1STM32G474RET3Package_QFP:LQFP-64_10x10mm_P0.5mmU3
1SWCLKTestPoint:TestPoint_Pad_D1.0mmTP3
1SWDIOTestPoint:TestPoint_Pad_D1.0mmTP2

Similar boards

  • 6 layers56.7 × 54.7 mmBetter md80, the printed circuit board in 3D

    Better md80

    darshp848/bldc-controller-60v

    60 V, 20 A / 80 A peak BLDC motor controller that fits the MD80 v3.0 mounting. KiCad 10, 6 layers.

    144 parts1
  • 2 layers130 × 95 mmAx7010 servo reva, the printed circuit board in 3D

    Ax7010 servo reva

    magic-alt/fpga-servo

    This directory preserves the ADS8588S legacy PCB, native project and custom rules from b0172a2f65902c7281cf4a8454f192dc791a9ef9.

    166 parts
  • 4 layers71.8 × 70.7 mmDashMotor48V, the printed circuit board in 3D

    DashMotor48V

    ishaansalian/dash-motor-controller

    Motor control PCB for the Dash humanoid robot project.

    79 parts
  • 6 layers72 × 69.5 mmDashMotor48V, the printed circuit board in 3D

    DashMotor48V

    ShangqunYu/Dash48V

    48v version motor controller board

    108 parts
  • 4 layers94.7 × 69.1 mmVariometerV2.2.1, the printed circuit board in 3D

    VariometerV2.2.1

    oiver12/VariometerV2

    Paragliding variometer: custom KiCad PCBs, ESP32 firmware, sensor fusion, e-ink UI, and desktop flight replay.

    158 partsMIT
  • 4 layers34 × 28 mmKiBot Project Test, the printed circuit board in 3D

    KiBot Project Test

    nguyen-v/KiBot_Project_Test

    A test project for the video tutorial using KDT_Hierarchical_KiBot template

    50 parts3MIT

Questions

What parts does the Foc control use?

104 parts, built around the STM32G474RET3, MCP2562FD-E/SN, LM5164DDAR and AS5047P-ATSM. 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 Foc control KiCad files?

From the sujaygouda123/foc-control repository on GitHub, at the commit this page was made from: the board is foc-control.kicad_pcb and its schematic MCU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Foc control design in my own project?

Its repository states no licence, so its author keeps all rights: ask sujaygouda123 before reusing the design.