

HatDrive kicad
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
2README
README.mdBLDC Hat
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.

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
| Connector | Purpose |
|---|---|
| CN1 · XT30 | Motor power input (VM_IN) |
| U3 · MR30 | Three motor phases (U, V, W) |
| J2 · 2×10 | Interface to the STM32F405 module |
| J4 · 2×3 | Six PWM inputs (CH1–3, C1N–3N) |
| J1 · 2×3 | Driver SPI (CLK, CS, MI, SI, 3V3, GND) |
| J5 · 1×4 | I²C (SDA, SCL, 3V3, GND) |
| CN2 · XT30 | Optional 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 fanoutIn1.Cu: GNDIn2.Cu:GND + PWM signalsB.Cu:GND + SPI/current sense signals
PWM traces are routed on 3rd layer to use 2nd GND layer as shielding against noisy power traces.

The KiCad project contains the schematic, PCB, and manufacturing files. See the MCU module README for its pinout.
Updated 06/10/2026
Parts
46| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 10k | Resistor_SMD:R_0402_1005Metric | R3, R4, R11 |
| 3 | 10u | Capacitor_SMD:C_1210_3225Metric | C18, C19, C20 |
| 3 | 22k1 | Resistor_SMD:R_0402_1005Metric | R2, R14, R15 |
| 3 | 22p | Capacitor_SMD:C_0402_1005Metric | C15, C16, C17 |
| 3 | 330 | Resistor_SMD:R_0402_1005Metric | R7, R8, R9 |
| 3 | 470 | Resistor_SMD:R_0402_1005Metric | R6, R12, R13 |
| 2 | 100n | Capacitor_SMD:C_0402_1005Metric | C1, C10 |
| 2 | 1u | Capacitor_SMD:C_0603_1608Metric | C6, C11 |
| 2 | LOGO | LOGO | G***, G*** |
| 1 | 118k | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 1u | Capacitor_SMD:C_0402_1005Metric | C9 |
| 1 | 22 | Resistor_SMD:R_0402_1005Metric | R10 |
| 1 | 22u | Capacitor_SMD:C_1210_3225Metric | C3 |
| 1 | 22u | Capacitor_SMD:C_0805_2012Metric | C4 |
| 1 | 2u2 | Capacitor_SMD:C_1206_3216Metric | C2 |
| 1 | 33u | Inductor_SMD:L_6.3x6.3_H3 | L1 |
| 1 | 47n | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 47u | Capacitor_SMD:CP_Elec_6.3x7.7 | C8 |
| 1 | 5k1 | Resistor_SMD:R_0402_1005Metric | R16 |
| 1 | Breakout header | Connector_PinHeader_2.54mm:PinHeader_2x10_P2.54mm_Vertical | J2 |
| 1 | DRV8316CRRGFR | fplib_addon:DRV8316CR | U1 |
| 1 | FAULT_LED | LED_SMD:LED_0402_1005Metric | D1 |
| 1 | I2C | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J5 |
| 1 | LMR51610XDBVR | Package_TO_SOT_SMD:SOT-23-6 | U4 |
| 1 | MCU_POWER | Button_Switch_SMD:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W6.73mm_P2.54mm_LowProfile_JPin | SW1 |
| 1 | MCU_PWR_LED | LED_SMD:LED_0402_1005Metric | D2 |
| 1 | PWM | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J4 |
| 1 | Phase out | fplib_addon:CONN-TH_MR30PW-M30-G-Y | U3 |
| 1 | SMBJ28AQ | fplib_addon:SMB_L4.3-W3.6-LS5.3-RD | D3 |
| 1 | SPI | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J1 |
| 1 | VM_IN | fplib_addon:CONN-TH_XT30PW-M | CN1 |
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 mm

- 4 layers36 × 54.5 mm

V0.2 Custom Motor Driver DRV8316 STM32G4
clawntl/BLDC-Driver
BLDC Driver with STM32G431 and DRV8316
86 parts9AGPL-3.0 - 4 layers55 × 60 mm

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 mm

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 layers189.5 × 130.5 mm

- 2 layers50 × 50 mm

- 4 layers67.4 × 67.4 mm

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 mm

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