Skip to the content
2 layers112 × 90 mmTtrpg9000, the printed circuit board in 3D

Hardware and software for a hand-held dice rolling computer

Size
112 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
43
Nets
46
Pads
165
Tracks, vias
135, 20
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
12 Apr 2024
Updated
27 Sep 2026

Overview

Ttrpg9000 is an open-source printed circuit board by GhostWrench, from the GhostWrench/ttrpg9000 repository on GitHub, published under the MIT licence. It is a 2-layer board of 112 × 90 mm with 43 parts on 46 nets, routed with 135 tracks and 20 vias.

It is built around the ATTINY4313-SU and EA DOGM204B-A. Its parts include 14 capacitors, 11 resistors, 3 connectors, 3 switches and 1 IC. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

TTRPG-9000

TTRPG-9000 TTRPG-9000SR

The TTRPG-9000 is an open-hardware and open-source handheld electronic dicerolling computer for table top RPGs. It allows the user to select NdM to roll and shows the result of each individual roll as well as the total. Dice available are d2, d4, d6, d8, d10, d12, d20 and d100. A psuedo random number generator is seeded/updated via both the clock and user interactions with the board making for good randomness in the output. It runs off of a single 1.5V CR2302 battery and has a very good battery life (tested to 80+ hours and going). Due to requests from a lot of Shadowrun players there is a special Shadowrun software build option that adds a summary mode for hits and glitches as well as a boot mode (turn on the power while holding down an encoder) that makes it work just like the original version.

Build and installation

To build and install, you will need a Linux computer with gcc-avr, binutils-avr avr-libc and avrdude installed. (I'm sure you can do it on Windows too, but you are on your own)

Prefer not to install the toolchain? You can build the whole thing in a Podman container instead — see code/PODMAN.md.

Build (Standard)

bash
$ cd code
$ make

Build (Shadowrun)

bash
$ cd code
$ SHADOWRUN=1 make

Build documentation

The API documentation is generated with doxygen:

bash
$ cd code
$ make docs

The result is written to code/docs/html/index.html.

Software installation

To install you will need an AVR programmer (make sure it is set to 3v3 programming mode, usually with a jumper). Attach to the 6 pin AVR programming port by soldering on a header or using a Pogo adapter. The run

bash
$ make flash

Buy on Etsy

Support me and my work by buying a pre-fabricated unit on Etsy!

Standard Edition

Shadowrun Edition

Parts

43
QtyValueFootprintReferences
1110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11
81uResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderC1, C6, C7, C8, C9, C11, C12, C14
8MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965_Pad_TopBottomH1B1, H1T1, H2B1, H2T1, H3B1, H3T1, H4B1, H4T1
40.01uResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderC3, C4, C10, C13
20.1uResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderC5, C15
2C1x6Project:CON_522070660_MOLJ2, J3
2RotaryEncoder_SwitchProject:PEC12R-4xxxF-NxxxxSW2, SW3
13VProject:BAT_AAA-BAT-054-P06BT1
1ATtiny4313-SPackage_SO:SOIC-20W_7.5x12.8mm_P1.27mmU1
1AVR-ISP-6Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ1
1EA_DOGM204Project:DOGM204DS1
1LOGOProject:GhostWrenchLogoG***
1SW_SPDTProject:OS102011MA1QSW1

Similar boards

  • 2 layers197.5 × 17.8 mmSet board avr, the printed circuit board in 3D

    Set board avr

    eshazen/nixie-transistor-clock

    Documents and files for Nixie Transistor Clock (Kabtronic)

    39 parts
  • 2 layers84 × 60 mmMatrixtag, the printed circuit board in 3D

    Matrixtag

    onitake/pcb-workshop

    KiCad PCB layouting workshop

    24 parts
  • 2 layers91 × 55 mmMmk3, the printed circuit board in 3D

    Mmk3

    signalcompose/mmk_hard

    mmk hardware implementation via simple control / pro micro / SPI

    33 parts
  • 2 layers52.2 × 52.2 mmBase, the printed circuit board in 3D

    Base

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    43 parts3kApache-2.0
  • 2 layers33 × 34 mmESP32-bat monitor latch, the printed circuit board in 3D

    ESP32-bat monitor latch

    pcbreflux/espressif

    all espressif stuff will committed here

    43 parts608GPL-3.0
  • 2 layers42.9 × 19 mmPoly kb 2.25U, the printed circuit board in 3D

    Poly kb 2.25U

    thpoll83/PolyKybd

    PolyKybd

    43 parts411CERN-OHL-W-2.0

Questions

How big is the Ttrpg9000 PCB?

It measures 112 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ttrpg9000 use?

43 parts, built around the ATTINY4313-SU and EA DOGM204B-A. 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 Ttrpg9000 KiCad files?

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

Can I use the Ttrpg9000 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).