Skip to the content
PCBKitNew board
2 layers65 × 56.5 mmGwent hat, the printed circuit board in 3D

Electronic gwent board

Size
65 × 56.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
41
Pads
91
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 10.0 (file 20260206)
Created
11 May 2020
Updated
6 Jun 2026

Overview

Gwent hat is an open-source printed circuit board by declanshanaghy, from the declanshanaghy/gwent repository on GitHub. It is a 2-layer board of 65 × 56.5 mm with 14 parts on 41 nets.

It is built around the M2.5. Its parts include 5 capacitors, 4 connectors and 1 switch.

Main components

1

README

hardware/pcb/README.md

Gwent HAT — KiCad project

A Raspberry Pi 4 HAT carrier PCB for the Gwent Companion. Hosts headers and Qwiic connectors so the existing breakout modules (MFRC522, SSD1306 OLED, TCA9548A mux, three IS31FL3731 charlieplex matrices, PEC11 rotary encoder) plug in without re-soldering. Targets fabrication at JLCPCB.

Canonical hardware spec: design/tasks/011-hardware-specification.md. If anything in the schematic conflicts with that doc, the doc wins — fix the schematic.

Quick facts

Form factorRaspberry Pi HAT (65 × 56.5 mm)
Layers2
SubstrateFR4, 1.6 mm, 1 oz copper, ENIG (or HASL for cheap)
Connectors2×20 GPIO stacking header, 1×8 RC522 header, 1×16 OLED header, 4× Qwiic JST-SH (mux + 3 matrices), PEC11 footprint
Library depsKiCad 9 built-in libraries only (Connector, Connector_Generic, Connector_JST, Switch). SparkFun KiCad library optional for prettier Qwiic 3D models.
Power5V / 3.3V tapped from Pi GPIO header (no on-board regulator)
Target fabJLCPCB, 5 boards (~$5 unassembled, ~$25 with header assembly)

Required tools

Once KiCad is installed, open gwent-hat.kicad_pro and KiCad will pull in the project's symbol/footprint library tables (in sym-lib-table / fp-lib-table) which point at the vendored libs in libs/.

First-time setup

bash
cd hardware/pcb
open gwent-hat.kicad_pro          # macOS
# or
xdg-open gwent-hat.kicad_pro      # Linux

KiCad will create the schematic (gwent-hat.kicad_sch) and PCB (gwent-hat.kicad_pcb) on first save if they don't already exist. All symbols and footprints come from KiCad's bundled libraries — no extra setup required.

Optional: SparkFun KiCad library (for nicer Qwiic visuals)

bash
# From hardware/pcb/
git clone --depth 1 https://github.com/sparkfun/SparkFun-KiCad-Libraries.git libs/sparkfun-kicad
# Then in KiCad: Preferences → Manage Symbol Libraries → add libs/sparkfun-kicad
#                Preferences → Manage Footprint Libraries → add libs/sparkfun-kicad/footprints

This isn't required — KiCad's Connector_JST:JST_SH_* symbols are functionally equivalent — but the SparkFun version comes with proper Qwiic-branded silkscreen and 3D models.

How the project is organized

FileWhat it is
gwent-hat.kicad_proKiCad project metadata
gwent-hat.kicad_schSchematic
gwent-hat.kicad_pcbPCB layout (board outline pre-drawn to Pi HAT spec)
sym-lib-tableProject-scoped symbol library list
fp-lib-tableProject-scoped footprint library list
BUILD.mdStep-by-step schematic placement guide
BOM.mdBill of materials with manufacturer part numbers and JLCPCB/LCSC sourcing
libs/(Optional) Vendored EDA libraries — only needed for SparkFun Qwiic visuals
fab/Fabrication outputs (Gerbers, drill, BOM, CPL) — only versioned zips are committed
docs/netlist.mdCanonical net-by-net pin assignments — the source of truth for the schematic

Workflow

  1. Schematic — open gwent-hat.kicad_sch and follow BUILD.md step by step. Place every symbol from the BOM, wire nets per docs/netlist.md, assign footprints, run ERC.
  2. PCB layout — Tools → Update PCB from Schematic. Footprints will appear inside the pre-drawn board outline. Place, route, run DRC. Match design rules to JLCPCB's "2-layer, 6/6 mil min trace, 0.3 mm min hole" capability tier.
  3. Fab outputs — File → Plot → Gerbers (use the JLCPCB-friendly settings documented in BUILD.md), then File → Fabrication Outputs → Drill Files. Run the JLCPCB plugin to generate BOM + CPL CSVs.
  4. Order — zip the Gerber/drill/BOM/CPL set into fab/gwent-hat-v1.0-jlcpcb.zip, upload to https://jlcpcb.com, pick stackup + finish + quantity, pay.

