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: Arduino + Mame Hooker  (Read 624 times)

0 Members and 1 Guest are viewing this topic.

payty

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 12, 2023, 02:43:41 pm
  • I want to build my own arcade controls!
Arduino + Mame Hooker
« on: January 21, 2023, 09:30:03 am »
HI,
I have adapted a Revolution X gun to be connected to USB using an Arduino Leonardo. So far it is working ok, I am simulating mouse movement with the gun,   but I want to connect the gun coil and led to MAME using Mame Hooker. directly through the same USB port.

So I am trying to send data to Generic HID  using this command line

ghd 4 &H2341 &H8036 2 &h01:&h02

The arduino does not seem to receive anything. Any ideas what I am doing wrong?

I have attached a picture of the vendor id and product id in device manager. This corresponds to  Arduino  which runs on COM4