Skip to the content
4 layers49.2 × 26.3 mmTvplug2, the printed circuit board in 3D

The detailed description of the build is described in this blog post:

Size
49.2 × 26.3 mm
Copper layers
4
Thickness
0.8 mm
Parts
92
Nets
95
Pads
322
Tracks, vias
878, 207
Pours
38
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
8 Oct 2026
Updated
8 Oct 2026

Overview

Tvplug2 is an open-source printed circuit board by pstiasny, from the pstiasny/tv-doom repository on GitHub, published under the GPL-2.0 licence. It is a 4-layer board of 49.2 × 26.3 mm with 92 parts on 95 nets, routed with 878 tracks and 207 vias.

It is built around the ESP32-S3, RT6150B-33GQW and W25Q128JVEIQ, with the USBLC6-2P6, DMP2045U and 1N5819WS among its other parts. Its parts include 38 resistors, 25 capacitors, 9 connectors, 5 ICs and 4 transistors. It belongs with the ESP32 boards of this library.

Main components

9

README

README.md

tv-doom

This repo contains two components:

  • The ESP32-S3-based board sandwich that fits around a battery in a 9.5mm antenna plug.
  • A port of Doom for that hardware, including a PAL video and audio signal synthesizer.

The detailed description of the build is described in this blog post:

https://raytriangle.com/making-the-worlds-smallest-game-console/

Note that parts of the hardware engineering and almost all of coding in this project were done in collaboration with Claude.

Layout

PathWhat
main/Game app: engine task, sound subcarrier, clock output, OTA hand-over, crash log, test cards
components/video/PAL composite encoder on the RGB-LCD DMA engine, plus the compiled-in RF calibration curve
components/gamepad/Xbox controller HID-over-GATT client on NimBLE, and a BLE log console
components/power/, components/settings/Supply/temperature monitoring and NVS-backed settings
components/doomgeneric/The Doom engine, vendored. See its README for provenance and local changes
ota_loader/Second ESP-IDF project: WiFi + HTTP updater for the factory slot
tools/Host-side scripts: WAD flashing, OTA image server, BLE log console, perf stats
hardware/tvplug board, KiCad 10 schematic and layout

Building

Toolchain: ESP-IDF v6.1-dev (tested at git fa47e101d53). The NimBLE settings in sdkconfig.defaults work around behaviour specific to that revision, so an older or newer IDF may need adjusting. Both projects target the ESP32-S3R8 with 16 MB flash and octal PSRAM.

sh
. $IDF_PATH/export.sh
idf.py build                       # game -> build/tv-doom.bin
(cd ota_loader && idf.py build)    # loader -> ota_loader/build/ota-loader.bin

Host tools need Python 3 with pip install -r tools/requirements.txt, run inside the exported IDF environment so that esptool is on the path.

Flashing

An IWAD is required and is not included. Put doom.wad (or the freely redistributable shareware doom1.wad) in wads/. doom2.wad does not fit the 13.4 MB WAD partition next to the two OTA slots.

The first flash goes over USB and writes everything at once: bootloader, partition table, OTA data, loader, game and WAD.

sh
tools/flash_ota_migration.sh /dev/cu.usbmodemXXX wads/doom.wad

After that, updates can go over WiFi. Press the home (big X) button on the controller to reboot into the loader, join a network with the on-screen keyboard, and pick an image from the server started with tools/ota.py on the build machine. The loader currently has the server address compiled in at the top of ota_loader/main/ota_menu.c; change it to your own.

A game image that crashes before marking itself healthy rolls back to the loader, and four crash-class resets in a row do the same, so a bad build can always be replaced without opening the enclosure.

Hardware

hardware/ holds the KiCad 10 project for the tvplug2 board. Proprietary footprints and 3D models are not included.

The physical layout was designed specifically to fit within a "Goobay 11502" 9.5 TV antenna plug and a 601520 150mAh LiPo battery.

The mixer calibration curve in components/video/rfcal_default.h was measured on a real board with a TinySA and a Pluto+ SDR and might need to be retuned.

Browse in KiCanvas.

License

The firmware is licensed under the GNU General Public License, version 2 or later (see LICENSE), which is the license of the Doom engine it links against. The hardware design in hardware/ is released under CC BY 4.0 (see hardware/LICENSE).

Third-party code:

  • components/doomgeneric/ is Doom, copyright id Software, via Chocolate Doom, doomgeneric and the lilka project's embedded fork. GPL-2.0-or-later.
  • components/gamepad/esp_hid_gap.c is from the ESP-IDF examples, copyright Espressif Systems, Unlicense or CC0-1.0.

Parts

