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: MameHooker and Adruino  (Read 332 times)

0 Members and 1 Guest are viewing this topic.

garethmur

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:May 16, 2025, 05:03:42 am
  • I want to build my own arcade controls!
MameHooker and Adruino
« on: April 24, 2025, 07:44:59 am »
Hi All,

I have been stuck with not being able to get the Arduino to see any info from MameHooker.
Followed what instructions i could, but i don't know how to test if the MameHooker is actually sending its data across com3 to the Arduino.

Really new to all this, been playing around with Arduinos for a while, but just found out all the awesome potential when building a mame cabinet and using the outputs.

Im testing with galaga, which when it start i get the 12346=led0=1 or 0 / 12347=led1=1 or 0 but im not getting anything to the Arduino that I can see.

My galaga.ini file looks like this, not sure if its correct?
[General]
MameStart=
MameStop=
StateChange=
OnRotate=
OnPause=
[KeyStates]
RefreshTime=
[Output]
led0=cmo 3 baud=9600_parity=N_data=8_stop=1,cmw 3 %s%,cmc 3
led1=cmo 3 baud=9600_parity=N_data=8_stop=1,cmw 3 %s%,cmc 3

my mamehooke.ini looks like the following:
[General]
AlertOnNewOutput=1
SpeakNewOutput=0
AddNewOutputsToDefaultINI=0
SpeakNewOutput=1
MAMEPath=C:\mame0725\
MAMEExe=mame.exe

[KeyStates]
KeyHookAlwaysActive=1


[OtherEmus]
TitleBarHook=0

[Settings]
EnableSpeech=0
SerialPort1=COM3
SerialPort1_Baud=9600
SerialPort1_DataBits=8
SerialPort1_Parity=N
SerialPort1_StopBits=1
SerialPort1_Handshake=0

I'm using windows 11 and mame0.275 mamehooker5.1

any advice would be greatly appreciated... i just need to get 1 working and I should be good to go for the rest...
anything else to check or a way to troubleshoot weather the com port is receiving data, i duno anything really...

« Last Edit: April 24, 2025, 06:21:17 pm by garethmur »

garethmur

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:May 16, 2025, 05:03:42 am
  • I want to build my own arcade controls!
Re: MameHooker and Adruino
« Reply #1 on: April 24, 2025, 06:38:58 pm »
Well ---steaming pile of meadow muffin---!
When you dumb... you dumb...
I was pleasantly surprised when I woke up this morning and gave it 1 more test...
WORKING!

Then I realized that I had the Arduino IDE open which was locking the COM3 port  :banghead:


More questions and advice requests to come.... :cheers: