Skip to the content
4 layers75.2 × 99.5 mmFOC, the printed circuit board in 3D

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

12

README

README.md

King of FOC motor control hardware aka FOC_KING

The DIY Open Source Vesc6 and FOC capable HW with onboard IMU and CAN

IMAGE ALT TEXT

DateManufactureramountincludesshipping & taxprice
2024-01-17JLCPCB10 boardsAll assembled excl fets and capsYES, 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 BRIDGEMCUSUPPLY
3 phase power bridgeSTM32F405 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

FOC_KING thread on esk8

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
QtyValueFootprintReferences
1810RResistor_SMD:R_0603_1608MetricR31, R32, R43, R44, R45, R46, R51, R52, R63, R64, R65, R66, R69, R70, R81, R82 +2
15100nCapacitor_SMD:C_0603_1608MetricC5, C6, C10, C21, C34, C43, C53, C61, C62, C63, C66, C67, C69, C72, C74
152.2uCapacitor_SMD:C_0603_1608MetricC4, C7, C11, C15, C16, C19, C25, C27, C29, C33, C42, C45, C52, C64, C65
134.7u 100VCapacitor_SMD:C_1210_3225MetricC26, C36, C37, C38, C39, C46, C47, C48, C49, C55, C56, C57, C58
124.7RResistor_SMD:R_0603_1608MetricR36, R37, R39, R40, R56, R57, R59, R60, R74, R75, R77, R78
1256k @ 75VResistor_SMD:R_0603_1608MetricR14, R16, R18, R22, R23, R27, R38, R41, R58, R61, R76, R79
12CRST030N10NCustom:TO-220-3_Vertical_bendQ4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15
12MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12
12SWDConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalP1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P12, P13
81kResistor_SMD:R_0603_1608MetricR34, R35, R54, R55, R72, R73, R96, R97
82kResistor_SMD:R_0603_1608MetricR1, R2, R3, R11, R15, R17, R19, R28
74.7nCapacitor_SMD:C_0603_1608MetricC1, C40, C41, C50, C51, C59, C60
6NetTie_2NetTie:NetTie-2_SMD_Pad0.5mmNT1, NT2, NT3, NT4, NT5, NT6
5100pCapacitor_SMD:C_0603_1608MetricC2, C3, C12, C18, C22
510kResistor_SMD:R_0603_1608MetricR7, R10, R50, R88, R89
55.1kResistor_SMD:R_0603_1608MetricR6, R13, R26, R86, R87
410uCapacitor_Tantalum_SMD:CP_EIA-3216-10_Kemet-IC9, C17, C24, C32
410uCapacitor_SMD:C_0603_1608MetricC14, C20, C28, C75
4US1MDiode_SMD:D_SMAD1, D2, D4, D7
30.25mRResistor_SMD:R_2512_6332MetricR42, R62, R80
3100RResistor_SMD:R_0603_1608MetricR4, R5, R85
3100u@6.3VCapacitor_SMD:C_1206_3216MetricC8, C13, C23
3150RResistor_SMD:R_0603_1608MetricR29, R47, R67
31nCapacitor_SMD:C_0603_1608MetricC35, C44, C54
330kResistor_SMD:R_0603_1608MetricR30, R49, R68
356kResistor_SMD:R_0603_1608MetricR33, R92, R93
36.2kResistor_SMD:R_0603_1608MetricR53, R71, R91
3IRS21867SPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4, U6, U7
3MS8311Package_TO_SOT_SMD:TSOT-23-5U9, U10, U11
3SS8050Package_TO_SOT_SMD:SOT-23Q2, Q3, Q16
210nCapacitor_SMD:C_0603_1608MetricC30, C70
212pCapacitor_SMD:C_0603_1608MetricC71, C73
21k8Resistor_SMD:R_0603_1608MetricR21, R24
268uHCustom:L_6.6x7.2_H5.0_CYA0650_68UHCYA0650-68UH1, CYA0650-68UH2
275kResistor_SMD:R_0603_1608MetricR8, R9
2LOGOLibrary:crownG***, G***
2STM32F401CCU6_BlackpillCustom:Blackpill_STM32F401CEU6U12, U13
2SW_SPDTJumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mmSW1, SW4
2SW_SPSTJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmSW2, SW3
10.1RResistor_SMD:R_1206_3216MetricR25
110nInductor_SMD:L_0805_2012MetricL1
11N4148WSDiode_SMD:D_SOD-323D5
11N5819Diode_SMD:D_SOD-323D3
11uCapacitor_SMD:C_0603_1608MetricC68
120kResistor_SMD:R_0603_1608MetricR90
122uCapacitor_SMD:C_0805_2012MetricC31
1470kResistor_SMD:R_0603_1608MetricR12
182k @ 150VResistor_SMD:R_0805_2012MetricR20
18MHz Crystal Resonator, X50328MSB2GICrystal:Crystal_SMD_5032-2Pin_5.0x3.2mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1AO3401APackage_TO_SOT_SMD:SOT-23Q1
1BMI270Package_LGA:Bosch_LGA-14_3x2.5mm_P0.5mmU2
1Conn_01x02_MaleConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ1
1Conn_01x06Connector_JST:JST_PH_B6B-PH-K_1x06_P2.00mm_VerticalJ2
1GREENLED_SMD:LED_0805_2012MetricD10
1MM1W18 1W18V zenerDiode_SMD:D_SOD-123D6
1NTC 10kResistor_SMD:R_0603_1608MetricR48
1Phase_A_PadCustom:MountingHole_3.5mm_Pad_TopOnly_customH13
1Phase_B_PadCustom:MountingHole_3.5mm_Pad_TopOnly_customH14
1Phase_C_PadCustom:MountingHole_3.5mm_Pad_TopOnly_customH15
1REDLED_SMD:LED_0805_2012MetricD9
1SS210Diode_SMD:D_SMAD8
1STM32F405RGT6Package_QFP:LQFP-64_10x10mm_P0.5mmU14
1SWDConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalP11
1TJA1051T/3/1JPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1TX4130L/PW2902Custom:TX4130L_ESOP-8U8
1TYPE-C-31-M-12TYPE-C-31-M-12:HRO_TYPE-C-31-M-12J6
1WHTLED_SMD:LED_0603_1608MetricD11
1XL1509-5.0E1Package_SO:SOP-8_3.9x4.9mm_P1.27mmU5
1communicationConnector_JST:JST_XH_B6B-XH-A_1x06_P2.50mm_VerticalJ3
1on/offConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ4
1servoConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ5

Similar boards

  • 4 layers100 × 40 mmVESX, the printed circuit board in 3D

    VESX

    NormalHuman-Anything/VESX

    V(ESC)ESX

    183 parts3CERN-OHL-W-2.0
  • 2 layers59.1 × 99.9 mmCheap FOCer 2 60mm, the printed circuit board in 3D

    Cheap FOCer 2 60mm

    shamansystems/Cheap-FOCer-2

    Low-Cost Motor Controller based on the VESC 6

    193 parts407
  • 4 layers72.6 × 72.6 mmFOC V1 PCB, the printed circuit board in 3D

    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 mmNX J401-Adapter v7, the printed circuit board in 3D

    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
  • 6 layers146.1 × 125.2 mmUrban MC, the printed circuit board in 3D

    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 mmGreenmobi drive, the printed circuit board in 3D

    Greenmobi drive

    G-Pereira/greenmobi-drive

    A FOC motor drive compatible with VESC

    160 parts1CERN-OHL-S-2.0
  • 2 layers73.3 × 58.2 mmPower electronics converter, the printed circuit board in 3D

    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

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.