FOC
IpinZhu·foc-esc·hardware/foc-drive/FOC2.kicad_pcb
About the FOC PCB
FOC is an open source STM32 PCB design by IpinZhu, published on GitHub under the MIT license. It is a 4-layer board measuring 50 × 70 mm, with 112 components from 30 distinct parts.
Its main chip is the STM32G473RCTx, from the STM32 family. Other key parts include the INA240A2PW, UCC27211D, ME6211C33M5, TCAN1044A-Q1 and TPS61170. By type, the board carries 45 capacitors, 41 resistors, 12 ICs, 6 transistors, 3 diodes and 3 inductors.
From the project
这是一个基于 STM32G473RC 的实验性三相 PMSM/BLDC 电机控制平台。仓库包含驱动板设计,以及使用 Rust 2024 + Embassy 实现的电流控制型磁场定向控制(FOC)固件。
这是一个基于 STM32G473RC 的实验性三相 PMSM/BLDC 电机控制平台。仓库包含驱动板设计,以及使用 Rust 2024 + Embassy 实现的电流控制型磁场定向控制(FOC)固件。
当前固件位于 software/firmware,目标芯片为 STM32G473RC:
- TIM1 中心对齐互补 PWM,输出引脚为 PA8/PA9/PA10 和 PB13/PB14/PB15。 - 配置的 PWM 频率:100 kHz。 - 配置的死区时间:在 170 MHz 定时器时钟下为 200 ns。 - 占空比范围:5%–95%。 - 通过 INA240A2 放大器和 0.5 mΩ 分流电阻进行三相电流反馈。 - 由定时器触发 ADC,对相电流、VBUS 和 TMP235 温度传感器进行采样。 - 支持电流 FOC、速度 FOC、开环控制、启动电流偏置校准、SVPWM、遥测和软件故障处理。 - 带版本和 CRC 的双槽 Flash 参数持久化:上电自动加载,UART param ... 命令和 CAN 参数帧可读取、设置、保存或恢复出厂参数。 - 电机参数自整定(Auto-Tune):autotune start 一键完成 Rs/L/磁链辨识、电流环 PI 计算与阶跃验证、开环同步校验和观测器参数配置,结果保存为带 CRC 的电机参数档案,重启后自动应用。 -…
Main components on the FOC
FOC bill of materials (BOM)
112 components, 30 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 3 | INA240A2PW | TSSOP-8_4.4x3mm_P0.65mm | U1, U2, U6 |
| 3 | UCC27211D | SOIC-8_3.9x4.9mm_P1.27mm | U3, U4, U5 |
| 1 | ME6211C33M5 | SOT-23-5 | U7 |
| 1 | TCAN1044A-Q1 | HVSON-8-1EP_3x3mm_P0.65mm_EP1.6x2.4mm | U8 |
| 1 | TPS61170 | WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm_ThermalVias | U9 |
| 1 | SY8303 | TSOT-23-8 | U10 |
| 1 | TMP235A2DBZR | SOT-23 | U11 |
| 1 | STM32G473RCTx | LQFP-64_10x10mm_P0.5mm | U12 |
| 6 | Q_NMOS_SGD | VSONP-8-1EP_5x6_P1.27mm | Q1, Q2, Q3, Q4, Q5, Q6 |
| 1 | ASCO | Crystal_SMD_2016-4Pin_2.0x1.6mm | Y1 |
| 1 | Conn_02x12_Odd_Even | PinHeader_2x12_P2.54mm_Vertical | J1 |
| 1 | SM712 | SOT-23 | D1 |
| 1 | MBR0540 | D_SOD-123 | D2 |
| 1 | LED | LED_0603_1608Metric | D3 |
| 1 | ACM2012-900-2P | ACM2012-900-2P-T001 | L1 |
| 1 | 10uH | L_Chilisin_BMRA00040420 | L2 |
| 1 | 4.7uH | L_Chilisin_BMRA00040420 | L3 |
| 15 | 4.7uF | C_0603_1608Metric | C1, C2, C8, C9, C10, C11, C16, C17 +7 |
| 22 | 100nF | C_0603_1608Metric | C3, C4, C5, C6, C7, C12, C13, C14 +14 |
| 5 | 22uF | C_1210_3225Metric | C21, C22, C23, C25, C26 |
Show 10 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | 47nF | C_0603_1608Metric | C28 |
| 2 | 10nF | C_0603_1608Metric | C30, C32 |
| 18 | 22 | R_0603_1608Metric | R1, R2, R5, R6, R10, R11, R17, R18 +10 |
| 11 | 10k | R_0603_1608Metric | R3, R4, R13, R14, R20, R22, R23, R27 +3 |
| 3 | 0.0005 | R_2512_6332Metric | R7, R15, R24 |
| 2 | 60R | R_0603_1608Metric | R8, R9 |
| 1 | 4.99K | R_0603_1608Metric | R12 |
| 4 | 100K | R_0603_1608Metric | R16, R21, R25, R39 |
| 1 | 71.5K | R_0603_1608Metric | R19 |
| 1 | 13.7K | R_0603_1608Metric | R26 |
FOC design files
The KiCad project lives in the IpinZhu/foc-esc 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 STM32G473RCTx, from the STM32 family.
How big is the FOC PCB?
The FOC measures 50 × 70 mm, has 4 copper layers and is 1.6 mm thick.
How many components are on the FOC?
112 components, from 30 distinct parts. The full bill of materials is listed on this page.
Where can I download the FOC design files?
From the IpinZhu/foc-esc 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 IpinZhu 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.
More boards in foc-esc
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