Page 1 of 1

outputs mame

Posted: Sun Jun 16, 2024 4:10 pm
by Erpa48
Hi guys

I'm trying to recreate a deluxe asteroids miniature with all its splendor and functions, the game contains outputs on the start button lamps, as far as I know mom can pass these outputs, but how can I read them so I can program them on the Arduino to so that I can control these lamps and of course also for other systems that contain outputs, the entire machine control system I have already programmed on Arduino now I need these outputs, anyone who can help I would be grateful.

Re: outputs mame

Posted: Sat Jul 13, 2024 2:21 pm
by Erpa48
nobody?

Re: outputs mame

Posted: Tue Jul 16, 2024 3:48 am
by Tafoid
Erpa48 wrote: Sun Jun 16, 2024 4:10 pm Hi guys

I'm trying to recreate a deluxe asteroids miniature with all its splendor and functions, the game contains outputs on the start button lamps, as far as I know mom can pass these outputs, but how can I read them so I can program them on the Arduino to so that I can control these lamps and of course also for other systems that contain outputs, the entire machine control system I have already programmed on Arduino now I need these outputs, anyone who can help I would be grateful.

If a system has LED or other physical outputs, properly set up, they will show via text output in a console window.
mame astdelux -output console from command-line will get you this.
Anything more is beyond what MAME can do for you. I presume if you can poll the console window for changes and react to those changes in real time, you'd have no issue with your project.

Re: outputs mame

Posted: Wed Jul 24, 2024 12:01 am
by Erpa48
in the console it returned this:

Orientation(\\.\DISPLAY1) = 0
led0 = 1
led1 = 1
led0 = 0
led1 = 0
led0 = 1
led0 = 0
led0 = 1
led0 = 0
led0 = 1
led0 = 0
led0 = 1

I believe it is not enough to be able to get the correct signal that MAME sends to create my project on the Arduino.
If you have anything else to tell me, I would appreciate it.

Re: outputs mame

Posted: Wed Jul 24, 2024 11:45 am
by mhoes
Erpa48 wrote: Wed Jul 24, 2024 12:01 am in the console it returned this:

Orientation(\\.\DISPLAY1) = 0
led0 = 1
led1 = 1
led0 = 0
led1 = 0
led0 = 1
led0 = 0
led0 = 1
led0 = 0
led0 = 1
led0 = 0
led0 = 1

I believe it is not enough to be able to get the correct signal that MAME sends to create my project on the Arduino.
If you have anything else to tell me, I would appreciate it.
I guess what Tafoid was trying to tell you, is that this is all that MAME can do, and nothing more. If this is not enough for you, then I guess your project ends here.

Not that I have any actual knowledge on the matter, but I guess I could interpret this output in the following way: There are two leds present, named 'led0' and 'led1'. When the led is off the displayed value is '0', and when it is on the value is '1'. If this would be true, then I guess that the following example:

led0 = 1
led1 = 0

would mean that led0 is on, and led1 is off. And the moment a hypothetical new line would appear that says "led1 = 1", it would mean that at that point led1 would be turned on.


Again, I have no actual knowledge here and am just guessing here, but perhaps it is helpful to you anyway.

Re: outputs mame

Posted: Thu Jul 25, 2024 8:44 pm
by Erpa48
This is just to show what happens in the output of the mother, I need data or signals to be able to intercept and with that create a code to use this signal so I can control the physical LEDs through a microcontroller and with that I can recreate a machine with all possible features.

Can any DEV help me?

Re: outputs mame

Posted: Fri Jul 26, 2024 1:12 pm
by mhoes
Erpa48 wrote: Thu Jul 25, 2024 8:44 pm This is just to show what happens in the output of the mother, I need data or signals to be able to intercept and with that create a code to use this signal so I can control the physical LEDs through a microcontroller and with that I can recreate a machine with all possible features.

Can any DEV help me?
The output from MAME on the console *is* the data you need to 'intercept'. You need some way of monitoring the console output in real-time, and then use that to control the physical LEDs accordingly. Producing this output is all that MAME can do, and nothing more. Again, if this is not enough for you, then I guess your project ends here.