MAME Coin op question.

Hacking a [insert console name here] but don't see a "[insert console name here] Hacking" forum? Come on in and post your [insert console name here] questions and build logs!

Moderator:Moderators

Post Reply
ChaosAlchemyst
Posts:12
Joined:Tue Mar 08, 2011 4:13 am
MAME Coin op question.

Post by ChaosAlchemyst » Thu Mar 31, 2011 9:05 pm

Problem: My friend wants me to build him an arcade cabinet (MAME of course) and he wants it to be coin operated. This would be all well and good if he only wanted MAME but he wants to play other games (like nes/snes etc) with the same coin op abilities. I know where to get a coin door, But I don't know how I would regulate the other games on the system.

Now I'm not all there when it comes to electronic chips, but is there a way that I could use the coin mech switch to activate some sort of timer that would give power to the controls for, oh i don't know, 30 minutes or so? It would have a small digital timer display next to the tv telling you how much time you had left before it deactivated the controls and went to the home screen of whatever frontend I was using (Mala most likely). They could put in additional quarters to add playing time/reset the timer to the max time.

Any idea on how that might work out?

Snow_Cat
Posts:463
Joined:Fri Aug 13, 2010 12:40 pm
Steam ID:Snow_Cat
Location:Here
Contact:

Re: MAME Coin op question.

Post by Snow_Cat » Thu Mar 31, 2011 10:26 pm

^- - ^ maybe a microcontroller if you can't think of a program to do that.
^ - -^ ...(awk, can't help but to think about implementation...)
Spoiler:
Hardware:
  • Microcontroller (8051, PIC, AVR, or etc.)
    Inputs:
    • (active low) coin mech
    • serial from PC or mode switch
    Outputs:
    • Numerical Display (7 segment, iron lead or LCD character display)
    • serial to PC or multiplexor to enable/disable
    • Coin Lock out
    • Warning buzzer
    • Warning/status LEDs
Software (micro)
  • Main:
    • Mode switch:
      1. stand by
        • controls remain enabled or disabled depending on previous condition
        • Timer stopped/paused
        • Coin-Lock out active
        • Warning buzzer inactive
        • output time remaining and status LED
      2. >30 minutes remaining on timer
        • controls enabled
        • Timer running
        • Coin-Lock out active or inactive if coin-mech is being used in another fashon
        • output time remaining and status LED
      3. <30 minutes remaining, >1 minute remaining
        • Timer running
        • Coin-Lock out inactive
        • If input from coin-mech detected add time_remaining
        • output time remaining and status LED
      4. <1 minute remaining
        • Timer running
        • Coin-Lock out inactive
        • Warning buzzer active
        • If input from coin-mech detected add time_remaining and deactivate warning
        • output time remaining (in 'fast' time scale to induce user panic?) and status LED
      5. 0 time remaining
        • Timer inactive
        • set multplexor to disable arcade controls
        • If input from coin-mech detected add time_remaining and activate both timer and arcade controls
        • Coin-Lock out inactive
        • warning buzzer inactive
        • output time remaining and status LED (or make display dance in 'attract' mode?)
      Timer:
      • (while active)
      • decrement time at interval
      • set mode (b,c,d or e) based on time remaining
      Serial input or external mode switch:
      • set mode a if set to standby
      • set time remaining and mode if instructed to

ChaosAlchemyst
Posts:12
Joined:Tue Mar 08, 2011 4:13 am

Re: MAME Coin op question.

Post by ChaosAlchemyst » Thu Mar 31, 2011 10:32 pm

Hmmm. That reminds me vaguely of Garry's Mod's Wiremod addon. I dont know how to program like that yet. BUT believe it or not, I'm interning for a microcontroller plant working on the coding side. I might be able to hack together a program by the end of summer. :3

Snow_Cat
Posts:463
Joined:Fri Aug 13, 2010 12:40 pm
Steam ID:Snow_Cat
Location:Here
Contact:

Re: MAME Coin op question.

Post by Snow_Cat » Thu Mar 31, 2011 10:59 pm

If you could send me a developer/evaluation kit I wouldn't mind helping you build this thing. :D

With good documentation for the micro (if it has meow-snow.blogspot.comUSB capabilities) it could even be made into a HID device. Where the inputs from the arcade controls (and coin door) are translated into keyboard, joystick and mouse inputs, with the timer display/buzzer/light also running off of the same micro.

All want is the dev software and to write about it on my blog... :?
...like the other projects I've done, that are filling up the backlog of articles I need to finish writing for my blog. :|

:) Or actually; I'll just provide software design support, just stick my user name (and forum location) in the about section if you publish it on your blog/website.

