DIY your ESP32 BLE KEYBOARD with USB HOST SHIELD:
- Pair with as many Device as u want ... just look the code (but it cost 4-5 seconds to switch (unable to connect ESP32 with multy device))
- High power consumption (>90mah+your keyboard)
- forget ESP32 for ble keyboard and use a nRFxxx instead !!! due to high power consumption problem (maybe solve in the future)
- I use platformio so just download and open by visual code with platformio extension installed (if not visual code usually ask u to install it).
- not a schematic:
USB Host Mini v2 to ESP32
GPIO5 : SS
GPIO16 : RESET
GPIO17 : INT
GPIO18 : SCK
GPIO19 : MISO
GPIO23 : MOSI
note: from https://create.arduino.cc/projecthub/139994/plug-any-usb-device-on-an-esp8266-e0ca8a u have to cut the track inorder to use 5v USB devices
- Other pin is not important:
GPIO2: Statusled
GPIO0: connect it with some key on your keyboard so you can update ESP32 & wake it up from deep-sleep mode GPIO34: Baterry vol (with 30k & 100k resistor more info here) - u should add a swith or PNP transistor for turn Keyboard off (it cost >100 mah LOL)
- T-vK for ESP32-BLE-Keyboard arduino library
- felis for USB_Host_Shield_2.0 arduino library