Skip to the content
4 layers35 × 35 mmFoc8313, the printed circuit board in 3D

Highly compact field oriented controller based on the DRV8313 IC

Size
35 × 35 mm
Copper layers
4
Thickness
1.6 mm
Parts
155
Nets
88
Pads
388
Tracks, vias
1,093, 223
Pours
9
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
3 Aug 2023
Updated
6 Nov 2025

Overview

Foc8313 is an open-source printed circuit board by williamhaarhoff, from the williamhaarhoff/foc8313 repository on GitHub. It is a 4-layer board of 35 × 35 mm with 155 parts on 88 nets, routed with 1,093 tracks and 223 vias.

It is built around the INA240A2D, AS5047D and DRV8313PWP. Its parts include 33 capacitors, 24 resistors, 4 ICs, 4 connectors and 3 diodes. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

3

README

README.md

foc8313

This board was inspired by Foc-Ctrl-Lite. FOC8313 is a highly compact, feature rich, daisy-chainable, field oriented control board based around the DRV8313 3 phase half bridge driver. This board is highly configurable and upgradeable, and includes all the manufacturing files required start producing controllers for $\approx$ $20/board

FrontBack
frontback

Features:

  • Highly compact 35x35mm outline
  • 29x29 square M3 hole pattern
  • 12V to 35V operating range
  • 3.5A max per phase current
  • Onboard STM32F103CBTx microcontroller
  • Based on the DRV8313 3 phase half bridge driver
  • 2 x INA240A2D high side current sense amplifiers
  • 1 x AS5047D back mounted hall effect encoder
  • EEPROM to store configurations / calibrations etc.
  • Daisy chainable power and CAN
  • Programmable with USB-DFU or StLink - 6 pin tag connect
  • Auxilliary encoder/Timer port with 5V and GND
  • Auxilliary SPI/GPIO and I2C/UART port with 5V and GND
  • Easily upgradable for isolated CAN (3 wire)
  • Extremely compact isolated CAN
  • JLC manufacturing files included
  • Cost optimised for PCBA with JLCPCB (as few extended components as possible)
  • Most basic variant costs $\approx$ $20 per board (for 10 PCBs at JLCPCB)
  • Predominantly single sided design allows for cost effective single sided PCBA, easy hot plating for rework, easy configuration with jumpers
TopIn1
topin1
In2Bottom
in2bottom

PCBA - Cost Scaling:

VersionColourFinishAssemblyQuantityUnit priceExtended Price
v1.0BlackEnigStandard T&B15$30.8$462.57
v1.0BlackEnigStandard Top15$24.3$364.22
v1.0BlackHASLStandard Top10$24.75$247.51
v1.0BlackEnigStandard T&B100$16.78$1678.39
v1.0GreenHASLEconomic Top2$53.45$106.89
v1.0GreenHASLEconomic Top5$30.28$151.40
v1.0GreenHASLEconomic Top10$20.48$204.81
v1.0GreenHASLEconomic Top15$19.2$288.48
v1.0GreenHASLEconomic Top30$15.6$468.48
v1.0GreenHASLStandard Top100$12.98$1297.77
v1.0BlackEnigNo ICs Top10$15.9 +$159.37
v1.0BlackEnigNo ICs Top15$12.9 +$193.44

ICs:

15x @LCSC: 215.22 -> 14.33 10x @LCSC: 146.71 -> 14.6

Parts

