Skip to the content
2 layers115.4 × 111.1 mmChoose Your Own GPT, the printed circuit board in 3D

Choose Your Own GPT

jrutlen/Choose-Your-Own-GPT1

Choose Your Own GPT is a seemingly analog device without any screens or visible digital elements. Spinning the physical dials to select characters and a story setting and then hitting the large arcade 'go' button, the…

Size
115.4 × 111.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
112
Nets
38
Pads
319
Tracks, vias
901, 155
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
29 Sep 2023
Updated
2 Oct 2026

Overview

Choose Your Own GPT is an open-source printed circuit board by jrutlen, from the jrutlen/Choose-Your-Own-GPT repository on GitHub. It is a 2-layer board of 115.4 × 111.1 mm with 112 parts on 38 nets, routed with 901 tracks and 155 vias.

Its parts include 32 diodes, 17 connectors, 14 resistors, 7 transistors and 7 switches.

README

README.md

Choose Your Own GPT

Choose Your Own GPT is a seemingly analog device without any screens or visible digital elements. Spinning the physical dials to select characters and a story setting and then hitting the large arcade 'go' button, the built-in printer will spit out a Choose Your Own Adventure type story on the built-in receipt printer.

Features

  • Built-in 58mm thermal printer to dispense stories on demand
  • Designed to be printable on 200mm² 3D printers
  • Top dials can be snapped off of the main PCB to allow modification to any size
  • Optional 4th dial can be added to increase story objects or add an additional element (talk like a pirate, etc.)
  • Support for e-ink display (untested)
  • Over-the-air (OTA) firmware updates via the web portal
  • Import/export configuration as JSON

Hardware Requirements

  • ESP32 development board
  • 58mm thermal printer (connected to ESP32 Serial2: RX=16, TX=17)
  • Adafruit NeoPixel LEDs (WaitEnd ring: 13 LEDs on pin 26; Go button: 3 LEDs on pin 33)
  • Arcade-style buttons with LEDs (Red: pin 27, Blue: pin 12, Green: pin 2, Yellow: pin 15)
  • Rotary dials wired to input matrix (see PCB directory for schematic)
  • 3D-printed enclosure (STL files in the STLs directory)
  • Bill of materials in Bill of Materials.csv

Building and Flashing

This project uses PlatformIO. All library dependencies are declared in ChooseYourOwnGPT/platformio.ini and are fetched automatically on first build.

  1. Install PlatformIO IDE or the PlatformIO CLI.
  2. Open the ChooseYourOwnGPT folder as a PlatformIO project.
  3. Build and upload to the ESP32:
    text
    pio run --target upload
  4. You do not need to add your API key to the code before uploading — it is set via the web portal after the device is running.

Library Dependencies

LibraryVersion
Adafruit NeoPixel1.12.4
Adafruit Thermal Printer1.4.1
NetWizard1.2.0
ArduinoJson7.3.1

Building with GitHub Actions

A workflow (.github/workflows/build.yml) automatically builds the firmware on every push or pull request to main/master that touches ChooseYourOwnGPT/ or the workflow file itself. No local toolchain is required to produce a flashable binary.

What the workflow does:

  1. Checks out the repository.
  2. Installs PlatformIO via pip.
  3. Runs pio run inside ChooseYourOwnGPT/.
  4. Uploads the compiled binaries as a firmware artifact:
    • firmware.bin — application image
    • bootloader.bin — ESP32 bootloader
    • partitions.bin — partition table

Downloading the artifact:

  1. Go to the Actions tab of the repository on GitHub.
  2. Click the latest successful Build Firmware run.
  3. Scroll to the Artifacts section at the bottom and download firmware.
  4. Unzip the archive to get the .bin files.

Flashing the downloaded firmware:

To flash from scratch (first time or full reflash), use esptool.py:

text
esptool.py --chip esp32 --baud 921600 \
  write_flash \
  0x1000  bootloader.bin \
  0x8000  partitions.bin \
  0x10000 firmware.bin

To update an already-running device, use the OTA firmware update in the web portal — see OTA Firmware Update below.

