Skip to the content
2 layers72.4 × 48 mmHHKB Lite 2, the printed circuit board in 3D

Teensy 2 controller board replacement for HHKB Lite 2

Size
72.4 × 48 mm
Copper layers
2
Thickness
1.6 mm
Parts
3
Nets
24
Pads
53
Tracks, vias
73, 1
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
17 May 2020
Updated
11 Nov 2021

Overview

HHKB Lite 2 is an open-source printed circuit board by thirteen37, from the thirteen37/HHKB-Lite-2-Teensy repository on GitHub. It is a 2-layer board of 72.4 × 48 mm with 3 parts on 24 nets, routed with 73 tracks and 1 via.

It belongs with the keyboards and input boards and the AVR (ATmega, ATtiny) boards of this library.

README

README.md

Teensy 2.0 replacement controller board for HHKB Lite 2

This is a QMK-compatible replacement controller for the HHKB Lite 2, identified by model numbers PD-KB200W/U or PD-KB200B/U.

This Lite version of the HHKB is a membrane keyboard and not exactly popular compared to more expensive Professional versions that use Topre switches. But the wiring is simple and is a good first project for modding commercial keyboards.

This replacement uses a Teensy 2.0, which is cheap, has plenty of pins, and works well with the QMK firmware. The entire controller board is replaced, so you will lose the built-in USB hub. You will gain all the benefits of the powerful QMK and similar Teensy-supported firmware.

Steps

  1. Acquire/fabricate the PCB.
  2. Get the parts
  3. Disassemble the keyboard.
  4. Modify the USB cable you will be using and insert it into the Teensy.
  5. Solder the components on to the board. Take care to leave enough room for the USB cable when soldering the Teensy.
  6. Reconnect the flex cables and insulate the backplate.
  7. Flash your firmware and test your keyboard.
  8. Reassemble the shell.

PCB fabrication

The fabrication-ready files are in plots/. Just send them to your preferred fab. It is a pretty standard 1.6mm PCB with conservative via and track parameters that just about any shop can handle.

You can also order the PCBs through PCBway. With their new user discount, you would only have to pay shipping.

Parts

  • 1 Teensy 2.0
  • 1 Molex Easy-On 14-pin 1.25mm pitch FFC connector 39-53-2145
  • 1 Molex Easy-On 8-pin 1.25mm pitch FFC connector 39-53-2085
  • 1/10" pitch thru-hole headers for Teensy
  • (White?) Mini-USB cable for Teensy

The USB cable you get should have plastic plugs, because you will have to shave them down later.

Disassembly

The keyboard is held together by a few screws. Don't forget the screw hiding under the label. When the shell is open, there are also further one screw holding down the metal backplate and one screw each for the PCBa.

Screw locations

The USB cable can be removed from the shell but does not need to be detached from the PCB. We will be using another USB cable instead.

The flex cables can be eased out gently. There is no latching mechanism.

Modify the USB cable

The Mini-USB plug that goes to the Teensy needs to be shaved down to save about 1mm of thickness.

Shaved USB

Soldering the board

My recommended order is:

  1. Headers for Teensy on to the board
  2. Molex connectors
  3. Teensy

The Molex connectors are oriented in opposite directions, with pin 1 (the edge with a little notch) of each connector facing each other. This is important because the flex cables and connectors are single sided.

Note that the Teensy should be mounted upside down, on the same side as the connectors. This is to save a couple of millimeters of space from the stacked height of the connectors. You may have to trim down the header pins after you've soldered on the Teensy. The USB cable should still be able to fit.

Teensy upside down

Teensy clearance

Connect flex cables and insulate the backplate

Connect the flex cables to the PCB. Note the orientation.

The metal backplate should be insulated, at least around the area of the PCB, to minimize the risk of it shorting the board. I use a few strips of electrical insulation tape here.

Insulated backplate

Flash the firmware and test

Plug in the USB cable to your computer and flash the firmware. There's a copy of the firmware with the default layout at firmware/hhkblite2.hex.

