Foc

katherinesiyuchen-sys·foc·FOC/FOC.kicad_pcb

Foc PCB layout, top view — open source STM32 board by katherinesiyuchen-sys

About the Foc PCB

Foc is an open source STM32 PCB design by katherinesiyuchen-sys, published on GitHub under the MIT license. It is a 2-layer board measuring 77.9 × 34.2 mm, with 73 components from 35 distinct parts.

Its main chip is the STM32G431CBTx, from the STM32 family. Other key parts include the SN65HVD230, TPS54202DDC, AP2112K-3.3 and DRV8313PWP. By type, the board carries 30 capacitors, 18 resistors, 7 connectors, 5 ICs, 4 diodes and 2 switches.

It belongs with the robotics & motion and test & measurement designs in this gallery.

From the project

Single-board smart servo controller for gimbal-class BLDC motors

A smart servo 79 × 35 mm PCB (and firmware) that mounts behind a gimbal-class brushless motor and turns it into a bus-connected robot joint.

Build a robot joint from the transistor up: a single PCB that mounts behind a gimbal motor and turns it into a bus-connected smart actuator, reads a magnetic encoder on its shaft, and speaks CAN, so the whole assembly becomes one bus-connected "smart servo." The same architectural unit that humanoid robots (Optimus, moteus-based quadrupeds) are built out of ~28 times over.

Foc, from the project README
From the project README

Main components on the Foc

Foc bill of materials (BOM)

73 components, 35 distinct parts.

QtyPartRefs
1
STM32G431CBTx
U1
1
SN65HVD230
U2
1
TPS54202DDC
U3
1
AP2112K-3.3
U4
1
DRV8313PWP
U5
1
Crystal_GND24
Y1
1
encoder_conn
J1
1
Conn_ARM_JTAG_SWD_10
J2
1
UART_debug
J3
1
XT30PW-M
J4
2
Conn_01x04_Socket
J5, J6
1
Conn_01x03_Socket
J7
1
Jumper_2_Bridged
JP1
3
0.033
R_SH1, R_SH2, R_SH3
2
SW_Push
SW1, SW2
3
LED
D1, D2, D3
1
SMBJ26A
D4
1
FerriteBead
FB1
1
10uH
L1
13
100nF
C1, C4, C6, C8, C10, C11, C12, C14 +5
Show 15 more
QtyPartRefs
2
12pF
C2, C3
3
4.7uF
C5, C7, C9
4
1uF
C13, C21, C22, C25
2
100uF
C15, C17
1
10uF
C16
1
22uF
C20
1
10nF
C24
3
1nF
C29, C30, C31
7
1k
R1, R2, R3, R12, R13, R14, R15
3
10k
R4, R5, R11
1
120
R6
2
100k
R7, R9
1
15.4k
R8
1
13.7k
R10
3
39k
R16, R17, R18

Foc design files

The KiCad project lives in the katherinesiyuchen-sys/foc repository on GitHub; these links point at the commit this page was built from.

Foc: common questions

What microcontroller does the Foc use?

The Foc is built around the STM32G431CBTx, from the STM32 family.

How big is the Foc PCB?

The Foc measures 77.9 × 34.2 mm, has 2 copper layers and is 1.6 mm thick.

How many components are on the Foc?

73 components, from 35 distinct parts. The full bill of materials is listed on this page.

Where can I download the Foc design files?

From the katherinesiyuchen-sys/foc repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.

Can I use the Foc design in my own project?

Yes, under the terms of its MIT license, which katherinesiyuchen-sys chose for the repository.

Can I test firmware for the Foc 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