

Date | Manufacturer | amount | includes | shipping & tax | price | -------- | -------- | -------- | -------- | -------- | -------- | 2024-01-17 | JLCPCB | 10 boards | All assembled excl fets and caps | YES, to EU |…
- Size
- 75.2 × 99.5 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 261
- Nets
- 153
- Pads
- 731
- Tracks, vias
- 1,331, 624
- Pours
- 67
- Routed
- Yes
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 4 Apr 2023
- Updated
- 1 Jun 2025
Overview
FOC is an open-source printed circuit board by nordstream3, from the nordstream3/FOC repository on GitHub. It is a 4-layer board of 75.2 × 99.5 mm with 261 parts on 153 nets, routed with 1,331 tracks and 624 vias.
It is built around the STM32F405RGT6, TJA1051T/3/1J and IRS21867S, with the XL1509-5.0E1, MS8311 and AMS1117-3.3 among its other parts. Its parts include 95 resistors, 75 capacitors, 19 connectors, 16 transistors and 14 ICs. It belongs with the robots and motor control boards and the STM32 boards of this library.
Main components
12STM32F405RGT6
LQFP-64(10x10)-40℃~+85℃ 1.8V~3.6V 12bit 12bit 168MHz 192KB 1MB 32 Bit 51 ARM Cortex-M4 Built-in FLASH LQFP-64(10x10) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)TJA1051T/3/1J
SOIC-8-150mil-40℃~+150℃ 110mA 4.5V~5.5V 5Mbps CAN FD Transceiver SOIC-8-150mil CAN Transceivers ROHSNXP SemiconductorsCAN TransceiversIRS21867S
SOIC8High And Low Side DriverInfineon TechnologiesUncategorisedXL1509-5.0E1
SOIC-8-40℃~+85℃ 1 150kHz 2A 2mA 4.5V~40V 5V Buck Buck Built-in Fixed No SOIC-8 DC-DC Converters ROHSXLSEMIDC-DC ConvertersMS8311
SOT-23-5-40℃~+125℃ 0.1pA 0.2pA 1 1.5mA 1.5uV/℃ 100dB 10MHz 11.5nV/√Hz@1kHz 2.7V~5.5V 65uV 7V/us 80mA Built-in compensation Rail-to-Rail Input, Rail-to-Rail Output SOT-23-5 Precision Op Amps ROHSHangzhou Ruimeng TechPrecision Op AmpsAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsBMI270
LGA-14(2.5x3)-40℃~+85℃ 1.71V~3.6V 16bit 2KB 3.5uA Accelerometer Gyroscope SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps LGA-14(2.5x3) Accelerometers ROHSBosch SensortecAccelerometersCRST030N10N
TO-220-55℃~+150℃ 1 N-channel 1.446nF 100V 11.355nF 169nC@10V 180A 2.3mΩ@10V 227W 3V N-Channel TO-220 MOSFETs ROHSCRMICROMOSFETsUS1M
SMA-55℃~+150℃ 1 Independent 1.65V@1A 1A 1kV 30A 5uA@1kV 75ns SMA Fast Recovery / High Efficiency Diodes ROHSMDDFast Recovery / High Efficiency DiodesSS8050
SOT-323-55℃~+150℃ 1 NPN 1.5A 100MHz 100nA 200 25V 300mW 500mV 5V NPN SOT-23 Bipolar (BJT) ROHSJiangsu Changjing Electronics Technology (CJ)Bipolar (BJT)1N4148WS
SOD-3231.25V@150mA 100V 150mA 1uA@75V 200mW 2A 4ns Independent SOD-323 Switching Diodes ROHSJiangsu Changjing Electronics Technology (CJ)Switching DiodesAO3401A
SOT-231 P-Channel 14nC@10V 30V 47mΩ@10V、60mΩ@4.5V、85mΩ@2.5V 4A 55pF 645pF 80pF 900mV SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETs
README
README.mdKing of FOC motor control hardware aka FOC_KING
The DIY Open Source Vesc6 and FOC capable HW with onboard IMU and CAN
| Date | Manufacturer | amount | includes | shipping & tax | price |
|---|---|---|---|---|---|
| 2024-01-17 | JLCPCB | 10 boards | All assembled excl fets and caps | YES, to EU | $241.08 |
An open-source motor controller board based on a JLCPCB friendly VESC6 75V/300A so-called "driverless" design with individual gate drivers for all three phases. It is powered by an STM32F405 MCU and is capable of running FOC at high power and voltages.
A motor controller designed for FOC (Field Oriented Control) and HFI (High Frequency Injection), a sensorless teqnique enabling full torque at zero speed without sensor feedback. The hardware is separated in 3 sub-modules which are assembled using standard pin headers.
| POWER BRIDGE | MCU | SUPPLY |
|---|---|---|
| 3 phase power bridge | STM32F405 PILL | +12,+5V,+3V |
Intended for "small" electric vehicles like Skateboards, OneWheels, Bicycles, Robotics, Boats, and is designed in sub-modules as a reference design for further development.
The standard design includes 12 mosfets, but it will also work with just 6 fets. You choose.
Features
- 84V/200A continuous rating
- 20s battery voltage rating
- 3-phase FOC motor control
- 4-layer pcb design with individual gate drivers for all three phases
- STM32F405 MCU
- USB-C
- CAN, 5 mbps
- Onboard IMU (Bosch BMI270)
- Momentary on/off switch connection via 4-pin jst connector
- Led data pin for programmable LEDs
- Compact design with fets mounted on the bottom side
- 12V for gate drivers, 5V for CAN and IMU, and 3.3V for MCU and op-amped current-sense amplification
- Cheap and up-to-date with cheapest and well stocked components available for ordering at JLCPCB and LCSC
- Dimensions of assembled board: 65 x 78 mm
Advantages of separation into modules?
- Suitable for further development by DIY people
- Compatibility with other FOC projects
- Understanding of FOC HW is easier
- HW development is cheaper
- Debugging is easier
Disadvantages
- Assembly takes longer time. You need to solder 46 pinheader pins manually
How to order at JLCPCB.COM
In the /production folder there is a guide for the ordering procedure.
How to assemble
Below is an image of the whole kit needed for assemble. The guide for the assembly procedure is in the /production folder.
Usage
Use the VESC Tool to configure the motor controller according to your specific motor and application requirements.
Contributions
Contributions to this project are welcome and encouraged. If you have any suggestions or improvements, please open an issue or a pull request on the GitHub repository.
Donate
If you find this project useful and would like to support bread-and-butter for very time consuming development and maintenance, you can donate 1$ to the creator via PayPal.

