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: Wiring a Service Switch in a MAME Cabinet?  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

Necro

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1031
  • Last login:November 29, 2022, 08:22:22 pm
  • Building a 'Classic' MAME Cab
Wiring a Service Switch in a MAME Cabinet?
« on: October 16, 2008, 05:04:22 pm »
I'd like to use the Service Switch in my cabinet so that it functions in MAME.  I'm thinking having it just wired up to an IPAC or MAME won't work since it's not a momentary button and it will cause some issues.  I'm thinking I'd need it to register the keypress, then resend the keypress on 'release' or when the switch is turned off service mode.

Anyone done this or have any ideas?

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Wiring a Service Switch in a MAME Cabinet?
« Reply #1 on: October 17, 2008, 02:19:45 pm »
Well... a few issues.

Different games had different Service Switches.  AFAIK, most were on/off switches like you're talking about, but a few were momentary switches (I doubt any were pulse, or pulse on change like you want to do).  Mame most likely is set up to emulate the original switch type, so if the game had one like you have, mame expects the button to remain closed.  Ipac and mame can handle continuously closed buttons.  The times you might run into problems with just wiring your switch is if it's closed (on/"pressed") when the computer boots, and when you're outside of mame (say trying to post at this forummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm ;) ).

I'm sure it's a pretty easy (and standard) circuit to pulse when changed, but you don't need to.
Robin
Knowledge is Power

Necro

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1031
  • Last login:November 29, 2022, 08:22:22 pm
  • Building a 'Classic' MAME Cab
Re: Wiring a Service Switch in a MAME Cabinet?
« Reply #2 on: October 18, 2008, 10:51:57 am »
I'll have to check that (the test mode hold vs. momentary thing).  As it does present a bit of an issue I wasn't expecting.  And understood on the hold down the key thing :).

And the actual wiring up of a switch wasn't my main concern, it was if I were to hook one up how would MAME react and would I need some kind of circuit/program setup to pass the proper input to MAME so it functioned as the switch actually should.

CrazyKongFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 569
  • Last login:June 06, 2017, 01:22:29 pm
Re: Wiring a Service Switch in a MAME Cabinet?
« Reply #3 on: October 19, 2008, 03:27:43 am »
My cab had a SPDT switch on the coin door when I got, one side was momentary, one wasn't. I replaced it with one of the same size that had both momentary, then wired it up to F2 and F3 on my encoder (F2=service, F3=reset in MAME). Seems to work for all the games I've used it on so far. The ones it doesn't work for is one that needs 3 buttons (some Williams games). Those had a little bracket with 3 momentary push buttons (In MAME, it uses F1 also...I think I just mapped it to one of the control panel buttons, since it doesn't do anything outside of service mode)