92
QtyValueFootprintReferences
102kResistor_SMD:R_0402_1005MetricR19, R20, R21, R22, R23, R24, R25, R26, R27, R38
7100nCapacitor_SMD:C_0402_1005MetricC5, C6, C11, C13, C14, C24, C28
71kResistor_SMD:R_0402_1005MetricR28, R29, R30, R31, R32, R33, R34
51uCapacitor_SMD:C_0402_1005MetricC7, C9, C12, C25, C27
4100kResistor_SMD:R_0402_1005MetricR14, R17, R18, R35
35.1kResistor_SMD:R_0402_1005MetricR15, R16, R39
21.2kResistor_SMD:R_0402_1005MetricR7, R8
210uCapacitor_SMD:C_0402_1005MetricC8, C26
21nCapacitor_SMD:C_0402_1005MetricC22, C23
2470kResistor_SMD:R_0402_1005MetricR36, R37
247uCapacitor_SMD:C_0805_2012MetricC18, C19
2B2BLibrary:B2B_flex_oppositeJ3, J9
2B2BLibrary:B2B_flexJ1, J6
2CCapacitor_SMD:C_0402_1005MetricC1, C2
2DMP2045UPackage_TO_SOT_SMD:SOT-23Q4, Q5
2Harwin S7121-42R spring fingerS7121-42R:S712142RJ4, J5
11.8kResistor_SMD:R_0402_1005MetricR12
1100pCapacitor_SMD:C_0402_1005MetricC4
110kResistor_SMD:R_0402_1005MetricR13
110nCapacitor_SMD:C_0402_1005MetricC10
1130Resistor_SMD:R_0402_1005MetricR5
11N5819WSDiode_SMD:D_SOD-323D3
122Resistor_SMD:R_0402_1005MetricR10
1220nInductor_SMD:L_0402_1005MetricL1
1240pCapacitor_SMD:C_0402_1005MetricC21
1270Resistor_SMD:R_0402_1005MetricR1
12nInductor_SMD:L_0402_1005MetricL2
12u2SPM3015T-3R3M-LR:SPM3010-3020L3
13.3uInductor_SMD:L_0402_1005MetricL4
1300Resistor_SMD:R_0402_1005MetricR3
1390Resistor_SMD:R_0402_1005MetricR9
14.7kResistor_SMD:R_0402_1005MetricR2
140MHz 10ppmCrystal:Crystal_SMD_2016-4Pin_2.0x1.6mmY1
1470Resistor_SMD:R_0402_1005MetricR6
1470pCapacitor_SMD:C_0402_1005MetricC20
147pCapacitor_SMD:C_0402_1005MetricC3
1680Resistor_SMD:R_0402_1005MetricR4
1AntennaTestPoint:TestPoint_Pad_1.0x1.0mmAE1
1BFR92Package_TO_SOT_SMD:SOT-323_SC-70Q1
1BOOT0TestPoint:TestPoint_Pad_D1.0mmTP1
1Battery NegativeConnector_Wire:SolderWirePad_1x01_SMD_1.5x3mmJ8
1Battery PositiveConnector_Wire:SolderWirePad_1x01_SMD_1.5x3mmJ7
1CX90M-16PLibrary:USB_C_Receptacle_Hirose_CX90M-16P_MidMountJ2
1Center ConductorMountingHole:MountingHole_3.2mm_M3_Pad_ViaH1
1ESD9B3.3ST5GDiode_SMD:D_SOD-923D1
1ESP32-S3Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP4x4mmU1
1LEDLED_SMD:LED_0603_1608MetricD2
1MCP73831-2-OTPackage_TO_SOT_SMD:SOT-23-5U2
1MMBT3906Package_TO_SOT_SMD:SOT-23Q2
1RT6150B-33GQWRT6150B-33GQW:SON50P250X250X80-11N-DIC1
1USBLC6-2P6Package_TO_SOT_SMD:SOT-666U4
1W25Q128JVEPackage_SON:WSON-8-1EP_8x6mm_P1.27mm_EP3.4x4.3mmU3

Similar boards

  • 2 layers44.4 × 14.2 mmBridge v1, the printed circuit board in 3D

    Bridge v1

    chrisg20/CarThingBridge

    A compact connector board for the Spotify Car Thing and Raspberry Pi Zero.

    9 parts30CC0-1.0
  • 6 layers45 × 75 mmLeafony stm32n6, the printed circuit board in 3D

    Leafony stm32n6

    leafony/ap05-stm32n6

    Leafony AP05 STM32N6リーフ

    207 parts
  • 4 layers60 × 60 mmESP32 Robo Dev Board, the printed circuit board in 3D

    ESP32 Robo Dev Board

    Amoskeag/RoboDojo

    Super Cool Small Form Factor Robotics

    72 parts6BSD-2-Clause
  • 4 layers55.3 × 42.3 mmSkyfall(BackAgain), the printed circuit board in 3D

    Skyfall(BackAgain)

    Melih2123/Project_Skyfall

    Open-source. Modular. Built to grow. Powered by ESP32-S3 and lots of prayers ;_;

    72 parts2
  • 2 layers33.3 × 36.5 mmMic, the printed circuit board in 3D

    Mic

    joshitha-c/microphone

    A compact USB digital microphone development board built around the Raspberry Pi RP2040 microcontroller and the STMicroelectronics MP34DT05TR-A digital MEMS microphone.

    28 parts
  • 2 layers151 × 150.7 mmMatrix, the printed circuit board in 3D

    Matrix

    Broccoliux/WOW-MATRIX

    8x8x8 LED 3D Matrix

    173 parts1
  • 6 layers41.8 × 42 mmWatch pcb, the printed circuit board in 3D

    Watch pcb

    dezash123/watch-pcb

    ECAD for my custom smartwatch

    179 parts1

Questions

How big is the Tvplug2 PCB?

It measures 49.2 × 26.3 mm and has 4 copper layers, 0.8 mm thick.

What parts does the Tvplug2 use?

92 parts, built around the ESP32-S3, RT6150B-33GQW, W25Q128JVEIQ and USBLC6-2P6. 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 Tvplug2 KiCad files?

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

Can I use the Tvplug2 design in my own project?

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