

Tvplug2
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
9ESP32-S3
QFN-56-EP(7x7)-40℃~+105℃ -98.4dBm 150Mbps 2.412GHz~2.484GHz 2.4GHz 21dBm 340mA 3V~3.6V 88mA SPI、USB、UART、ADC、I2C、I2S、PWM WiFi transceiver QFN-56-EP(7x7) RF Transceiver ICs ROHSEspressif SystemsRF Transceiver ICsRT6150B-33GQW
WDFN-10(2.5x2.5)-40℃~+125℃@(TJ) 1 1.8V~5.5V 3.3V 60uA 800kHz~1.2MHz 800mA Buck-Boost Buck-Boost Built-in Fixed Yes WDFN-10(2.5x2.5) DC-DC Converters ROHSRichtek TechDC-DC ConvertersW25Q128JVEIQ
WSON-8-EP(6x8)-40℃~+85℃ 100,000 cycles 10uA 128Mbit 133MHz 2.7V~3.6V 20 Years Power-on reset、Hardware write protection、Software write protection、Write enable latch、Absolute write protection、Power lock protection SPI WSON-8-EP(6x8) NOR FLASH ROHSWinbondNAND FLASHUSBLC6-2P6
SOT-666-6-40℃~+125℃ 150nA 17V 2 3.5pF 5.25V 5A@8/20us 6V ESD IEC 61000-4-2 Unidirectional SOT-666-6 ESD and Surge Protection (TVS/ESD) ROHSSTMicroelectronicsESD And Surge Protection (TVS/ESD)DMP2045U
SOT-23-55℃~+150℃ 1 P-Channel 1.7W 190pF 1V 20V 4.1A 7.8nC@4.5V 740pF 75mΩ@2.5V P-Channel SOT-23 MOSFETs ROHSTECH PUBLICMOSFETs1N5819WS
SOD-3231 Independent 1A 25A 40V 500uA@40V 600mV@1A SOD-323 Schottky Diodes ROHSGuangdong HottechSchottky DiodesCX90M-16P
SMD-30℃~+85℃ 1 16P 20V 250mA、1.25A Black Female Laminated board Type-C USB 2.0 SMD USB Connectors ROHSHirose ElectricUSB ConnectorsESD9B3.3ST5G
SOD-923(0402)ESD And Surge Protection (TVS/ESD)TECH PUBLICMMBT3906
SOT-23-55℃~+150℃ 1 PNP 100 100nA 200mA 200mW 300MHz 300mV 40V 5V PNP SOT-23 Bipolar (BJT) ROHSTWGMCBipolar (BJT)
README
README.mdtv-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
| Path | What |
|---|---|
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.
. $IDF_PATH/export.sh
idf.py build # game -> build/tv-doom.bin
(cd ota_loader && idf.py build) # loader -> ota_loader/build/ota-loader.binHost 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.
tools/flash_ota_migration.sh /dev/cu.usbmodemXXX wads/doom.wadAfter 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.cis from the ESP-IDF examples, copyright Espressif Systems, Unlicense or CC0-1.0.
Parts
92| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | 2k | Resistor_SMD:R_0402_1005Metric | R19, R20, R21, R22, R23, R24, R25, R26, R27, R38 |
| 7 | 100n | Capacitor_SMD:C_0402_1005Metric | C5, C6, C11, C13, C14, C24, C28 |
| 7 | 1k | Resistor_SMD:R_0402_1005Metric | R28, R29, R30, R31, R32, R33, R34 |
| 5 | 1u | Capacitor_SMD:C_0402_1005Metric | C7, C9, C12, C25, C27 |
| 4 | 100k | Resistor_SMD:R_0402_1005Metric | R14, R17, R18, R35 |
| 3 | 5.1k | Resistor_SMD:R_0402_1005Metric | R15, R16, R39 |
| 2 | 1.2k | Resistor_SMD:R_0402_1005Metric | R7, R8 |
| 2 | 10u | Capacitor_SMD:C_0402_1005Metric | C8, C26 |
| 2 | 1n | Capacitor_SMD:C_0402_1005Metric | C22, C23 |
| 2 | 470k | Resistor_SMD:R_0402_1005Metric | R36, R37 |
| 2 | 47u | Capacitor_SMD:C_0805_2012Metric | C18, C19 |
| 2 | B2B | Library:B2B_flex_opposite | J3, J9 |
| 2 | B2B | Library:B2B_flex | J1, J6 |
| 2 | C | Capacitor_SMD:C_0402_1005Metric | C1, C2 |
| 2 | DMP2045U | Package_TO_SOT_SMD:SOT-23 | Q4, Q5 |
| 2 | Harwin S7121-42R spring finger | S7121-42R:S712142R | J4, J5 |
| 1 | 1.8k | Resistor_SMD:R_0402_1005Metric | R12 |
| 1 | 100p | Capacitor_SMD:C_0402_1005Metric | C4 |
| 1 | 10k | Resistor_SMD:R_0402_1005Metric | R13 |
| 1 | 10n | Capacitor_SMD:C_0402_1005Metric | C10 |
| 1 | 130 | Resistor_SMD:R_0402_1005Metric | R5 |
| 1 | 1N5819WS | Diode_SMD:D_SOD-323 | D3 |
| 1 | 22 | Resistor_SMD:R_0402_1005Metric | R10 |
| 1 | 220n | Inductor_SMD:L_0402_1005Metric | L1 |
| 1 | 240p | Capacitor_SMD:C_0402_1005Metric | C21 |
| 1 | 270 | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 2n | Inductor_SMD:L_0402_1005Metric | L2 |
| 1 | 2u2 | SPM3015T-3R3M-LR:SPM3010-3020 | L3 |
| 1 | 3.3u | Inductor_SMD:L_0402_1005Metric | L4 |
| 1 | 300 | Resistor_SMD:R_0402_1005Metric | R3 |
| 1 | 390 | Resistor_SMD:R_0402_1005Metric | R9 |
| 1 | 4.7k | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 40MHz 10ppm | Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mm | Y1 |
| 1 | 470 | Resistor_SMD:R_0402_1005Metric | R6 |
| 1 | 470p | Capacitor_SMD:C_0402_1005Metric | C20 |
| 1 | 47p | Capacitor_SMD:C_0402_1005Metric | C3 |
| 1 | 680 | Resistor_SMD:R_0402_1005Metric | R4 |
| 1 | Antenna | TestPoint:TestPoint_Pad_1.0x1.0mm | AE1 |
| 1 | BFR92 | Package_TO_SOT_SMD:SOT-323_SC-70 | Q1 |
| 1 | BOOT0 | TestPoint:TestPoint_Pad_D1.0mm | TP1 |
| 1 | Battery Negative | Connector_Wire:SolderWirePad_1x01_SMD_1.5x3mm | J8 |
| 1 | Battery Positive | Connector_Wire:SolderWirePad_1x01_SMD_1.5x3mm | J7 |
| 1 | CX90M-16P | Library:USB_C_Receptacle_Hirose_CX90M-16P_MidMount | J2 |
| 1 | Center Conductor | MountingHole:MountingHole_3.2mm_M3_Pad_Via | H1 |
| 1 | ESD9B3.3ST5G | Diode_SMD:D_SOD-923 | D1 |
| 1 | ESP32-S3 | Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP4x4mm | U1 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | MCP73831-2-OT | Package_TO_SOT_SMD:SOT-23-5 | U2 |
| 1 | MMBT3906 | Package_TO_SOT_SMD:SOT-23 | Q2 |
| 1 | RT6150B-33GQW | RT6150B-33GQW:SON50P250X250X80-11N-D | IC1 |
| 1 | USBLC6-2P6 | Package_TO_SOT_SMD:SOT-666 | U4 |
| 1 | W25Q128JVE | Package_SON:WSON-8-1EP_8x6mm_P1.27mm_EP3.4x4.3mm | U3 |
Similar boards
- 4 layers100 × 100 mm

- 2 layers44.4 × 14.2 mm

Bridge v1
chrisg20/CarThingBridge
A compact connector board for the Spotify Car Thing and Raspberry Pi Zero.
9 parts30CC0-1.0 - 6 layers45 × 75 mm

- 4 layers60 × 60 mm

- 4 layers55.3 × 42.3 mm

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 mm

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 mm

- 6 layers41.8 × 42 mm

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).