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: How do relay switches work and how do I know what I need?  (Read 1492 times)

0 Members and 1 Guest are viewing this topic.

marioxb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
  • Last login:May 27, 2025, 11:07:43 am
  • I want to build my own arcade controls!
How do relay switches work and how do I know what I need?
« on: August 14, 2013, 09:11:34 am »
I want my control panel config to change for certain boards with a 6 in 1 JAMMA switcher. Some games (Tekken, SF) want the first 2-3 buttons on the top row. Others (Neo Geo, 2-3 button only games) work better on the bottom row. What I want to happen, for example is when I press button 1, JAMMA wires 1, 2 and 3 go to CP buttons A, B and C. When I press button 2, JAMMA wires 1, 2 and 3 go to CP buttons D, E and F. Something like that.

I hear talk of relay switches, but I don't know exactly what they are. How do I know what type I need? How many 'things' can be switched at once? I was thinking an AV switchbox would work (y'know, those things where you press a button to switch to having your PS2/ Xbox/ GameCube/ whatever to your TV?)..

I tried some google searches, but wasn't really sure what to look for. Is it a relay switch or something else I'm looking for?

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9685
  • Last login:Today at 05:15:13 pm
  • Designated spam hunter
Re: How do relay switches work and how do I know what I need?
« Reply #1 on: August 14, 2013, 10:11:36 am »
A relay is an electronically-controlled switch.



When power is applied to the coil (curly part and vertical line on the left), it generates an electromagntic field that pulls the switch arm(s) -- dotted line indicates that those arms will all be pulled by that coil.

Relays are described by the number of switch arms (poles) and the number of output contacts (throws).

To switch 6 buttons between two possible arrangements, you would need one of the following:
1. A six pole double throw (6PDT) relay similar to this (NOTE: haven't checked specs/coil power consumption)
2. Two 3PDT relays
3. Three DPDT (sometimes called 2PDT) relays

If you don't mind manually switching configurations, you can use this switch or something like it.
(Data sheet shows pinout for connections)




Scott

marioxb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
  • Last login:May 27, 2025, 11:07:43 am
  • I want to build my own arcade controls!
Re: How do relay switches work and how do I know what I need?
« Reply #2 on: August 14, 2013, 10:44:52 am »
OK. I'm understanding a bit better. Now it should be OK for the ground wires to be connected all the time, correct? Also, what's the difference or dis/advantage of a relay vs a regular switch? I used to mod people's GameCubes with I think SPST switches to switch between Japanese and US regions. Pretty sure the switches weren't electronically controlled?

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9685
  • Last login:Today at 05:15:13 pm
  • Designated spam hunter
Re: How do relay switches work and how do I know what I need?
« Reply #3 on: August 14, 2013, 12:02:45 pm »
Now it should be OK for the ground wires to be connected all the time, correct?
Right.  You'll just be changing which button connects to which wire.

Buttons --> relay/switch --> 6in1 harness --> 6in1 board -->  game boards

Also, what's the difference or dis/advantage of a relay vs a regular switch?
Relay advantages:
- Automated switching based on game selected

Relay disadvantages:
- Higher cost
- More effort to research/design the circuit
- More complicated wiring
- Have to tap game board voltage to energize the relay for games that use the non-default button configuration (only works if the 6in1 only powers the board currently in use)

Switch advantages:
- Lower cost
- Simple to wire

Switch disadvantages:
- Manual switchng
- Switch placement/mounting


Scott

marioxb

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 250
  • Last login:May 27, 2025, 11:07:43 am
  • I want to build my own arcade controls!
Re: How do relay switches work and how do I know what I need?
« Reply #4 on: August 14, 2013, 01:01:13 pm »
Thanks again, Scott. Yeah the 6 in 1 (from jammaboards.com I think) supposedly powers only the selected board. I don't have it yet and only currently have 1 board (Tekken 2). Just looking at pinouts and planning ahead. I also plan on having a J-PAC as one of the 6 boards.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: How do relay switches work and how do I know what I need?
« Reply #5 on: August 14, 2013, 02:29:47 pm »
It would probably be a lot easier just to rig up a few adapters to change the pinouts of your oddball boards to match the most common config rather than trying to rig up a bunch of relays and such.

In the past I have even done a little jiggery pokery (trace cutting and jumper wires) on the boards themselves to make boards with funny button configs (or pinouts that vary by only a few wires) play nice in my cabinets.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.