Menu

I built a Bluetooth LE keyboard/mouse hub on an ESP32-S3: one keyboard and mouse, three computers, switch with a key combo (open source)

#esp32#redditesp32#board#keyboard#computer
Reading 0:00
15s threshold

My desk has two Macs and a Windows PC. Blue Baton is firmware for an ESP32-S3 board that pairs with a BLE keyboard and mouse and shows up on each computer as a BLE keyboard + mouse. It keeps all five connections up at once (2 in, 3 out) and only changes where the input goes, so switching with Alt+1/2/3 (Option on a Mac) is instant and the keyboard and mouse move together.

Hardware

There is no schematic: it is a stock ESP32-S3 board plugged into one of the computers by its own USB port, with nothing wired to it. Tested on an ESP32-S3 SuperMini, an M5Stack AtomS3 Lite and a Seeed XIAO ESP32S3 Sense. The XIAO needs its external antenna: without it a keyboard came in at -99 dBm (-59 dBm on the AtomS3 Lite) and would not connect.

How the ESP32-S3 is used

ESP-IDF + NimBLE as central (keyboard, mouse) and peripheral (three computers) at the same time.

Connection intervals: input devices are asked for 8.75 ms.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.