Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: RPi Pico as a keyboard emulator.  (Read 3150 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5178
  • Last login:January 10, 2026, 01:53:23 pm
  • Wheres my coffee?
    • Skenny's Outpost
RPi Pico as a keyboard emulator.
« on: January 05, 2026, 06:05:49 pm »
As the title says.
I have tried this and it works, but it does have some limitations.
It is max 26 inputs.
It should be good with a two player cabinet, joystick, six action buttons, start, and coin for each player.
That leaves 2 more, which I configured on my setup as ESCAPE and PAUSE.
I tested it by plugging it into my game PC (via USB).
I hooked a jumper wire to a ground terminal on the Pico, then touch each input with the jumper wire.
All inputs registered as keyboard presses.
Whats so hot about this? Price tag! 5 bucks on amazon.
I plan to test it in game play with my next build, which may be a while.
You will need to install circuit python and adafruit_hid on the Pico.


DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5178
  • Last login:January 10, 2026, 01:53:23 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: RPi Pico as a keyboard emulator.
« Reply #1 on: January 05, 2026, 06:55:38 pm »
Thought Id add a very useful link to explain more.

https://learn.adafruit.com/diy-pico-mechanical-keyboard-with-fritzing-circuitpython/installing-circuitpython

Just follow the guide.
I didnt use MU, I used Thonny to write the code.
I also changed the code listed at the end with all the inputs to support a standard control panel.
Please let us know on here,  if you try this.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5178
  • Last login:January 10, 2026, 01:53:23 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: RPi Pico as a keyboard emulator.
« Reply #2 on: January 10, 2026, 01:44:33 pm »
I could solder all the wires to the pico that I need, but I decide to order this adapter to give me screw terminals to connect wires to.
I still had to solder the 20 pin hearers to the pico, to allow it to plug into the adapter.
Adapter was around 8 bucks on amazon.
Soldering wires from all the switches probably would have been just as easy than buying the adapter board, but I figure if this doesnt work for an arcade keyboard emulator, I can still use the pico for any other projects.
The screws in the terminal strip are very small, the order came with a tiny screwdriver.
So if you use this board, and you lose the included screwdriver, you will need a very small screwdriver, such as precision or eye glass screwdrivers.




Here is a link to the board on amazon. Im not trying to sell these and gain no profit from them, just trying to help.
If this is not allowed please remove it.

https://www.amazon.com/dp/B0FBGQHJSM?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1
« Last Edit: January 10, 2026, 01:48:07 pm by DaOld Man »