Hasu's Alternative Controller



One of the first things I wanted to do when I got my HHKB was to customize the layout. This was mostly because I use colemak and to change the layout I had to do this software side on my computer. This was annoying as it meant having multiple configurations for all of my layouts. I also ran into problems with my window manager not working properly. Another problem this caused was that I already had a programmable keyboard (my ergodox) that was programmed to use colemak. This meant the computer had to be set to qwerty so the scancodes were interpreted as colemak. Since all my keyboards aren’t programmable, this caused problems. So instead of taking the easy decision and just having everything qwerty apart from my X configuration, I chose to get as many programmable keyboards as possible.

Hasu provides a great solution to this problem. It really is the only solution, as no one else makes these. You could of course have different keybinds set on your computer but this is not portable or at all ideal. The Hasu’s controller is a simple replacement controller that allows you to non destructively change the keymap of your HHKB. This is good if in the future you want to sell the keyboard as stock or if you (understandably) don’t want to do any irreversible modification to your $235 keyboard. As you are just able to remove the controller and replace it with the original.

The way I see it only enhances your experience with the keyboard. And having a fully programmable keyboard is something I wish more came with.

At this time you are able to get two versions. One with bluetooth and one without. I choose to get the one without as I did not really need the bluetooth function. It is also limited by its battery life of around 12 hours. Although I may consider this in the future, it is not something I currently need.

How to Install

The installation process is very simple. As I stated earlier, you don’t damage the keyboard during the installation process.

You must first unscrew the back side of your case. There are three screws.

Then open the keyboard until you have access to the existing controller. You need to unscrew the controller before you can remove the cable.

Then unscrew your existing controller. This is only a single screw.

Then grasp the cable by its width so you are applying even pressure when you pull it out.

Then simply connect Hasu’s controller. Remember, do push it in evenly so you don’t bend any pins.

Reassembling the keyboard can be a little tricky as you have to screw the controller in before you put the top part on.

Then carefully put the top of the case on. It is easy to not engage the front of the case. So ensure that the latches are engaged.

The last step is to screw back up the case. You are almost done except you now have to program your keyboard.

Compiling Firmware

The controller can easily use Hasu’s own firmware ‘TMK’. Compiling the firmware is a little easier than compiling the firmware for the ErgoDox. First install dfu-programmer. This is what is going allow you to program the controller once you have built the firmware. You will also need git to clone the repository. Or you can just download it as a zip.

The first step is to clone the repository.

git clone https://github.com/tmk/tmk_keyboard.git

Then you need to change into the HHKB keyboard directory.

cd tmk_keyboad/keyboard/hhkb

The process from here is very simple. However, this is where you really want to customise your own layout and adapt it to your needs. But for the purposes of the tutorial, I will demonstrate building the stock HHKB layout with tmk.

sudo make Makefile KEYMAP=hhkb dfu

This builds the firmware for the default keymap. It sources the keymap from keymap_hhkb.c .

So when creating your own name, use it in the same pattern e.g. keymap_example.c .

Then if you want to build your keymap use:

sudo make Makefile KEYMAP=example dfu

Appending dfu to the end of the command instantly tries to program your controller. To be able to do this you must have pressed the reset button on your controller.

Refer to my introduction to the tmk firmware when you want to use some more interesting functions of the firmware. Or look at the official documentation here.

Overview

Hasu has provided some of the best firmware that is most commonly used with keyboard projects. But also provides the alternative controller for the HHKB. It is a great project that works extremely well. It is constantly going through revisions and improving. However, it is still a stable board that I have had no trouble with. I highly recommend purchasing one and improving your HHKB just a bit more. It makes a brilliant keyboard even better and really provides the only thing that the HHKB is missing. Thank you Hasu for making it.

You can purchase one of these controllers from this thread: https://geekhack.org/index.php?topic=56494.0

The usb controller is $48

The bluetooth is $79-89 depending on part availability