Like many programmers, [Daniel Nugent] loves his old mechanical keyboard (a WASD Code Keyboard). What he didn’t love was the cord. Sure, you can get a modern wireless keyboard, but it won’t be the same as the keyboard you’ve spent so much time with. Armed with a Bluetooth Low Energy (BLE) module, a rechargeable battery and some coding, he kept his keyboard but got rid of the wires.
Although he has some specific handling for the WASD, the code would very likely handle any PS/2 keyboard. The PS/2 interface is a simple synchronous serial port with a single clock and single data line. Handling it with a microcontroller isn’t very difficult.
You might like a refresher on how the PS/2 communicates. Or, perhaps you’d rather just build the whole keyboard. We’ve even seen people who really went old school on mechanical keyboards. For us, though, a hack like this on an IBM model M would be good enough.
If you want an overview of Bluetooth vs BLE, checkout this post and see the video below.