License
FOC_KING is released under the CERN Open Hardware License (OHL), developed by the European Organization for Nuclear Research. In short, it is a permissive license that allows anyone to use, modify, and distribute the licensed hardware, as long as they provide attribution to the original creators and distribute their modifications under the same license.
Acknowledgements
FOC_KING is built on the work of the VESC project and the contributions of its developers and contributors. Many thanks to mxlemming (aka David Molony) and crinq on the vesc forum on discord for their careful review and advice. Also this project is inspired by the format and concept of the MP2 by badgineer and the Cheap Focer2 by shaman.
markdownguide.org/basic-syntax
www.markdownguide.org/hacks/
support.squarespace.com Markdown-cheat-sheet
Parts
261| Qty | Value | Footprint | References |
|---|---|---|---|
| 18 | 10R | Resistor_SMD:R_0603_1608Metric | R31, R32, R43, R44, R45, R46, R51, R52, R63, R64, R65, R66, R69, R70, R81, R82 +2 |
| 15 | 100n | Capacitor_SMD:C_0603_1608Metric | C5, C6, C10, C21, C34, C43, C53, C61, C62, C63, C66, C67, C69, C72, C74 |
| 15 | 2.2u | Capacitor_SMD:C_0603_1608Metric | C4, C7, C11, C15, C16, C19, C25, C27, C29, C33, C42, C45, C52, C64, C65 |
| 13 | 4.7u 100V | Capacitor_SMD:C_1210_3225Metric | C26, C36, C37, C38, C39, C46, C47, C48, C49, C55, C56, C57, C58 |
| 12 | 4.7R | Resistor_SMD:R_0603_1608Metric | R36, R37, R39, R40, R56, R57, R59, R60, R74, R75, R77, R78 |
| 12 | 56k @ 75V | Resistor_SMD:R_0603_1608Metric | R14, R16, R18, R22, R23, R27, R38, R41, R58, R61, R76, R79 |
| 12 | CRST030N10N | Custom:TO-220-3_Vertical_bend | Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15 |
| 12 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12 |
| 12 | SWD | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P12, P13 |
| 8 | 1k | Resistor_SMD:R_0603_1608Metric | R34, R35, R54, R55, R72, R73, R96, R97 |
| 8 | 2k | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R11, R15, R17, R19, R28 |
| 7 | 4.7n | Capacitor_SMD:C_0603_1608Metric | C1, C40, C41, C50, C51, C59, C60 |
| 6 | NetTie_2 | NetTie:NetTie-2_SMD_Pad0.5mm | NT1, NT2, NT3, NT4, NT5, NT6 |
| 5 | 100p | Capacitor_SMD:C_0603_1608Metric | C2, C3, C12, C18, C22 |
| 5 | 10k | Resistor_SMD:R_0603_1608Metric | R7, R10, R50, R88, R89 |
| 5 | 5.1k | Resistor_SMD:R_0603_1608Metric | R6, R13, R26, R86, R87 |
| 4 | 10u | Capacitor_Tantalum_SMD:CP_EIA-3216-10_Kemet-I | C9, C17, C24, C32 |
| 4 | 10u | Capacitor_SMD:C_0603_1608Metric | C14, C20, C28, C75 |
| 4 | US1M | Diode_SMD:D_SMA | D1, D2, D4, D7 |
| 3 | 0.25mR | Resistor_SMD:R_2512_6332Metric | R42, R62, R80 |
| 3 | 100R | Resistor_SMD:R_0603_1608Metric | R4, R5, R85 |
| 3 | 100u@6.3V | Capacitor_SMD:C_1206_3216Metric | C8, C13, C23 |
| 3 | 150R | Resistor_SMD:R_0603_1608Metric | R29, R47, R67 |
| 3 | 1n | Capacitor_SMD:C_0603_1608Metric | C35, C44, C54 |
| 3 | 30k | Resistor_SMD:R_0603_1608Metric | R30, R49, R68 |
| 3 | 56k | Resistor_SMD:R_0603_1608Metric | R33, R92, R93 |
| 3 | 6.2k | Resistor_SMD:R_0603_1608Metric | R53, R71, R91 |
| 3 | IRS21867S | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U4, U6, U7 |
| 3 | MS8311 | Package_TO_SOT_SMD:TSOT-23-5 | U9, U10, U11 |
| 3 | SS8050 | Package_TO_SOT_SMD:SOT-23 | Q2, Q3, Q16 |
| 2 | 10n | Capacitor_SMD:C_0603_1608Metric | C30, C70 |
| 2 | 12p | Capacitor_SMD:C_0603_1608Metric | C71, C73 |
| 2 | 1k8 | Resistor_SMD:R_0603_1608Metric | R21, R24 |
| 2 | 68uH | Custom:L_6.6x7.2_H5.0_CYA0650_68UH | CYA0650-68UH1, CYA0650-68UH2 |
| 2 | 75k | Resistor_SMD:R_0603_1608Metric | R8, R9 |
| 2 | LOGO | Library:crown | G***, G*** |
| 2 | STM32F401CCU6_Blackpill | Custom:Blackpill_STM32F401CEU6 | U12, U13 |
| 2 | SW_SPDT | Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mm | SW1, SW4 |
| 2 | SW_SPST | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | SW2, SW3 |
| 1 | 0.1R | Resistor_SMD:R_1206_3216Metric | R25 |
| 1 | 10n | Inductor_SMD:L_0805_2012Metric | L1 |
| 1 | 1N4148WS | Diode_SMD:D_SOD-323 | D5 |
| 1 | 1N5819 | Diode_SMD:D_SOD-323 | D3 |
| 1 | 1u | Capacitor_SMD:C_0603_1608Metric | C68 |
| 1 | 20k | Resistor_SMD:R_0603_1608Metric | R90 |
| 1 | 22u | Capacitor_SMD:C_0805_2012Metric | C31 |
| 1 | 470k | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 82k @ 150V | Resistor_SMD:R_0805_2012Metric | R20 |
| 1 | 8MHz Crystal Resonator, X50328MSB2GI | Crystal:Crystal_SMD_5032-2Pin_5.0x3.2mm | Y1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | AO3401A | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | BMI270 | Package_LGA:Bosch_LGA-14_3x2.5mm_P0.5mm | U2 |
| 1 | Conn_01x02_Male | Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical | J1 |
| 1 | Conn_01x06 | Connector_JST:JST_PH_B6B-PH-K_1x06_P2.00mm_Vertical | J2 |
| 1 | GREEN | LED_SMD:LED_0805_2012Metric | D10 |
| 1 | MM1W18 1W18V zener | Diode_SMD:D_SOD-123 | D6 |
| 1 | NTC 10k | Resistor_SMD:R_0603_1608Metric | R48 |
| 1 | Phase_A_Pad | Custom:MountingHole_3.5mm_Pad_TopOnly_custom | H13 |
| 1 | Phase_B_Pad | Custom:MountingHole_3.5mm_Pad_TopOnly_custom | H14 |
| 1 | Phase_C_Pad | Custom:MountingHole_3.5mm_Pad_TopOnly_custom | H15 |
| 1 | RED | LED_SMD:LED_0805_2012Metric | D9 |
| 1 | SS210 | Diode_SMD:D_SMA | D8 |
| 1 | STM32F405RGT6 | Package_QFP:LQFP-64_10x10mm_P0.5mm | U14 |
| 1 | SWD | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | P11 |
| 1 | TJA1051T/3/1J | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | TX4130L/PW2902 | Custom:TX4130L_ESOP-8 | U8 |
| 1 | TYPE-C-31-M-12 | TYPE-C-31-M-12:HRO_TYPE-C-31-M-12 | J6 |
| 1 | WHT | LED_SMD:LED_0603_1608Metric | D11 |
| 1 | XL1509-5.0E1 | Package_SO:SOP-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | communication | Connector_JST:JST_XH_B6B-XH-A_1x06_P2.50mm_Vertical | J3 |
| 1 | on/off | Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical | J4 |
| 1 | servo | Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_Vertical | J5 |
Questions
How big is the FOC PCB?
It measures 75.2 × 99.5 mm and has 4 copper layers, 1.6 mm thick.
What parts does the FOC use?
261 parts, built around the STM32F405RGT6, TJA1051T/3/1J, IRS21867S and XL1509-5.0E1. 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 KiCad files?
From the nordstream3/FOC repository on GitHub, at the commit this page was made from: the board is source/foc.kicad_pcb and its schematic source/driver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the FOC design in my own project?
Its repository states no licence, so its author keeps all rights: ask nordstream3 before reusing the design.
Similar boards
- 4 layers100 × 40 mm

