

Hat template
Pinball retro afterglow
- Size
- 64.4 × 81 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 6
- Nets
- 26
- Pads
- 32
- Tracks, vias
- 0, 0
- Routed
- Not yet
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 27 Dec 2017
- Updated
- 9 Aug 2026
Overview
Hat template is an open-source printed circuit board by bitfieldlabs, from the bitfieldlabs/afterglow repository on GitHub. It is a 2-layer board of 64.4 × 81 mm with 6 parts on 26 nets.
README
README.mdAFTERGLOW is a pinball machine extension board that aims at softening the hard lamp on/off transitions which are the consequence of replacing the original incandescent bulbs with LEDs. Reproducing the original light effects is a big part of preserving a pinball game's nostalgia.
It currently works with Williams WPC, Williams System 11, Data East and probably also with Sega games. The basic principle involves resampling of the original lamp matrix signals at a higher frequency. This allows for PWM LED dimming with additional brightness steps.
The resampled signal is output via MOSFETs, allowing for direct connection of your pinball machine's lamp matrix.
Make sure to check the for detailed information and instructions.

While the effect is hard to catch on camera, this video gives an idea:
https://github.com/bitfieldlabs/afterglow/assets/999857/57093b11-0a40-46fb-a978-5d42df743db6
Licensing
Firmware and configuration software: Apache License 2.0
Hardware designs: CERN Open Hardware License - Permissive 2.0
See LICENSES/ for details
Licensing change
As of August 2026:
- Firmware and configuration software are licensed under Apache-2.0.
- Hardware designs are licensed under CERN-OHL-P-2.0.
All contributors with copyrightable contributions have consented to the relicensing, or their contributions have been replaced.
Quick guide to the board revisions
All in one
- PCB v3.0
This is the newest board built around the RP2040. Supports WPC, Data East, Sys11, Whitestar, S.A.M.
Supports hats, allowing for different ouput connectors, modding ports, displays etc.
Input protection using optocouplers.
Check the folder's readme for more details.
WPC, WPC-95, System 11, Data East, Sega
- PCB v1.3
This is the preferred board revision for these games.
Dedicated power input (+18V, Ground) must be connected separately to power driver board - PCB v1.4
Except for power input exactly the same as revision 1.3
+18V taken from column input.
⚠ Ground must still be connected to the PDB! Failure to do so will damage the board! - PCB v1.5
Same as v1.4, but using a one-sided PCB. This should be easier/cheaper for automated production than v1.4.
Stern Whitestar (and possibly S.A.M.)
- PCB v2.1 Dedicated board which will only work with Stern Whitestar and possibly S.A.M. games
Parts
6| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | Conn_01x10_Pin | Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_Vertical | J4, J5 |
| 2 | Conn_02x03_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J7, J8 |
| 1 | afterglow:afterglow | afterglow | |
| 1 | LOGO | hat_template:hat | G*** |
More from bitfieldlabs/afterglow
8- 2 layers128.6 × 81 mm

- 2 layers128.7 × 81 mm

- 2 layers81 × 181.5 mm

- 2 layers116.5 × 81 mm

- 2 layers64.4 × 81 mm

- 2 layers193.5 × 80 mm

- 2 layers64.4 × 81 mm

- 2 layers64.4 × 81 mm

Similar boards
- 2 layers18.5 × 11.1 mm

Switch
byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.
6 parts4.3kMIT - 2 layers14.6 × 33 mm

- 2 layers9 × 9 mm

Dpoint
Jcparkyn/dpoint
Open-source digital stylus using camera tracking and inertial measurements
6 parts1.1kMIT - 2 layers51.5 × 16.6 mm

MicroswitchXY Endstop
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
6 parts1.1kGPL-3.0 - 2 layers21.9 × 76.7 mm

Amiga External
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
6 parts1kGPL-3.0 - 2 layers88.9 × 50.8 mm

Businesscard
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
6 parts915 - 2 layers20.3 × 15.2 mm

L0 RGB led
Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.
6 parts546MIT - 2 layers9 × 3.6 mm

Questions
How big is the Hat template PCB?
It measures 64.4 × 81 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Hat template use?
6 parts. 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 Hat template KiCad files?
From the bitfieldlabs/afterglow repository on GitHub, at the commit this page was made from: the board is afterglow_pcb_v30/hat_template/hat_template.kicad_pcb and its schematic afterglow_pcb_v15/afterglow_nano_smd.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Hat template design in my own project?
Its repository states no licence, so its author keeps all rights: ask bitfieldlabs before reusing the design.