Skip to the content
2 layers73.5 × 90.3 mmTi99-kb adapter, the printed circuit board in 3D

ESP32-S3 USB/BLE keyboard adapter for the TI-99/4A home computer

Size
73.5 × 90.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
59
Nets
58
Pads
201
Tracks, vias
284, 17
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
6 Apr 2026
Updated
1 Sep 2026

Overview

Ti99-kb adapter is an open-source printed circuit board by JonVogel, from the JonVogel/ti-99-keyboard repository on GitHub, published under the MIT licence. It is a 2-layer board of 73.5 × 90.3 mm with 59 parts on 58 nets, routed with 284 tracks and 17 vias.

It is built around the BSS138. Its parts include 32 resistors, 16 transistors, 6 connectors and 1 IC. It belongs with the interfaces and adapters and keyboards and input boards and the ESP32 boards of this library.

Main components

1

README

README.md

TI-99/4A Modern Keyboard Adapter

An ESP32-S3 based adapter that lets you use a modern Bluetooth (or USB) keyboard with a Texas Instruments TI-99/4A home computer.

The adapter installs inside the TI in place of the original keyboard connector and emulates the original 6×8 key matrix, translating HID reports from a BLE/USB keyboard into key presses the console's keyboard scan sees as if they came from the original keyboard. The original keyboard can optionally run in parallel.

