Hi, I'm looking for someone who can help me with Arduino Uno R3, I have researched about Uno being able to control the keyboard by flashing the firmware of Uno with Keyboard.hex, but I can't seem to find the same with controlling the mouse. if I did would it work with the Mouse.h library using the IDE?
No, the keyboard and mouse HID interface won't work on Uno because the controller hasn't a native USB support.
You should use Arduino Pro micro or Leonardo instead of Uno
If you are willing to accept a bit of compromise, there is a driver, called "V-USB", which allows Arduino UNO to act as HID, via a secondary, software-implemented USB port.
Some sources claim this disrupts the Arduino's bootloader, but I have not found this to be the case.
There are several libraries floating around already that use V-USB to provide HID. You might want to look into UsbMouse.
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.