155
QtyValueFootprintReferences
19100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C12, C20, C21, C22, C24, C26, C27, C28, C29, C33, C34, C35, C36 +3
85.1kResistor_SMD:R_0402_1005MetricR14, R15, R19, R20, R21, R22, R24, R30
5*local_lib:jumper12_openJP2, JP4, JP5, JP6, JP7
4G***kibuzzard-6687B916kibuzzard-6687B916, kibuzzard-6687B916, kibuzzard-6687B916, kibuzzard-6687B916
4MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopOnlyH7, H8, H10, H11
4MountingHole_Padlocal_lib:2x4H1, H2, H3, H4
3100kResistor_SMD:R_0402_1005MetricR1, R3, R25
31k5Resistor_SMD:R_0402_1005MetricR6, R8, R17
3MountingHole_Padlocal_lib:2x3H5, H6, H9
210kResistor_SMD:R_0402_1005MetricR5, R26
210mResistor_SMD:R_0805_2012MetricR12, R13
218pCapacitor_SMD:C_0402_1005MetricC16, C17
21uCapacitor_SMD:C_0603_1608MetricC5, C15
220kResistor_SMD:R_0402_1005MetricR4, R7
222Resistor_SMD:R_0402_1005MetricR11, R16
222nCapacitor_SMD:C_0402_1005MetricC10, C11
222uCapacitor_SMD:C_0603_1608MetricC37, C38
236VDiode_SMD:D_SOD-323D1, D3
2CANeasyeda:CONN-SMD_AFC10-S03QCA-00J3, J4
2G***kibuzzard-6687B990kibuzzard-6687B990, kibuzzard-6687B990
2G***kibuzzard-6687C00Ckibuzzard-6687C00C, kibuzzard-6687C00C
2G***kibuzzard-6687C3ACkibuzzard-6687C3AC, kibuzzard-6687C3AC
2G***kibuzzard-6687C371kibuzzard-6687C371, kibuzzard-6687C371
2G***kibuzzard-6687BD2Bkibuzzard-6687BD2B, kibuzzard-6687BD2B
2G***kibuzzard-6687BD8Ekibuzzard-6687BD8E, kibuzzard-6687BD8E
2G***kibuzzard-6687BCF3kibuzzard-6687BCF3, kibuzzard-6687BCF3
2INA240A2DPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU7, U8
2SW_SPSTeasyeda:SW-TH_PANASONIC_EVPAKE31ASW1, SW2
1*Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mmJP1
1*local_lib:jumper12_closedJP3
110nCapacitor_SMD:C_0402_1005MetricC23
110uInductor_SMD:L_0805_2012MetricL2
1120Resistor_SMD:R_0603_1608MetricR2
12.2uCapacitor_SMD:C_0805_2012MetricC9
12.2uCapacitor_SMD:C_0402_1005MetricC18
1220nCapacitor_SMD:C_0402_1005MetricC8
122uCapacitor_SMD:C_0805_2012MetricC14
127nInductor_SMD:L_0603_1608MetricL1
14.7kResistor_SMD:R_0402_1005MetricR18
147uCapacitor_SMD:CP_Elec_5x5.7C30
1AS5047DPackage_SO:TSSOP-14_4.4x5mm_P0.65mmU5
1DRV8313PWPeasyeda:HTSSOP-28_L9.8-W4.5-P0.65-LS6.6-BL-EPU3
1Encodereasyeda:CONN-SMD_5P-P1.00_MEGASTAR_ZX-SH1.0-5PWTJ2
1G***kibuzzard-6687B983kibuzzard-6687B983
1G***kibuzzard-6687BBBAkibuzzard-6687BBBA
1G***kibuzzard-6687BF56kibuzzard-6687BF56
1G***kibuzzard-6687BC5Bkibuzzard-6687BC5B
1G***kibuzzard-6687BFE6kibuzzard-6687BFE6
1G***kibuzzard-6687B97Ckibuzzard-6687B97C
1G***kibuzzard-6687BB13kibuzzard-6687BB13
1G***kibuzzard-690CC9D7kibuzzard-690CC9D7
1G***kibuzzard-6687BD97kibuzzard-6687BD97
1G***kibuzzard-6687C408kibuzzard-6687C408
1G***kibuzzard-6687B989kibuzzard-6687B989
1G***kibuzzard-6687BB22kibuzzard-6687BB22
1G***kibuzzard-6687BC6Dkibuzzard-6687BC6D
1G***kibuzzard-6687BD9Dkibuzzard-6687BD9D
1G***kibuzzard-6687C487kibuzzard-6687C487
1G***kibuzzard-6687C0E6kibuzzard-6687C0E6
1G***kibuzzard-6687BFB6kibuzzard-6687BFB6
1G***kibuzzard-6687BFD2kibuzzard-6687BFD2
1G***kibuzzard-6687B975kibuzzard-6687B975
1G***kibuzzard-6687BFAEkibuzzard-6687BFAE
1G***kibuzzard-6687C148kibuzzard-6687C148
1G***kibuzzard-6687C12Akibuzzard-6687C12A
1G***kibuzzard-6687B962kibuzzard-6687B962
1G***kibuzzard-6687C440kibuzzard-6687C440
1G***kibuzzard-6687BBC5kibuzzard-6687BBC5
1G***kibuzzard-6687BC64kibuzzard-6687BC64
1G***kibuzzard-6687BD70kibuzzard-6687BD70
1G***kibuzzard-6687BD69kibuzzard-6687BD69
1G***kibuzzard-6687BB56kibuzzard-6687BB56
1G***kibuzzard-6687BD76kibuzzard-6687BD76
1G***kibuzzard-6687BF5Dkibuzzard-6687BF5D
1G***kibuzzard-6687BBB1kibuzzard-6687BBB1
1G***kibuzzard-690CC938kibuzzard-690CC938
1G***kibuzzard-6687B96Dkibuzzard-6687B96D
1G***kibuzzard-6687BB64kibuzzard-6687BB64
1GPIOeasyeda:CONN-SMD_8P-P1.00_MEGASTAR_ZX-SH1.0-8PWTJ6
1GREENLED_SMD:LED_0603_1608MetricD7

