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: MAME outputs on Raspberry Pi  (Read 6039 times)

0 Members and 1 Guest are viewing this topic.

2huwman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:August 17, 2023, 03:33:32 am
  • I want to build my own arcade controls!
MAME outputs on Raspberry Pi
« on: September 03, 2017, 02:53:23 am »
Just wondering if it's possible to capture MAME outputs on the Raspberry Pi, similarly to how MAMEHooker does that on Windows.

Outputs like the flashing lights on Chase HQ, or Outrun brake lights or shaker motor, etc. I've searched around but can't see anything. Thanks for any info!

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1746
  • Last login:March 30, 2024, 09:10:09 am
  • I want to build my own arcade controls!
Re: MAME outputs on Raspberry Pi
« Reply #1 on: September 04, 2017, 04:06:56 pm »
RGBCommander should do this.

Here is some info:

https://retropie.org.uk/forum/topic/2656/rgb-commander/2

ZoOl007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 161
  • Last login:August 02, 2020, 12:03:38 pm
    • RGBcommander
Re: MAME outputs on Raspberry Pi
« Reply #2 on: September 05, 2017, 02:52:00 am »
Hi,

the link above is obsolete (old version - crappy implementation).
RGBcommander's site contains relevant information in the MAME section with one exception.
-> http://forum.arcadecontrols.com/index.php/topic,151464.0.html -> read my post - not yet in place - eta unknown

regarding the outputs - I only support the flashing led outputs like blinking insert coin.
I don't know if any of the mame derivatives popular on the pi have a functional output system in place.
'real' mame has/had (depends on the version) it but the pi is too slow to run it.

so, the answer is it is supported to a certain degree if you follow a whole slew of prerequisites. (On the pi - it functions fine on an amd64 distro with real mame)
I don't see that change any time soon.

regards
« Last Edit: September 05, 2017, 02:55:40 am by ZoOl007 »

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5645
  • Last login:March 02, 2019, 07:35:34 pm
  • I glow in the dark.
Re: MAME outputs on Raspberry Pi
« Reply #3 on: September 05, 2017, 05:08:36 am »
Hi,

the link above is obsolete (old version - crappy implementation).
RGBcommander's site contains relevant information in the MAME section with one exception.
-> http://forum.arcadecontrols.com/index.php/topic,151464.0.html -> read my post - not yet in place - eta unknown

regarding the outputs - I only support the flashing led outputs like blinking insert coin.
I don't know if any of the mame derivatives popular on the pi have a functional output system in place.
'real' mame has/had (depends on the version) it but the pi is too slow to run it.

so, the answer is it is supported to a certain degree if you follow a whole slew of prerequisites. (On the pi - it functions fine on an amd64 distro with real mame)
I don't see that change any time soon.

regards

What else can RGB commander do other than with MAME?
If I had only one wish, it would be for three more wishes.

2huwman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:August 17, 2023, 03:33:32 am
  • I want to build my own arcade controls!
Re: MAME outputs on Raspberry Pi
« Reply #4 on: September 05, 2017, 06:13:36 am »
thanks very much for the info guys!

ZoOl007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 161
  • Last login:August 02, 2020, 12:03:38 pm
    • RGBcommander
Re: MAME outputs on Raspberry Pi
« Reply #5 on: September 05, 2017, 08:13:18 am »
What else can RGB commander do other than with MAME?

... it plays snooker pretty well  ;D

no, seriously -> have a look at the site if you feel like it

kind regards

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1746
  • Last login:March 30, 2024, 09:10:09 am
  • I want to build my own arcade controls!
Re: MAME outputs on Raspberry Pi
« Reply #6 on: September 05, 2017, 01:08:33 pm »
Hi,

the link above is obsolete (old version - crappy implementation).
RGBcommander's site contains relevant information in the MAME section with one exception.
-> http://forum.arcadecontrols.com/index.php/topic,151464.0.html -> read my post - not yet in place - eta unknown

regarding the outputs - I only support the flashing led outputs like blinking insert coin.
I don't know if any of the mame derivatives popular on the pi have a functional output system in place.
'real' mame has/had (depends on the version) it but the pi is too slow to run it.