Programming is done using Teensy Loader. Since the Teensy is mounted upside down and the reset button no longer exposed, you can short the RST and GND pins instead.

After a successful initial flash, you can use the reset key to enter flashing mode instead of having to open the keyboard. On my default configuration, the reset key is Fn + Esc.

After flashing, you should be able to type something. It's easiest to just put the silicone membrane over the traces and try typing something.

Reassembly

The PCB here only uses one of the original PCB mounting screws. Route the USB cable around the internal strain relief. Don't forget the screw for the backplate.

You're done!

PCB details

This is a KiCad project, but you can find the generated fabrication files in plots/. Just send them to your preferred PCB factory.

The schematics are fairly straightforward, with 8 row pins and 14 column pins:

Schematic

The PCB layout is likewise simple:

PCB

Firmware

The configuration in firmware/ can be uploaded to Keyboard Firmware Builder to generate firmware for the standard US QWERTY layout.

QWERTY keymap

There will be a warning "Not every key has a unique position in the wiring matrix". This can be ignored and it is due to both Fn keys being wired exactly the same. You should take note of this when designing your own layouts: it is not possible to assign different keycodes to each Fn key as they are electrically indistinguishable.

The wiring matrix is a bit of a mess, as is typical of membrane keyboards that do not have diodes to prevent ghosting: the matrix is designed to minimize ghosting from common key combinations but will never completely eliminate it.

Wiring matrix

The pin assignments are:

MatrixPin
Rows
0F5
1F4
2F1
3F0
4B0
5B1
6B2
7B3
Columns
0F6
1F7
2B6
3B5
4B4
5D7
6D6
7D4
8D5
9C7
10C6
11D3
12D2
13D1

Parts

3
QtyValueFootprintReferences
1ColumnsConnector_Molex_Easy-On:Molex_Easy-On_39-53-2144_14-ContactsJ_Col1
1RowsConnector_Molex_Easy-On:Molex_Easy-On_39-53-2084_8-ContactsJ_Row1
1Teensy2.0_(C)teensy:Teensy2.0U1

Similar boards

  • 2 layers40 × 30 mmBlinky, the printed circuit board in 3D

    Blinky

    earthtojake/text-to-cad

    Design physical products with AI

    3 parts26kMIT
  • 2 layers51.9 × 16 mmPassive2-rpi non standard adapter, the printed circuit board in 3D

    Passive2-rpi non standard adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    3 parts4.4kGPL-2.0
  • 2 layers16.3 × 16.3 mmSensor, the printed circuit board in 3D

    Sensor

    scottbez1/splitflap

    DIY split-flap display

    3 parts4.2k
  • 2 layersSub, the printed circuit board in 3D

    Sub

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    3 parts4kMIT
  • 2 layers85 × 30 mmDual stomp, the printed circuit board in 3D

    Dual stomp

    torvalds/GuitarPedal

    Linus learns analog circuits

    3 parts2.5kGPL-2.0
  • 2 layers124.5 × 33.7 mm172319-1 connector, the printed circuit board in 3D

    172319-1 connector

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    3 parts1.2k
  • 2 layers10.5 × 83 mmProgrammingAdapter, the printed circuit board in 3D

    ProgrammingAdapter

    stuartpittaway/diyBMSv4

    Version 4 of the diyBMS

    3 parts1.1k
  • 2 layers21.2 × 51.3 mmPico reset, the printed circuit board in 3D

    Pico reset

    hackclub/sprig

    🍃 Learn to code by making games in a JavaScript web-based game editor.

    3 parts1.1kMIT

Questions

How big is the HHKB Lite 2 PCB?

It measures 72.4 × 48 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HHKB Lite 2 use?

3 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 HHKB Lite 2 KiCad files?

From the thirteen37/HHKB-Lite-2-Teensy repository on GitHub, at the commit this page was made from: the board is HHKB Lite 2.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the HHKB Lite 2 design in my own project?

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