The question below describes how to set up an Arduino as an HID (Human Input Device -- like a keyboard, mouse, etc.). How can I set up an Arduino as a wireless HID?

I'm flexible as to the wireless format. Bluetooth, USB receiver, or any other format is acceptable.

Arduino as USB HID

  • 1
    This has been done with ESP32. If you connect a bluetooth module to the Arduino, that might work as well. Jul 12, 2020 at 6:35
  • @ThomasWeller, this looks like what I need. If you make it into an answer I'll accept it. Jul 13, 2020 at 0:04

1 Answer 1


I'm not sure for Arduino, but it has been done with ESP32. If you have not yet spent the money into a Bluetooth module for Arduino, you'll find that the ESP32 is not expensive either.

You can find the code on Github. The author uses a TinyPico because it's pin compatible with one of his earlier projects. IMHO, any ESP32 should do as well.

The key thing is to

#include <BleKeyboard.h>

the ESP32 BLE Keyboard library that you need to download and install. That library comes with example code that should be easy to adapt to your needs.

You can program the ESP32 in Arduino IDE, but you need to add support for the boards by adding a URL to the board manager.

Have fun with the project. It sounds very interesting. Maybe I try that myself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.