Skip to the content
PCBKitNew board
4 layers58.7 × 35.5 mmHatDrive kicad, the printed circuit board in 3D

HatDrive kicad

eggsacc/pcb-HatDrive

A four-layer BLDC motor driver hat built around the TI DRV8316C for the STM32F405 development module. Built as test bed for field-oriented control algorithm development.

Size
58.7 × 35.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
46
Nets
62
Pads
164
Tracks, vias
246, 143
Pours
23
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Oct 2026
Updated
6 Oct 2026

Overview

HatDrive kicad is an open-source printed circuit board by eggsacc, from the eggsacc/pcb-HatDrive repository on GitHub. It is a 4-layer board of 58.7 × 35.5 mm with 46 parts on 62 nets, routed with 246 tracks and 143 vias.

It is built around the DRV8316CRRGFR and SMBJ28AQ. Its parts include 16 capacitors, 15 resistors, 5 connectors, 3 ICs and 3 diodes. It belongs with the robots and motor control boards of this library.

Main components

2

README

README.md

BLDC Hat

PCB: 4-layer KiCad IC: DRV8316C Control: FOC

A four-layer BLDC motor driver hat built around the TI DRV8316C for the STM32F405 development module. Built as test bed for field-oriented control algorithm development.

BLDC Hat perspective render

Hardware

  • Three-phase driver with six PWM inputs, three low-side current-sense outputs, SPI configuration/status, and motor-supply voltage sensing.
  • Onboard 5 V buck converter with a switch for MCU power, plus power and fault LEDs.
  • Four-layer PCB.

Connectors

ConnectorPurpose
CN1 · XT30Motor power input (VM_IN)
U3 · MR30Three motor phases (U, V, W)
J2 · 2×10Interface to the STM32F405 module
J4 · 2×3Six PWM inputs (CH1–3, C1N–3N)
J1 · 2×3Driver SPI (CLK, CS, MI, SI, 3V3, GND)
J5 · 1×4I²C (SDA, SCL, 3V3, GND)
CN2 · XT30Optional motor-power output; marked DNP in the BOM

With MCU PWR on, the hat supplies 5 V to the MCU module. Its power guidance warns against connecting USB and external 5 V at the same time.

Layout

  • F.Cu: Power + signals fanout
  • In1.Cu: GND
  • In2.Cu: GND + PWM signals
  • B.Cu: GND + SPI/current sense signals

PWM traces are routed on 3rd layer to use 2nd GND layer as shielding against noisy power traces.

alt text

The KiCad project contains the schematic, PCB, and manufacturing files. See the MCU module README for its pinout.


Designed by @eggsacc · HatDrive V1.5
Updated 06/10/2026

Parts

46
QtyValueFootprintReferences
310kResistor_SMD:R_0402_1005MetricR3, R4, R11
310uCapacitor_SMD:C_1210_3225MetricC18, C19, C20
322k1Resistor_SMD:R_0402_1005MetricR2, R14, R15
322pCapacitor_SMD:C_0402_1005MetricC15, C16, C17
3330Resistor_SMD:R_0402_1005MetricR7, R8, R9
3470Resistor_SMD:R_0402_1005MetricR6, R12, R13
2100nCapacitor_SMD:C_0402_1005MetricC1, C10
21uCapacitor_SMD:C_0603_1608MetricC6, C11
2LOGOLOGOG***, G***
1118kResistor_SMD:R_0402_1005MetricR1
11uCapacitor_SMD:C_0402_1005MetricC9
122Resistor_SMD:R_0402_1005MetricR10
122uCapacitor_SMD:C_1210_3225MetricC3
122uCapacitor_SMD:C_0805_2012MetricC4
12u2Capacitor_SMD:C_1206_3216MetricC2
133uInductor_SMD:L_6.3x6.3_H3L1
147nCapacitor_SMD:C_0603_1608MetricC5
147uCapacitor_SMD:CP_Elec_6.3x7.7C8
15k1Resistor_SMD:R_0402_1005MetricR16
1Breakout headerConnector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_VerticalJ2
1DRV8316CRRGFRfplib_addon:DRV8316CRU1
1FAULT_LEDLED_SMD:LED_0402_1005MetricD1
1I2CConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1LMR51610XDBVRPackage_TO_SOT_SMD:SOT-23-6U4
1MCU_POWERButton_Switch_SMD:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W6.73mm_P2.54mm_LowProfile_JPinSW1
1MCU_PWR_LEDLED_SMD:LED_0402_1005MetricD2
1PWMConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ4
1Phase outfplib_addon:CONN-TH_MR30PW-M30-G-YU3
1SMBJ28AQfplib_addon:SMB_L4.3-W3.6-LS5.3-RDD3
1SPIConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ1
1VM_INfplib_addon:CONN-TH_XT30PW-MCN1

Questions

How big is the HatDrive kicad PCB?

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

What parts does the HatDrive kicad use?

46 parts, built around the DRV8316CRRGFR and SMBJ28AQ. 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 HatDrive kicad KiCad files?

From the eggsacc/pcb-HatDrive repository on GitHub, at the commit this page was made from: the board is HatDrive_kicad/HatDrive_kicad.kicad_pcb and its schematic HatDrive_kicad/HatDrive_kicad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HatDrive kicad design in my own project?

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

Similar boards

  • 4 layers34 × 37.3 mmMg gimbus, the printed circuit board in 3D

    Mg gimbus

    Every-Flavor-Robotics/motorgo-mini-hardware

    hardware files for motorgo mini

    102 parts12
  • 4 layers55 × 60 mmPico dual PMSM BUG79100G DRV8316C, the printed circuit board in 3D

    Pico dual PMSM BUG79100G DRV8316C

    Gepetto/MOTKIN-PCB

    Low cost PMSM using RPI Pico, external ADC and integrated mos+driver+current sensing.

    85 parts6BSD-3-Clause
  • 4 layers115 × 55 mmRoamr motors, the printed circuit board in 3D

    Roamr motors

    uw-roamr/roamr

    turn your phone into a robot running SLAM with two motors, two control boards, and a bluetooth chip

    110 parts6
  • 2 layers50 × 50 mmTriad Actuator L, the printed circuit board in 3D

    Triad Actuator L

    kennethsauers/Triad-Actuator-L

    41 parts1MIT
  • 4 layers67.4 × 67.4 mmSCLF Gripper, the printed circuit board in 3D

    SCLF Gripper

    Tknika-SCLF/sclf-gripper

    Deskargatu eta instalatu Antigravity bere webgune ofizialetik. VSCode/Windsurf-en fork bat da eta modu berean funtzionatzen du.

    78 parts1
  • 4 layers54 × 54 mmSmartknob driver, the printed circuit board in 3D

    Smartknob driver

    aryanthomare/SmartKnob

    A programmable force-feedback knob for your computer. Custom motor-driver PCB, closed-loop haptic firmware, a native Windows companion app and a parametric 3D-printed enclosure, all designed in house.

    69 parts