First-Time Setup

  1. Power on the device. It will start a Wi-Fi access point named ChooseYourOwnGPT with the password itMightBeMagic.
  2. Connect to that network from your phone or computer.
  3. A captive portal will open automatically (or navigate to http://192.168.4.1).
  4. Enter your home Wi-Fi credentials and save. The device will reboot and connect to your network.

Configuration

Once the device is connected to your Wi-Fi network, open a browser and go to:

text
http://<device-ip>/config

The device IP is printed to the serial console on connection. The configuration portal lets you adjust all settings without reflashing.

General Settings

SettingDescription
OpenAI API KeyYour sk-… key from platform.openai.com. Stored on the device only — never sent anywhere except the OpenAI API.
OpenAI ModelThe model to use for story generation (default: gpt-4o).
Hyphenate long wordsWhen enabled, words that are too long for a line are broken with a hyphen instead of overflowing.

Character Names (Small Dial)

Up to 10 character names can be assigned to positions on the small dial. Each position corresponds to a dial setting (0–9). Names can include relationship context (e.g. "Mia (a 7-year-old girl)"), which is passed directly to the story prompt.

Adventure Destinations (Large Dial)

Up to 16 adventure destinations can be assigned to positions on the large dial. Each entry is a sentence fragment appended to the story prompt (e.g. " who go on an adventure in the Amazon Rainforest.").

Story Prompts

These fields control the text sent to the OpenAI API at each stage of the story:

FieldDescription
Story PromptOpening prompt prepended before the selected character names.
InstructionsInstructions appended after the adventure destination (formatting rules, chapter length, button options, etc.).
Surprise Ending PromptSent when the red button is pressed to request an unexpected ending.
Blue Button – ContinueMessage sent when the blue button is pressed to continue the story.
Blue Button – Final ChapterMessage sent when the blue button is pressed in the final chapter.
Yellow Button – ContinueMessage sent when the yellow button is pressed to continue the story.
Yellow Button – Final ChapterMessage sent when the yellow button is pressed in the final chapter.

Import / Export

Use the Export Settings JSON button to download all current settings as a cyogpt-config.json file. Use Import Settings JSON to restore or share a configuration.

OTA Firmware Update

The /config portal includes a firmware update section. Select a compiled .bin file (from pio run build output) and click Upload Firmware. The device will reboot automatically after a successful update.

Usage

  1. Power on the device and wait for it to connect to Wi-Fi (the LEDs will indicate status).
  2. Spin the small dial to select a character and the large dial to choose an adventure destination.
  3. Press the green Go button to generate a story. The printer will output the first chapter.
  4. At the end of each chapter, press the blue or yellow button to choose how the story continues.
  5. Press the red button at any point to trigger a surprise ending.
  6. After the final (5th) chapter, the story is complete. Set the dials and press Go to start a new story.

Related

Build log with photos

Hackaday.io

Parts

112
QtyValueFootprintReferences
20D_DO-35_SOD27_P7.62mm_HorizontalDiode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28 +4
12LED_D3.0mmLED_THT:LED_D3.0mmD1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12
10JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ2, J4, J5, J6, J7, J8, J9, J10, J11, J12
7TO-92Package_TO_SOT_THT:TO-92Q1, Q2, Q3, Q4, Q5, Q6, Q7
41.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4, R6, R12, R14
4Magnetic Reed SwitchLibrary:Magnetic Reed SwitchSW5, SW6, SW7, SW8
4PinHeader_1x07_P2.54mm_VerticalConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalDIAL 1, DIAL 1, DIAL 2, DIAL 2
4R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7, R8, R9, R10
322Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R3, R5
3390Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R11, R16
34.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontallocked, R13, R17
3JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ1, J3, J13
3Nidec_Copal_SH-7010CButton_Switch_THT:Nidec_Copal_SH-7010CSW1, SW2, SW3
3SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm_NumberLabelsJumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm_NumberLabelsJP5, JP6, JP7
2Jumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mm_NumberLabelsJP3, JP4
2PinSocket_1x19_P2.54mm_VerticalConnector_PinSocket_2.54mm:PinSocket_1x19_P2.54mm_Vertical1, 20
2SolderJumper-3_P1.3mm_Open_Pad1.0x1.5mmJumper:SolderJumper-3_P1.3mm_Open_Pad1.0x1.5mmJP1, JP2
2VAL**Library:My MouseBitemouse-bite-3mm-slot, mouse-bite-3mm-slot
1JST_PH_B5B-PH-K_1x05_P2.00mm_VerticalConnector_JST:JST_PH_B5B-PH-K_1x05_P2.00mm_VerticalJ14
1JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ14
1LOGOLOGOqr.mbm.rocks/EZTP
1MBM LogoLibrary:MBM LogoMBM|004
1PinHeader_1x05_P2.54mm_VerticalConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ15
1PinHeader_1x08_P2.54mm_VerticalConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ16

The 97 most common of 112 parts.

Similar boards

  • 2 layers98 × 71 mmMozc dial, the printed circuit board in 3D

    Mozc dial

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    112 parts3kApache-2.0
  • 2 layers100 × 100 mmEthernet bob base, the printed circuit board in 3D

    Ethernet bob base

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    112 parts990GPL-3.0
  • 2 layers237.5 × 102.9 mmInstruction, the printed circuit board in 3D

    Instruction

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    112 parts301Unlicense
  • 2 layers224.6 × 73.2 mmKeyboard ch552-48-lpr, the printed circuit board in 3D

    Keyboard ch552-48-lpr

    rgoulter/keyboard-labs

    Repo with my PCB designs and keyboard firmware

    112 parts236
  • 2 layers277.2 × 107.5 mmCorne V4 Pro Micro Edition, the printed circuit board in 3D

    Corne V4 Pro Micro Edition

    klouderone/CorneV4ProMicroEdition

    The Corne V4 with Pro Micro Micocontrollers, made specifically for beginners and support for wireless microcontrollers

    112 parts208CC-BY-4.0
  • 2 layers100 × 100 mmBPI AddOn, the printed circuit board in 3D

    BPI AddOn

    GBert/misc

    miscellaneous stuff / unsorted

    112 parts99
  • 2 layers100 × 100 mmYM2612 MIDI SMD, the printed circuit board in 3D

    YM2612 MIDI SMD

    superjoebob/genny

    YM2612/SN76489 Virtual Instrument

    112 parts96
  • 2 layers96 × 71.6 mmA2DVI.v1.6, the printed circuit board in 3D

    A2DVI.v1.6

    rallepalaveev/A2DVI

    This is based on Clintech Pico Board (CPB) with 48 GPIOs, most 5V tolerant.

    112 parts82MIT

Questions

How big is the Choose Your Own GPT PCB?

It measures 115.4 × 111.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Choose Your Own GPT use?

112 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 Choose Your Own GPT KiCad files?

From the jrutlen/Choose-Your-Own-GPT repository on GitHub, at the commit this page was made from: the board is PCB/Choose Your Own GPT.kicad_pcb and its schematic PCB/Choose Your Own GPT.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Choose Your Own GPT design in my own project?

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