Skip to the content
2 layers65 × 56 mmQuadMotorHAT, the printed circuit board in 3D

A custom Raspberry Pi HAT for controlling four DC motors with simple Python control.

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
41
Pads
102
Tracks, vias
202, 5
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
13 Aug 2026
Updated
16 Aug 2026

Overview

QuadMotorHAT is an open-source printed circuit board by itsjeanxx12, from the itsjeanxx12/QuadMotorHAT repository on GitHub, published under the MIT licence. It is a 2-layer board of 65 × 56 mm with 17 parts on 41 nets, routed with 202 tracks and 5 vias.

It is built around the L293D. Its parts include 5 capacitors, 4 connectors, 2 ICs, 1 resistor and 1 diode. It belongs with the robots and motor control boards of this library.

Main components

1

README

README.md

QuadMotorHAT

A simple Raspberry Pi HAT for controlling four DC motors.

QuadMotorHAT PCB

Why I made it

While making my WRO robot, I ran into a problem: I needed to control multiple motors from a Raspberry Pi without a mess of separate boards and wiring.

There are already plenty of motor HATs available, but I wanted something simple that fit what I needed. So I decided to design my own.

Features

  • 4 motor control — Control four motors from the Raspberry Pi using the included Python library.
  • Screw terminals — Secure connections for the motors and power.
  • Compact design — Keeps a low profile while leaving enough room for a cooling fan on the Raspberry Pi.
  • Simple Python control — Control the motors directly from your Python project.

Python Library

The repository includes quadmotorhat.py, which provides a simple interface for controlling the four motors.

First, install gpiozero:

bash
pip install gpiozero

Then place quadmotorhat.py in the same directory as your Python program:

text
your_project/
├── quadmotorhat.py
└── main.py

Import the motor controls:

python
from quadmotorhat import M1, M2, M3, M4

You can then use M1, M2, M3, and M4 to control the four motor outputs.

PCB Files

The full board design is included in the repository.

  • QuadMotorHAT.kicad_sch — Schematic
  • QuadMotorHAT.kicad_pcb — PCB layout
  • QuadMotorHAT.kicad_pro — KiCad project

You can open these files in KiCad to inspect or modify the design.

License

This project is licensed under the terms of the license included in this repository.

Parts

17
QtyValueFootprintReferences
40.1uFCapacitor_SMD:C_0805_2012MetricC1, C3, C4, C5
4MountingHole_2.7mm_M2.5MountingHole:MountingHole_2.7mm_M2.5MH1, MH2, MH3, MH4
2L293DPackage_DIP:DIP-16_W7.62mmU2, U3
1100uF 35VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC2
1330Resistor_SMD:R_0805_2012MetricR1
1GPIOConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ1
1LEDLED_SMD:LED_0805_2012MetricD1
1M1/GND/M2TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-5_1x05_P5.00mm_HorizontalJ4
1M3/GND/M4TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-5_1x05_P5.00mm_HorizontalJ3
1MPWRTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ2

Similar boards

  • 2 layers178 × 145 mmUltra DB X51 v1, the printed circuit board in 3D

    Ultra DB X51 v1

    ExploreEmbedded/8051_DevelopmentBoard

    Design files and sample code for 8051 development Ultra Boards

    145 parts70
  • 2 layers84.3 × 58.4 mmEnocderDriver, the printed circuit board in 3D

    EnocderDriver

    NikodemBartnik/Small-Projects

    All of smaller projects (Arduino, PCBs, electronics, code)

    35 parts55
  • 2 layers56.4 × 72.6 mmRas pi hat, the printed circuit board in 3D

    Ras pi hat

    geno543/Redropi_highway

    the project aims to detect asteroids and meteor movement using high-quality cameras and radar detection methods using an AI model for accurate analysis, and it classifies bodies be in three categories: non-meteor…

    8 parts13
  • 2 layers87.5 × 70 mmLaberinto, the printed circuit board in 3D

    Laberinto

    CRM-UAM/CRMaze

    Open source robot for maze solving + line following

    34 parts12
  • 2 layers92.5 × 62.5 mmDropGenPCB, the printed circuit board in 3D

    DropGenPCB

    harrislab-brown/DropGen

    DropGen uses a fluid reservoir and a piezoelectric buzzer to precisely and repeatably dispense small droplets on demand.

    25 parts12CC-BY-SA-4.0
  • 2 layers47.5 × 49.5 mmElectronic, the printed circuit board in 3D

    Electronic

    zosko/magspoof

    Magspoof with Arduino Pro Micro

    5 parts11
  • 2 layers120.7 × 184.1 mmBeachRover circuit, the printed circuit board in 3D

    BeachRover circuit

    wizardofrobots/roverCode

    Jetson Nano powered Arduino Rover

    11 parts10
  • 2 layers90 × 53.4 mmOpenOx, the printed circuit board in 3D

    OpenOx

    hacklabkyiv/openox-pcb

    PCB design for OpenOx - open source oxygen concentrator

    43 parts7GPL-3.0

Questions

How big is the QuadMotorHAT PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the QuadMotorHAT use?

17 parts, built around the L293D. 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 QuadMotorHAT KiCad files?

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

Can I use the QuadMotorHAT design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).