- 2 layers59.1 × 99.9 mm

Cheap FOCer 2 60mm
shamansystems/Cheap-FOCer-2
Low-Cost Motor Controller based on the VESC 6
193 parts407 - 4 layers72.6 × 72.6 mm

FOC V1 PCB
arthur-wirjo/FOC_v1_project
A custom-designed, 60V 50A Field Oriented Control (FOC) BLDC motor controller built from scratch. Designed for high-performance robotics, featuring a 4-layer power PCB, isolated USB telemetry, and CAN bus communication.
95 partsMIT - 4 layers120.3 × 79 mm

NX J401-Adapter v7
RealtimeRoboticsGroup/electrical
This project is open-source hardware and is licensed under the Solderpad Hardware License v2.1 (the "License"), which is a permissive license based on the Apache License, Version 2.0.
136 parts1 - 4 layers170 × 90 mm

- 6 layers146.1 × 125.2 mm

Urban MC
supermileage/UrbanMotorControllerPCB
This is the repo for the Urban Motor Controller PCB. You can find the KiCad files here.
88 parts3 - 4 layers100.3 × 50.3 mm

Greenmobi drive
G-Pereira/greenmobi-drive
A FOC motor drive compatible with VESC
160 parts1CERN-OHL-S-2.0 - 2 layers73.3 × 58.2 mm

Power electronics converter
JLJ-V14/Synchronous-Buck-converter
A synchronous buck converter project built from the ground up to practice power stage design, feedback control implementation, and real-time embedded firmware development.
88 parts