so, the answer is it is supported to a certain degree if you follow a whole slew of prerequisites. (On the pi - it functions fine on an amd64 distro with real mame)
I don't see that change any time soon.

regards

Ok, saw it worked on linux and assumed the same for rpi.

advanced mame does mame outputs.
But it uses parallel ports.
any way to catch that and redirect to gpio on rpi?

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 01:08:27 pm
Re: MAME outputs on Raspberry Pi
« Reply #7 on: September 05, 2017, 02:13:35 pm »
Are you sure that advancemame supports outputs? It's based on mame 0.106 and outputs where not implemented yet...

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1746
  • Last login:March 30, 2024, 09:10:09 am
  • I want to build my own arcade controls!
Re: MAME outputs on Raspberry Pi
« Reply #8 on: September 05, 2017, 05:03:40 pm »
Are you sure that advancemame supports outputs? It's based on mame 0.106 and outputs where not implemented yet...

if i'm reading this right then it does.
There is a mention of a q-bert knocker event.
And calling a script for the event system.

http://www.advancemame.it/doc-script

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 01:08:27 pm
Re: MAME outputs on Raspberry Pi
« Reply #9 on: September 06, 2017, 12:43:31 am »
Looks like it can read leds and knocker states and take control over the keyboard leds.

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5645
  • Last login:March 02, 2019, 07:35:34 pm
  • I glow in the dark.
Re: MAME outputs on Raspberry Pi
« Reply #10 on: September 06, 2017, 05:39:22 am »
Hi,

the link above is obsolete (old version - crappy implementation).
RGBcommander's site contains relevant information in the MAME section with one exception.
-> http://forum.arcadecontrols.com/index.php/topic,151464.0.html -> read my post - not yet in place - eta unknown

regarding the outputs - I only support the flashing led outputs like blinking insert coin.
I don't know if any of the mame derivatives popular on the pi have a functional output system in place.
'real' mame has/had (depends on the version) it but the pi is too slow to run it.

so, the answer is it is supported to a certain degree if you follow a whole slew of prerequisites. (On the pi - it functions fine on an amd64 distro with real mame)
I don't see that change any time soon.

regards

What else can RGB commander do other than with MAME?

Is the source code available for download?
If I had only one wish, it would be for three more wishes.

ZoOl007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 161
  • Last login:August 02, 2020, 12:03:38 pm
    • RGBcommander
Re: MAME outputs on Raspberry Pi
« Reply #11 on: September 06, 2017, 06:59:22 am »
no it is closed source.

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5645
  • Last login:March 02, 2019, 07:35:34 pm
  • I glow in the dark.
Re: MAME outputs on Raspberry Pi
« Reply #12 on: September 06, 2017, 03:41:50 pm »
Would you be nice and send me it anyway, to save me from disassembly?  I want to include it in my reasearch project for my Phd.  I will give you full credit.
If I had only one wish, it would be for three more wishes.

Zipper

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:November 26, 2022, 12:32:50 pm
  • I've Built My Own Arcade Controls!!
Re: MAME outputs on Raspberry Pi
« Reply #13 on: September 20, 2017, 06:44:53 am »
Just wondering if it's possible to capture MAME outputs on the Raspberry Pi, similarly to how MAMEHooker does that on Windows.

Outputs like the flashing lights on Chase HQ, or Outrun brake lights or shaker motor, etc. I've searched around but can't see anything. Thanks for any info!

With a bit of python you can capture MAME outputs on the the Pi and then manipulate the GPIO.
Pi 3  can run the latest mame at a good speed too (when overclocked).
I  had a quick go and I can emulate a 4-slot NeoGeo fine on Mame 0.189 (latest build), and can send the marquee outputs to the GPIO (or over comm) :


Nothing of this is my own - I just used the info on these pages:
https://www.raspinews.com/blinking-led-on-raspberry-pi-using-python
https://pinout.xyz/pinout/pin11_gpio17
http://choccyhobnob.com/
https://github.com/arfink
« Last Edit: September 20, 2017, 06:54:55 am by Zipper »