Being a completely noob with Arduino (but not with coding though) I'm trying to create a simple buttonbox with a Micro unit.

For now, I can not figure out what should I do to make my Windows 10 recognize the Arduino as a HID device (joystick actually). What did I miss?

  • 1
    How should we be able to tell you, what you missed? You didn't give us any information at all. Provide the code, that you use. Also: Have you tried the examples from the Arduino IDE? For me they worked pretty well – chrisl Aug 28 '19 at 10:08
  • @chrisl, Sorry, I thought it lays beyond arduino coding. I use a pretty simple matrix solution with Keyboard.h library. It works ok: all buttons are being recognized correctly (I use println for debug). Next thing I need is to make Win see the arduino as game controller. But no new devices are found in device list, no any devices available to add and so on. Should I make some extra steps to achieve that? As I know Micro board has a sort of HID controller in it's chip (sorry for missnaming if any) so it should be recognized in Windows by default. Should I use some extra library or something? – Andriy Aug 28 '19 at 10:35
  • I don't quite understand, what you are trying to achieve. With the Keyboard library, the Micro will behave like a keyboard, which is by definition a HID device. I don't understand, where you mean it should appear in Windows and why? Gamecontrollers and keyboards are both HID devices, but they are not the same – chrisl Aug 28 '19 at 10:40
  • this box should be a gamecontroller at the end. I sow a bunch of guides about how to make it and there no any steps described how to make Windows work with arduino as a game controller. So I have a gamepad now, what should I do to make Windows work with it when connected in USB? – Andriy Aug 28 '19 at 10:45
  • As I wrote, Windows already works with it, treating it like a keyboard (as you told the Micro to behave like one). Generally Windows doesn't do much here. I guess you want, that it identifies itself as game controller. Then you cannot use the Keyboard library. Have you tried the Joystick library? – chrisl Aug 28 '19 at 10:52

Joystick (github.com/MHeironimus/ArduinoJoystickLibrary) lib did the job. @chrisl, thx for the patience.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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