Open-source UHK 60 v2 -> Bluetooth adapter: 5 hosts, UHK Agent over BLE, touch screen

Hi all! I built a DIY USB → BLE adapter for the UHK 60 v2 on a LilyGo T-Display-S3 AMOLED Plus. The keyboard plugs into the board’s USB-C port, and the board acts as its USB host and as a Bluetooth keyboard + mouse for the computer.

What it does

  • 5 Bluetooth hosts. Each slot is its own BLE device. Switch hosts by tapping the slot on the screen.

  • UHK Agent over Bluetooth. Agent sees a UHK 60 v2 and reads/writes keymaps and macros without a cable. Config access has to be allowed on the adapter’s screen. Firmware updates still need the cable.

  • Everything the keyboard sends, unchanged. The HID layout is built from the keyboard’s own USB descriptors: NKRO, mouse keys with smooth scrolling, media/system keys, and fast macros arrive intact. This should also cover the trackball/cluster modules.

  • Secure pairing with a 6-digit passkey. Only the active slot’s host gets keystrokes.

  • OTA updates of the adapter with automatic rollback.

  • Extras: typing statistics, standby animations, a live audio spectrum, and a PC-load dashboard with meeting reminders.

Hardware: the board plus 5 V on VBUS. There’s an optional small power board (JLCPCB files and a 3D-printed shell are in the repo), or you can wire it by hand.

Feedback and questions welcome!

2 Likes

Soo… How do you ttach it to your uhk, and how have you solved power?

The Lilygo board should get +5V from any source, first solution was just usb-c soldered to breadboard and two resistors 5.1k on CC lines to ground, but later I desiged a PCB and ordered it from JLCPCB assembled, it is better as it has self-recovering fuse and capacitors. the project repository on github has PCB source code you can take it as is and just order the board

I’ve left 4 boards, if somebody is interested I can mail them for the very little price within Europe.

The board requires just soldering two 4 pin 2.54 male header

I meant more along the lines if you aim for a fully-wireless uhk60 with the adapter built-in, then where you are going to fit the adapter and batteries, etc..

But maybe you are aiming more for a standalone adapter, probably to use with multiple hosts, while keeping power over wire?

In any case, nice work!

:blush:

1 Like

actually I supply power from usb wall “brick”, but it can work from powerbank I guess. I will test how long it will survive on it haha. And yes the primary case is to be able to connect to multiple hosts, actually the Lilygo can support up to 15 bonds, but I pre-configure only to have five, you can adjust that in the firmware

3 Likes