The 143 most common of 155 parts.

More from williamhaarhoff/foc8313

1
  • 2 layers69 × 13 mmAdaptor, the printed circuit board in 3D

    Adaptor

    williamhaarhoff/foc8313

    Highly compact field oriented controller based on the DRV8313 IC

    22 parts9

Similar boards

  • 2 layers37.4 × 54.4 mmFOC DV, the printed circuit board in 3D

    FOC DV

    sidrk-dev/portfolio

    This is a personal engineering portfolio website built with Next.js 15, Tailwind CSS, and Framer Motion.

    28 parts
  • 2 layers68.6 × 53.3 mmMy foc power shield, the printed circuit board in 3D

    My foc power shield

    Zhang-Yong/Simple_FOC_Uno_shield_Drv8313

    Arduion Uno R3 BLDC_Driver shield, use Drv813 chip

    32 partsApache-2.0
  • 4 layers76.7 × 44.5 mmMotCtrl, the printed circuit board in 3D

    MotCtrl

    osannolik/MotCtrl

    Inverter for brushless motors

    162 parts65GPL-3.0
  • 4 layers100 × 50 mmPsu ext, the printed circuit board in 3D

    Psu ext

    PSU-Ext-Org/psu-ext-hardware

    A repository to store PSU-EXT hardware design assets, schematics, circuit diagrams, CAD files and manufacturing data.

    137 parts9CERN-OHL-S-2.0
  • 4 layers82 × 60 mmP1 tx, the printed circuit board in 3D

    P1 tx

    Deco025/resonare

    Resonare: open-source 120 W LCC-S resonant wireless charger, transmitter and receiver boards (KiCad 10, 4-layer)

    92 parts4CERN-OHL-S-2.0
  • 4 layers100 × 99.4 mmMPPT V3, the printed circuit board in 3D

    MPPT V3

    hazzalemon/MPPTV3_board

    3rd revision of the MPPT solar charge controller PCB design

    204 parts1
  • 4 layers67.6 × 60.8 mmPDU v2, the printed circuit board in 3D

    PDU v2

    Fred0809/PDB

    Power delivery board

    71 parts
  • 2 layers97 × 97 mmVanPom, the printed circuit board in 3D

    VanPom

    hl037/VanPom

    Power management PCB for vans + firmware

    162 parts

Questions

How big is the Foc8313 PCB?

It measures 35 × 35 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Foc8313 use?

155 parts, built around the INA240A2D, AS5047D and DRV8313PWP. 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 Foc8313 KiCad files?

From the williamhaarhoff/foc8313 repository on GitHub, at the commit this page was made from: the board is hw/foc8313.kicad_pcb and its schematic adaptor/adaptor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Foc8313 design in my own project?

Its repository states no licence, so its author keeps all rights: ask williamhaarhoff before reusing the design.