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: Button wiring.  (Read 2446 times)

0 Members and 1 Guest are viewing this topic.

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Button wiring.
« on: April 25, 2007, 12:42:46 am »
Hey,

     Here is the scenario:  If button 1=a and button 2=b, how do I wire button 3=ab.  I am using micro switches and only these three buttons can be used in this scenario.

Thanks,

Herk

Kevin Mullins

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4504
  • Last login:February 01, 2021, 01:29:34 pm
    • Me on Myspace
Re: Button wiring.
« Reply #1 on: April 25, 2007, 01:00:37 am »
So button 3= a+b ?

One side of your microswitch goes to ground/common as usual.

The other side goes to the action side of both button 1 and button 2.

Is that what you were asking?
Not a technician . . . . just a DIY'er.

Chris G

  • Well then throw me in a dress and call me Sally
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1039
  • Last login:April 16, 2023, 04:39:59 pm
  • Robotron in progress? I'm on my way.
Re: Button wiring.
« Reply #2 on: April 25, 2007, 01:05:32 am »
Perhaps if you explained the scenario there could be an alternate solution...?

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Re: Button wiring.
« Reply #3 on: April 25, 2007, 01:19:11 am »
Chris,

     I am modifying an x-arcade tankstick and have added a few buttons, one being an escape key.  The x-arcade circuit board has player2 + button4 = esc.  I want to have one button to be the escape key not the combo.


Kevin,

     I will try your solution right away but I think that makes all three buttons a+b.  Yup, all go a+b.  I need 1 to remain a only, 2 to remain b only and 3 to be a+b.

Thanks,

Herk
« Last Edit: April 25, 2007, 01:32:24 am by Herk »

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Button wiring.
« Reply #4 on: April 25, 2007, 01:31:45 am »
2 diodes inserted in the action side would prevent a and b buttons from interactiing.  Not knowing the ciircuit it would be trial and error in positioning them properly as to polarity.   If it does not work one way it is the other way.

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Re: Button wiring.
« Reply #5 on: April 25, 2007, 01:37:32 am »
BobA,

That sounds perfect, I thought restricting the flow would be more complicated than that.  Now for a lazy question.  What diodes do I need?  OK, I did a bit of quick reading.  I need regular p-n diodes.

Thanks alot,

Herk
« Last Edit: April 25, 2007, 01:47:31 am by Herk »

danny_galaga

  • Grand high prophet of the holy noodle.
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 8526
  • Last login:Yesterday at 08:06:52 am
  • because the mail never stops
    • dans cocktail lounge
Re: Button wiring.
« Reply #6 on: April 25, 2007, 07:19:01 am »


yep, you can pretty much use the cheapest, smallest diodes you can find at radio shack. its only a signal, so very small current.


ROUGHING UP THE SUSPECT SINCE 1981

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Button wiring.
« Reply #7 on: April 25, 2007, 10:21:17 am »
Another option -

From the picture, the tank stick looks like it is 26 inputs (16 buttons, two joysticks, 2 start).  There might be coin inputs that I am missing.

The X-Arcade DIY PCB is 28 inputs.

Assuming the Tank Stick uses the same PCB, you could just wire a button to one of the unused inputs and program it to send Esc.

Probably simpler than the diodes method.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Re: Button wiring.
« Reply #8 on: April 25, 2007, 12:22:58 pm »
Tiger-Heli,

     What is nice about the Tankstick is the flash memory program mode.  There are 4 modes. Mode 1 is for default MAME setup and is not programmable, 2, 3 and 4 are.  I want to use mode 1 with the extra esc button so I can't just program it to an open input.  Also there are two coin buttons on the Tankstick as well, one of which is the button 2=b in my scenario.  The diode way looks good to me.  I will let you all know when I wire it up, maybe later today.

Thanks for the help,

Herk

superbigjay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 667
  • Last login:October 22, 2023, 02:50:03 pm
  • I'll always be a kid...
    • superbigjay website
Re: Button wiring.
« Reply #9 on: April 25, 2007, 10:53:49 pm »
2 diodes inserted in the action side would prevent a and b buttons from interactiing.  Not knowing the ciircuit it would be trial and error in positioning them properly as to polarity.   If it does not work one way it is the other way.
Hello Herk, as BobA said, 2 diodes should do the trick.  Almost any diode that support 5V or more should do the trick.  If I remember my electronic, the orientation of the 2 diodes should be the cathode toward the NO port of your pushbutton 3.

Here a schem...

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Re: Button wiring.
« Reply #10 on: April 25, 2007, 11:05:23 pm »
Superbigjay,

     That's great, it's always nice to see things visually like that.  I didn't get my diodes today.  Maybe tomorrow.

Thanks,

Herk

superbigjay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 667
  • Last login:October 22, 2023, 02:50:03 pm
  • I'll always be a kid...
    • superbigjay website
Re: Button wiring.
« Reply #11 on: April 26, 2007, 08:46:38 am »
No prob,
I just had a refresh course on diode yesterday because I needed to hookup a P360 with a regular 4-way joystick on the same 4-inputs of the encoder.
Jay
:cheers:

Herk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:December 30, 2024, 06:58:17 pm
Re: Button wiring.
« Reply #12 on: April 26, 2007, 11:53:26 pm »
Hey everybody,

     It works :applaud:, it works :applaud:.  Thanks to all that helped out.  I have exactly what I wanted using the diode method for a total cost of $1.99.

Thanks again,

Herk