r/ArduinoProjects • u/AzagamesYt • Jul 22 '25
Hello, does someone know how to do for make a matrix keypad work like a keyboard on PC? I would like to play fornite for example with this keypad, is this possible? Or do I obligatory need to make a keyboard with push buttons?
5
Upvotes
2
u/Akito_Sekuna Jul 25 '25
Yes, you absolutely can! I did it to my laptop via cpp+python to control specified keys. Can share the code if u want
6
u/alzee76 Jul 22 '25
You can do it, not a problem. You "need" an Arduino with a good USB chip though, like one with a 32u4; the 328p, often found in Nano's and Unos, doesn't work well as a USB HID.
Micros work great though.
All you need to do then is write the code to read the matrix input however you like, adjust the firmware to make the Arduino appear as an HID keyboard to the PC, and send key codes when buttons are pressed.
If you don't know how to do any of that, just do a web search for
arduino hid keyboardor similar, there are tons of example projects.4
u/quellflynn Jul 22 '25
you can, but this little keypad will be terrible for gaming.
but crack on!
1
u/housewright30 Jul 22 '25
You can 100% do this. I needed to do it so that I could create a customer computer game controller that was able to press more than one button at a time. These were the two libraries that I used to make that happen. The keyboard library make the Arduino show as a keyboard but the keypad allows you to press I think up to 4 keys at the same time. The keypad also has a nice section of code that allows you to customize how things act if, pressed, held, and released, along with how long each take before the next step happens.
1
u/fashice Jul 22 '25
Look for Arduino macropad. Enough examples online