Versioning

  • v1.0 — initial Pi HAT carrier with breakouts on headers/Qwiic
  • v1.1 — corrections from first fab run (TBD)
  • v2.0 — integrate IS31FL3731 + LEDs and TCA9548A onto the board (TBD)

Each fab order zip is committed under fab/gwent-hat-vN.M-jlcpcb.zip so the as-fabbed artifact is always reproducible.

Status

  • Project scaffold (this commit)
  • Canonical netlist documented (docs/netlist.md)
  • Bill of materials (BOM.md)
  • Build guide (BUILD.md)
  • Project file (gwent-hat.kicad_pro)
  • Schematic with all symbols placed (gwent-hat.kicad_sch, generated by scripts/gen_schematic.py)
  • Schematic wired (add wires + net labels per BUILD.md)
  • ERC clean
  • Board outline drawn to Pi HAT spec on Edge.Cuts layer
  • PCB placement
  • PCB routing
  • DRC clean
  • Gerbers exported
  • BOM + CPL generated
  • First boards ordered

Parts

14
QtyValueFootprintReferences
4100nFCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4
4M2.5MountingHole:MountingHole_2.7mm_M2.5_DIN965_PadH1, H2, H3, H4
110uFCapacitor_SMD:C_0805_2012MetricC5
1PEC11Rotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW1
1Pi4 GPIO headerConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ1
1Qwiic to muxConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ4
1RC522Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
1SSD1306 OLEDConnector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalJ3

Questions

How big is the Gwent hat PCB?

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

What parts does the Gwent hat use?

14 parts, built around the M2.5. 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 Gwent hat KiCad files?

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

Can I use the Gwent hat design in my own project?

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

Similar boards

  • 2 layers40.9 × 85 mmStudio mic, the printed circuit board in 3D

    Studio mic

    Spirit532/studio_mic

    A simple, easy to build preamplifier for any true condenser capsule, to make a condenser microphone

    63 parts150MIT
  • 2 layers65 × 56 mmPi1541io, the printed circuit board in 3D

    Pi1541io

    hackup/Pi1541io

    Raspberry Pi extension board for the PI1541 project.

    57 parts109CC-BY-SA-4.0
  • 2 layers65 × 56 mmClumsyMIDI, the printed circuit board in 3D

    ClumsyMIDI

    gmcn42/clumsyMIDI

    A THT-only Raspberry Pi expansion board containing a MIDI interface, DAC, and OLED display

    26 parts90CC-BY-SA-4.0
  • 6 layers203 × 151.8 mmPDNode Baseboard, the printed circuit board in 3D

    PDNode Baseboard

    DvidMakesThings/HW_PDNode-600-Pro

    The PDNode-600 is a professional-grade, 600W USB Power Delivery Unit designed specifically for compact 10-inch rack systems, targeting embedded developers, homelab enthusiasts, test benches, and smart infrastructure.

    236 parts86AGPL-3.0
  • 4 layers60 × 127 mmOpenHT RF, the printed circuit board in 3D

    OpenHT RF

    M17-Project/OpenHT-hw

    Repository for the hardware parts of the OpenHT project

    199 parts63
  • 2 layers85 × 56.5 mmModemHAT, the printed circuit board in 3D

    ModemHAT

    astuder/ModemHAT

    Classic Phone Modem HAT for the Raspberry Pi

    111 parts56
  • 4 layers70 × 60 mmMarelleo, the printed circuit board in 3D

    Marelleo

    Zebra-Rodeo/marelleo

    Une boîte qui raconte une histoire quand on pose une figurine dessus. Boîtier, carte, micrologiciel et doc pour la refaire.

    57 parts47
  • 2 layers285.8 × 124.6 mmPunk75, the printed circuit board in 3D

    Punk75

    dsanchezseco/punk75

    Ortholinear keyboard with 75 keys and all components through hole

    194 parts44GPL-3.0