ChaosAlchemyst
Posts:12
Joined:Tue Mar 08, 2011 4:13 am

Re: MAME Coin op question.

Post by ChaosAlchemyst » Thu Mar 31, 2011 11:06 pm

That sounds awesome. Anyways, I want to finish this first and I HAVE to finish this before I can even consider starting an arcade cabinet.

I'll keep your offer in mind though and contact you when I get started.

User avatar
rikitheshadow
Posts:315
Joined:Fri May 09, 2008 12:15 am

Re: MAME Coin op question.

Post by rikitheshadow » Mon Apr 11, 2011 12:57 am

Just a heads up. Nintendo did release arcade versions of most of their popular console games.

Its called the Nintendo Playchoice, some came as a one game one unit, others came with a dual screen (game on bottom, select screen on top) and multiple interchangable game roms.
I'm not a 100% but I do believe they even had one for the SNES as well.

AND don't forget Sega, they did have something similar....those are hard to come by really, but they did have a smaller screen up top showing a title card for the game being played.
I've seen pictures, but I don't know much else about them.....like names and hardware..............

Nazraen
Posts:8
Joined:Sun Apr 17, 2011 1:52 pm
PSN Username:Nazraen

Re: MAME Coin op question.

Post by Nazraen » Sun Apr 17, 2011 3:08 pm

I really don't know if this is possible but you could try buying a really cheap USB pad and soldering the triggers from the coin chutes to the buttons on the usb controller's board. Kind of low brow-ish but possibly a viable solution?

ChaosAlchemyst
Posts:12
Joined:Tue Mar 08, 2011 4:13 am

Re: MAME Coin op question.

Post by ChaosAlchemyst » Sun Apr 17, 2011 3:22 pm

As far as I know, that would not work and would need additional programming (ie: this microprocessor setup). Unless you only wanted control of the buttons for the .001 seconds the quarter holds the switch down.

Snow_Cat
Posts:463
Joined:Fri Aug 13, 2010 12:40 pm
Steam ID:Snow_Cat
Location:Here
Contact:

Re: MAME Coin op question.

Post by Snow_Cat » Sun Apr 17, 2011 5:19 pm

That would be long enough for the program to trigger, if not you could add a capacitor to the mix.

ChaosAlchemyst
Posts:12
Joined:Tue Mar 08, 2011 4:13 am

Re: MAME Coin op question.

Post by ChaosAlchemyst » Sun Apr 17, 2011 5:21 pm

I am aware of that, and that's why I want to go that route. I think he was asking if you couldn't just directly wire the coin switch to the buttons.

Nazraen
Posts:8
Joined:Sun Apr 17, 2011 1:52 pm
PSN Username:Nazraen

Re: MAME Coin op question.

Post by Nazraen » Sun Apr 17, 2011 5:52 pm

ChaosAlchemyst wrote:I am aware of that, and that's why I want to go that route. I think he was asking if you couldn't just directly wire the coin switch to the buttons.
Yeah, that was pretty much what I was getting at. I thought I saw someone do something similar a while back but I could be mistaken.

Snow_Cat
Posts:463
Joined:Fri Aug 13, 2010 12:40 pm
Steam ID:Snow_Cat
Location:Here
Contact:

Re: MAME Coin op question.

Post by Snow_Cat » Sun Apr 17, 2011 7:12 pm

You could but then how would the timer feature work?

Nazraen
Posts:8
Joined:Sun Apr 17, 2011 1:52 pm
PSN Username:Nazraen

Re: MAME Coin op question.

Post by Nazraen » Mon Apr 18, 2011 12:09 am

I have no idea, I honestly didn't think that far ahead when I answered (been running on no sleep all weekend), and I apologize for that. At first I was thinking a joy2key-like method with the chute that would trigger a background app to put everything on a timer, but I would have no idea on how to pull that off. Feel free to ignore my post since again, I'm running on no sleep. Hopefully though you can figure it out with the microcontoller since it's more elegant.

Snow_Cat
Posts:463
Joined:Fri Aug 13, 2010 12:40 pm
Steam ID:Snow_Cat
Location:Here
Contact:

Re: MAME Coin op question.

Post by Snow_Cat » Mon Apr 18, 2011 1:00 am

It is no more elegant or 'right' than using a microprocessor.

If I knew how to write a debugger/sandbox then that would be the way to go; the program I've described would sit neatly in its own thread with no additional HW, instead in a $10 micro.

I am certain that someone on StackOverflow could do it; but what I know how to do is the micro, so that is the approach I am pointing at.

Post Reply