Foc control
sujaygouda123·foc-control
About the Foc control PCB
Foc control is an open source STM32 PCB design by sujaygouda123, published on GitHub. It is a 8-layer board measuring 80 × 80 mm, with 87 components from 44 distinct parts.
Its main chip is the STM32G474RET3, from the STM32 family. Other key parts include the MCP2562FD-E/SN, AS5047P-ATSM, LM5164DDAR, AP2112K-3.3 and DRV8353SRTAR. By type, the board carries 46 capacitors, 22 resistors, 7 ICs, 6 transistors, 2 connectors and 2 inductors.
It belongs with the robotics & motion designs in this gallery.
From the project
BLDC field-oriented-control board for a humanoid robot actuator. KiCad 10, Ø80 mm, 8 layers, 1.6 mm.
BLDC field-oriented-control board for a humanoid robot actuator. KiCad 10, Ø80 mm, 8 layers, 1.6 mm.
- 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).
Inner layers are 1 oz. Power runs on the 2 oz outer layers; every signal layer sits next to a plane.

Main components on the Foc control
Foc control bill of materials (BOM)
87 components, 44 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | MCP2562FD-E/SN | SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | AS5047P-ATSM | TSSOP-14_4.4x5mm_P0.65mm | U2 |
| 1 | STM32G474RET3 | LQFP-64_10x10mm_P0.5mm | U3 |
| 2 | LM5164DDAR | HSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.1mm_ThermalVias | U4, U5 |
| 1 | AP2112K-3.3 | SOT-23-5 | U6 |
| 1 | DRV8353SRTAR | RTA0040B | U7 |
| 6 | BSC040N10NS5ATMA1 | TDSON-8-1 | Q1, Q2, Q3, Q4, Q5, Q6 |
| 1 | ABM3B-8.000MHZ-B2-T | Crystal_SMD_Abracon_ABM3B-4Pin_5.0x3.2mm | Y1 |
| 1 | XT30PW(2+2)-M.G.B BUS_IN | CONN-TH_4P-XT30PW-M | J1 |
| 1 | XT30PW(2+2)-M.G.B BUS_OUT | CONN-TH_4P-XT30PW-M | J2 |
| 1 | NCP18XH103F03RB NTC 10k | R_0603_1608Metric | TH1 |
| 2 | SRN6045TA-680M 68 µH | L_Bourns_SRN6045TA | L1, L2 |
| 13 | 100 nF 16V X7R | C_0603_1608Metric | C1, C2, C3, C4, C6, C7, C8, C9 +5 |
| 7 | 1 µF 16V X7R | C_0603_1608Metric | C5, C13, C31, C32, C35, C38, C39 |
| 1 | 10 µF 16V X5R | C_0603_1608Metric | C11 |
| 2 | 27 pF 50V C0G | C_0603_1608Metric | C14, C15 |
| 7 | 2.2 µF 100V X7R | C_1210_3225Metric | C17, C18, C24, C25, C41, C42, C43 |
| 2 | 2.2 nF 50V X7R | C_0603_1608Metric | C19, C26 |
| 2 | 3.3 nF 50V X7R | C_0603_1608Metric | C20, C27 |
| 1 | 56 pF 50V C0G | C_0603_1608Metric | C21 |
Show 24 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 2 | 22 µF 25V X7R | C_1210_3225Metric | C22, C23 |
| 2 | 22 µF 16V X7R | C_1210_3225Metric | C28, C30 |
| 1 | 180 pF 50V C0G | C_0603_1608Metric | C29 |
| 1 | 100 nF 25V X7R | C_0603_1608Metric | C33 |
| 1 | 10 µF 25V X7R | C_1206_3216Metric | C34 |
| 1 | 47 nF 100V X7R | C_0805_2012Metric | C36 |
| 2 | UUX2A470MNL1GS 47 µF 100V | CP_Elec_10x10 | C44, C45 |
| 1 | 10 nF 16V X7R | C_0603_1608Metric | C46 |
| 1 | 120 Ω 1% | R_0603_1608Metric | R1 |
| 4 | 10 kΩ | R_0603_1608Metric | R2, R3, R14, R15 |
| 1 | 100k 1% | R_0603_1608Metric | R4 |
| 1 | 453 kΩ 1% | R_0603_1608Metric | R5 |
| 2 | 49.9 kΩ 1% | R_0603_1608Metric | R6, R11 |
| 1 | 453k 1% | R_0805_2012Metric | R7 |
| 1 | 41.2k 1% | R_0603_1608Metric | R8 |
| 1 | 200k 1% | R_0805_2012Metric | R9 |
| 1 | 158k 1% | R_0603_1608Metric | R10 |
| 1 | 1M 1% | R_0805_2012Metric | R12 |
| 1 | 82k 1% | R_0603_1608Metric | R13 |
| 1 | 100K 100k | R_0603_1608Metric | R16 |
| 3 | 1mΩ 1W WSL25121L000FEA | R_2512_6332Metric | R17, R18, R19 |
| 1 | 100k 1% | R_1206_3216Metric | R20 |
| 1 | 3.3k 1% | R_0603_1608Metric | R21 |
| 1 | 10k 1% | R_0603_1608Metric | R22 |
Foc control design files
The KiCad project lives in the sujaygouda123/foc-control repository on GitHub; these links point at the commit this page was built from.
- Layoutfoc-control.kicad_pcb
- Schematicfoc-control.kicad_sch
- BOMbom/foc-control.csv
Foc control: common questions
What microcontroller does the Foc control use?
The Foc control is built around the STM32G474RET3, from the STM32 family.
How big is the Foc control PCB?
The Foc control measures 80 × 80 mm, has 8 copper layers and is 1.6 mm thick.
How many components are on the Foc control?
87 components, from 44 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Foc control design files?
From the sujaygouda123/foc-control repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Foc control design in my own project?
The repository has no license, so all rights stay with sujaygouda123. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Foc control 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
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9k