2

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

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

1 Answer 1

2

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.

answered Jul 13, 2020 at 5:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.