How to get Arduino Uno WiFi Rev2 act as USB Keyboard HID?

I tried to use the keyboard.h library on my Arduino Uno WiFi Rev2 so that the board could act as a USB keyboard for PC. I got the following error message: "Error compiling for board Arduino Uno WiFi Rev2." I could not find clear guidelines on the net for how to do this.

Is it possible to get Arduino Uno WiFi Rev2 act as USB Keyboard HID with an existing library?

  • if so, can you please help me to find documentation on how to do it

it is not possible

You need to have a board that supports native USB (that is, USB in the main microcont5roller). I do not think that the list is complete but Mouse - Arduino Reference gives some boards that can act as a HID.

1 Like

We may easily connect the USB keyboard to Arduino boards like the Arduino UNO or Arduino Mini by using the PS2 Arduino library.

@lucy_oscar here the Arduino should be the keyboard

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.