Features

  • Bluetooth LE keyboard input using the NimBLE-Arduino stack
    • Auto-pairing / "Just Works" bonding on first use
    • Auto-reconnect by saved address after sleep or power cycle
    • F12 on the keyboard enters pairing mode for a new keyboard
  • Status LED (onboard WS2812) shows connection state
  • Full punctuation and symbol mapping, including the FCTN-generated characters (? _ [ ] { } ' " \ | ~ ` : < >)
  • System keys that work on real hardware: QUIT (Alt+=) and CLEAR / BREAK (Alt+4) to stop a running program
  • Software Alpha Lock that fixes the original joystick-UP bug (see below)
  • Optional parallel original keyboard — both can drive the matrix at once
  • USB keyboard input via the native USB-OTG host port (using EspUsbHost), usable alongside or instead of BLE

Hardware — Bill of Materials

The adapter comes in two editions that are electrically identical and run the same firmware; they differ only in how the 16 level-shifter channels are built:

  • DIY edition (board rev ≤6): all through-hole, level shifting on four plug-in BOB-12009 modules — buildable with just a soldering iron.
  • Assembled edition (board rev 7+): the shifters are 48 SMT parts populated by JLCPCB during fabrication. Hand work remaining: the ESP32 (header pins on the module + two 1×22 sockets on the board, ~88 joints) and the connectors — real soldering, just none of the shifter fabric.

Common parts (both editions)

PartPurpose
Hosyond ESP32-S3 N16R8 dev board (USB-C, WROOM-1, 16MB flash, 8MB PSRAM) — sold in 3-packs on AmazonMCU with USB host and BLE
2× 1×22 female socket strips, 2.54mmSockets the ESP32 dev board (never solder the module directly)
2× 1×15 male pin headers, 2.54mm (snap from 1×40 breakaway strips — e.g. Adam Tech PH1-40-UA, DigiKey ~$0.48/strip)J10 (to the TI) and J20 (optional original keyboard)
1×2 + 1×1 male header pins (from the same breakaway strips)J9 bench power header, J15 spare-channel pad
TI PSU daisy-chain header — Molex KK-396 4-pin, 09-65-2048 (DigiKey WM18825-ND; alt 26-60-4040 / WM4622-ND)Passes the TI's power through the board; the TI mainboard's existing female plug mates here (J14)
PSU-side mating plug — Molex 09-50-3041 housing (DigiKey WM2102-ND) + 4× 08-50-0106 crimp terminals (DigiKey WM2300-ND) + ~30cm of 22 AWG stranded wireCable from the J13 solder pads to the TI power supply's header
15-pin female-to-female keyboard ribbon (DIY from bulk Dupont parts, ~$1.5–3.5/cable, no crimping — see note below; or ready-made aftermarket TI ribbon, ~$8)Connects the adapter's male header to the TI's male keyboard header

No voltage regulator is needed — the board runs on regulated +5V taken straight from the TI PSU via the power daisy-chain. Crimp tool for the KK terminals: IWISS SN-48B (~$20), or fold-and-solder the terminal barrels.

DIY edition — additional parts (board rev ≤6)

PartPurpose
PCB fabbed from pcb/gerbers/ti99-kb-adapter_r6.zip (2-layer, 1.6mm, HASL — ~$1/board at JLCPCB)The carrier board, all through-hole
4× BOB-12009 BSS138 level-shifter breakouts (SparkFun ~$3.50 ea, or AliExpress clones)The 16 shifter channels (4 per module)
8× 1×6 female socket strips, 2.54mm + male header pins on each BOBSockets the four BOB modules

Solder generously on the BOB headers — under-heated joints there were the single most common build fault. Test every finished board with test-matrix-loopback/ (onboard LED: green = good, red = bad).

Assembled edition — what to order (board rev 7+)

ItemDetails
JLCPCB order with PCB Assembly (Economic, Top side) using the three files in pcb/gerbers/: ti99-kb-adapter_r7.zip + ti99-kb-adapter_BOM.csv + ti99-kb-adapter_CPL.csvBoards arrive with all 48 shifter parts (16× BSS138 C78284, 32× 10kΩ C17414) machine-soldered — ~$3/board + shipping in qty 10

Then add the common parts above. Still hand-soldered: the ESP32 module's header pins, the two 1×22 board sockets, and all connectors (~120 joints) — what assembly removes is the shifter fabric and the DIY tier's BOB/socket work. Run test-matrix-loopback/ after the ESP32 goes in — LED green means the whole path (module, sockets, traces, every shifter channel) is proven in one shot.

The adapter is intended for permanent installation inside a TI-99/4A with the original keyboard removed (or run in parallel) and a 3D-printed cover over the keyboard opening.

Sourcing the keyboard ribbon (cheap DIY): the cable is a straight 15-way female-to-female run — both the adapter and the TI motherboard expose 1×15 male headers. Instead of a ready-made aftermarket TI ribbon (arcadeshopper, ~$8), build it from bulk commodity Dupont parts for ~$1.5–3.5/cable with no crimping and no shells to strip:

  • 15× female-to-female no-shell pre-crimped 2.54mm leads per cable — AliExpress (search: "Dupont 2.54mm female-to-female no-shell pre-crimped jumper wire 40P").
  • 2× 1×15 single-row Dupont female housings per cable — AliExpress (search: "Dupont 2.54mm 1x15P housing female single row").

Slide 15 bare pins into each housing — that's the whole assembly. A genuine Molex 1×15 housing (50-57-9315, DigiKey ~$1) also fits, but only accepts Molex crimp terminals — commodity Dupont pins won't lock in it, so stay all-Dupont. AliExpress links rot; the search terms are the durable fallback. Orientation gotcha is noted under the pinout below (red stripe = pin 15).

Note: an earlier revision used TXS0108E auto-direction level shifters. They do not work for a keyboard matrix — the auto-direction detector can't handle open-drain / resistive loads and channels latch or oscillate. The design uses BSS138 discrete MOSFET shifters, which are bidirectional by physics and handle open-drain cleanly. Do not substitute TXS0108E.

TI-99/4A Keyboard Connector Pinout

The TI's internal keyboard connector is a 1×15 single-row 0.1" header. The console drives six column lines low one at a time (via a 74LS156, pulled up with 1kΩ) and reads eight row lines back (into the TMS9901, pulled up with 10kΩ). The adapter reads the columns (inputs) and drives the rows (open-drain outputs).

GPIOs below are the v5 (straight-ribbon) mapping: the flat ribbon lands adapter connector (J10) pin p on TI pin 16−p, and the firmware pin map mirrors to match. (Rev-3 boards used a 180°-twisted ribbon and a different GPIO map — see the v3 git tag.)

TI pinSignalMatrixESP32 GPIODirection
1INT5row 213ESP32 → TI (drive)
2INT6row 312ESP32 → TI (drive)
3INT8row 511ESP32 → TI (drive)
4INT4row 110ESP32 → TI (drive)
5INT3row 09ESP32 → TI (drive)
6P5Alpha Lock3wired, never driven (software alpha lock)
7INT7row 78ESP32 → TI (drive)
81Y1col 018TI → ESP32 (read)
91Y0col 417TI → ESP32 (read)
10INT9row 616ESP32 → TI (drive)
11INT10row 415ESP32 → TI (drive)
122Y0col 57TI → ESP32 (read)
132Y1col 16TI → ESP32 (read)
142Y2col 25TI → ESP32 (read)
152Y3col 34TI → ESP32 (read)

A 16th level-shifter channel (GPIO14 → J15 "SPARE" solder pad) is wired as a repair path: if any matrix GPIO or shifter channel dies, jumper J15 to the dead line's pad and remap that line's #define to GPIO14 — no board respin needed.

Ribbon orientation gotcha: aftermarket TI keyboard ribbons mark pin 15 with the red stripe, not pin 1. Verify against the silkscreen before plugging in.

How the matrix output works

A hardware timer samples all six column inputs at ~200 kHz. Each column is debounced asymmetrically — it becomes active on the first LOW sample (so the row is driven before the ROM reads it) and only releases after two consecutive HIGH samples (so ribbon coupling can't glitch a held key). The rows driven are the OR of the pressed keys in every currently-active column, so an ordinary one-column scan drives exactly that column, while the console's deliberately-overlapping QUIT and CLEAR scans (which strobe two columns at once) are presented correctly. Rows are open-drain, so the original keyboard can coexist on the same lines.

The dedicated Alpha Lock line (TI pin 6) is intentionally never driven — see below.

Software Build

The BLE library BleHidHost/ lives in-tree and is picked up automatically; the only external dependency to install is NimBLE-Arduino.

Toolchain

Builds with arduino-cli via the included build.bat (Windows). FQBN:

text
esp32:esp32:esp32s3:PartitionScheme=no_ota,FlashSize=16M,PSRAM=opi
  • build.bat compile — compile only
  • build.bat — compile + upload (default COM port)
  • build.bat upload COM7 — upload to a specific port
  • build.bat monitor COM7 — serial monitor at 115200 baud

Arduino IDE alternative

  1. Install ESP32 board support (Boards Manager → "esp32 by Espressif")
  2. Install NimBLE-Arduino (Library Manager → search "NimBLE-Arduino")
  3. Point the sketchbook libraries at the in-tree BleHidHost/ folder (or copy it into ~/Documents/Arduino/libraries/)

Board settings

  • Board: ESP32S3 Dev Module
  • Flash Size: 16MB, PSRAM: OPI PSRAM, Partition Scheme: no_ota
  • USB CDC On Boot: Disabled (frees the USB-OTG port for host mode; use the UART port for the serial monitor)

Selecting input mode

At the top of ti-99-keyboard.ino:

cpp
// #define INPUT_USB   // USB keyboard via USB-OTG port (currently disabled)
#define INPUT_BLE      // Bluetooth LE HID keyboard

Usage

First-time BLE pairing

  1. Power on the ESP32 — the LED pulses purple (scanning)
  2. Put your keyboard in pairing mode
  3. The ESP32 finds the keyboard, pairs, bonds, and saves its address to NVS
  4. LED turns dim green when ready; it reconnects automatically on later boots

Re-pairing a different keyboard

Press F12 on the currently connected keyboard. It disconnects, the ESP32 opens a 30-second pairing window (LED pulses blue), and any HID keyboard put in pairing mode during that window is adopted as the new peer.

LED status

ColorMeaning
Pulsing blueStartup or pairing mode
Pulsing purpleScanning for keyboard
Steady dim greenKeyboard connected, idle
Bright green flashKey pressed
Red blinkError

Key Mapping

Modifiers pass straight through; the host Alt key acts as TI FCTN.

Modern keyTI-99/4A
AltFCTN
CtrlCTRL
ShiftSHIFT
Caps LockAlpha Lock (software-emulated; see below)

Punctuation and symbols (unshifted / shifted):

KeyUnshiftedShifted
--_ (FCTN+U)
==+
//? (FCTN+I)
;;:
,,<
..>
'' (FCTN+O)" (FCTN+P)
[[ (FCTN+R){ (FCTN+F)
]] (FCTN+T)} (FCTN+G)
\\ (FCTN+Z)| (FCTN+A)
`` (FCTN+C)~ (FCTN+W)

Editing / function keys:

Modern keyTI-99/4A
EscFCTN+9 (BACK)
BackspaceFCTN+S
TabFCTN+7
DeleteFCTN+1
ArrowsFCTN+E / S / D / X (up / left / right / down)
F1–F10FCTN+1…0 (DEL, INS, ERASE, CLEAR, BEGIN, PROC'D, AID, REDO, BACK, …)
F11Toggle type-ahead buffer on/off
F12Enter BLE pairing mode (not forwarded to the TI)

The F-key shortcuts let you press the standard TI FCTN+digit combos with a single key. Two system combos worth calling out, both verified on real hardware:

  • Alt+= → FCTN+= = QUIT (soft-resets to the master title screen)
  • Alt+4 (or F4) → FCTN+4 = CLEAR (breaks a running BASIC program)

Alpha Lock and joystick compatibility

The original TI-99/4A has a notorious hardware bug: the Alpha Lock key shares an electrical signal with joystick UP, so any game played with Alpha Lock engaged sees a permanent UP input. The classic fix was to physically pop the Alpha Lock key out of its socket before playing.

This adapter sidesteps the bug entirely by implementing Alpha Lock in software. When Caps Lock is on, the adapter injects SHIFT into letter keypresses (producing capital letters via the normal keyboard-scan path) and never drives the dedicated Alpha Lock line (TI pin 6). Joysticks therefore work correctly regardless of Caps Lock state, and numbers/punctuation are unaffected by Caps Lock — matching the original Alpha Lock semantics.

Status

  • BLE keyboard input: working; tested with the RoyalAxe / ProtoArc L75.
  • TI-99/4A matrix output: working on real hardware — typing, SHIFT/CTRL/FCTN, full punctuation, QUIT, and CLEAR/BREAK, with the original keyboard usable in parallel.
  • USB keyboard input: working — plug a USB keyboard into the ESP32's native USB-OTG port (EspUsbHost); runs alongside BLE.

License

MIT — see LICENSE.

Parts

59
QtyValueFootprintReferences
3210kResistor_SMD:R_0805_2012MetricR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +16
16BSS138Package_TO_SOT_SMD:SOT-23Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16
4MountingHole_2.2mm_M2MountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
1ESP32-S3-N16R8ti99-parts:ESP32-S3-N16R8U1
1PWR_5V_INConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ9
1PWR_TI_IN_CABLEti99-parts:J13-CableHeader-1x04J13
1PWR_TI_OUT_MBConnector_Molex:Molex_KK-396_5273-04A_1x04_P3.96mm_VerticalJ14
1SPARE_PADConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ15
1TI_KBDConnector_PinHeader_2.54mm:PinHeader_1x15_P2.54mm_VerticalJ10
1TI_KBD_PARALLELConnector_PinHeader_2.54mm:PinHeader_1x15_P2.54mm_VerticalJ20

Similar boards

  • 4 layers36 × 50.2 mmRacer, the printed circuit board in 3D

    Racer

    StuckAtPrototype/Racer

    These are structured into their own files. I could have used submodules, but decided against it.

    83 parts3.8kApache-2.0
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    Cube motherboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    52 parts1.1kGPL-3.0
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454
  • 2 layers21.6 × 52.3 mmPs2 pico hat, the printed circuit board in 3D

    Ps2 pico hat

    No0ne/ps2x2pico

    USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico

    17 parts399MIT
  • 2 layers45 × 45 mmAirCube, the printed circuit board in 3D

    AirCube

    StuckAtPrototype/AirCube

    Works standalone out of the box. Pairs with Home Assistant in minutes. Other platforms are supported through community-contributed extensions.

    61 parts379Apache-2.0
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the Ti99-kb adapter PCB?

It measures 73.5 × 90.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ti99-kb adapter use?

59 parts, built around the BSS138. 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 Ti99-kb adapter KiCad files?

From the JonVogel/ti-99-keyboard repository on GitHub, at the commit this page was made from: the board is pcb/ti99-kb-adapter.kicad_pcb and its schematic pcb/ti99-kb-adapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ti99-kb adapter 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).