The NEW Build Your Own Arcade Controls

Main => Raspberry Pi & Dev Board => Topic started by: 2huwman on September 03, 2017, 02:53:23 am

Title: MAME outputs on Raspberry Pi
Post by: 2huwman 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!
Title: Re: MAME outputs on Raspberry Pi
Post by: nitrogen_widget 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
Title: Re: MAME outputs on Raspberry Pi
Post by: ZoOl007 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 (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
Title: Re: MAME outputs on Raspberry Pi
Post by: ark_ader 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 (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?
Title: Re: MAME outputs on Raspberry Pi
Post by: 2huwman on September 05, 2017, 06:13:36 am
thanks very much for the info guys!
Title: Re: MAME outputs on Raspberry Pi
Post by: ZoOl007 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
Title: Re: MAME outputs on Raspberry Pi
Post by: nitrogen_widget 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 (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?
Title: Re: MAME outputs on Raspberry Pi
Post by: baritonomarchetto 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...
Title: Re: MAME outputs on Raspberry Pi
Post by: nitrogen_widget 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 (http://www.advancemame.it/doc-script)
Title: Re: MAME outputs on Raspberry Pi
Post by: baritonomarchetto on September 06, 2017, 12:43:31 am
Looks like it can read leds and knocker states and take control over the keyboard leds.
Title: Re: MAME outputs on Raspberry Pi
Post by: ark_ader 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 (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?
Title: Re: MAME outputs on Raspberry Pi
Post by: ZoOl007 on September 06, 2017, 06:59:22 am
no it is closed source.
Title: Re: MAME outputs on Raspberry Pi
Post by: ark_ader 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.
Title: Re: MAME outputs on Raspberry Pi
Post by: Zipper 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) :
https://youtu.be/3DqgnqqnZ9A (https://youtu.be/3DqgnqqnZ9A)

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://www.raspinews.com/blinking-led-on-raspberry-pi-using-python)
https://pinout.xyz/pinout/pin11_gpio17 (https://pinout.xyz/pinout/pin11_gpio17)
http://choccyhobnob.com/ (http://choccyhobnob.com/)
https://github.com/arfink (https://github.com/arfink)