Skip to content

nRF52840 firmware for converting any USB Keyboard to a BLE HID Keyboard Device

Notifications You must be signed in to change notification settings

ItsEcholot/KeyBLEoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyBLEoard

nRF52840 firmware for converting any USB Keyboard to a BLE HID Keyboard Device.

Features

  • Caps lock LED as BLE connection status indicator
  • Report current battery level through the BLE battery service
  • Save up to 10 devices for quick switching ~3s (can this be improved upon?)
  • (Currently hardcoded) Built-in shortcuts which make using the 60% keyboard, which I built this for, easier

Hardware

Besides a USB HID compatible keyboard, the following hardware was used in this project:

The MCU was selected for its extremly small footprint and the built-in charging and battery protection controller for single-cell LiPos.

Hardware installed the e-yooso z11 mechanical keyboard

Software

This project uses the the PlatformIO IDE Extension for VSCode which manages all the dependencies.

The nRF52 Arduino Runtime developed by Adafruit was chosen as the basis because the Library for the MAX3421E USB Host Controller was only available and tested as an Arduino Library and I didn't want to invest time porting it to a pure C library (yet?).

To get some kind of task scheduling the TaskScheduler library was used for cooperative multitasking. This decision turned out just okay so far, as time sensitive tasks are obviously not guaranteed to be run when they're planned to.

In the long term the best solution would be to move to Zephyr or FreeRTOS. This would also be a good opportunity to clean the code up a bit...

About

nRF52840 firmware for converting any USB Keyboard to a BLE HID Keyboard Device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages