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: For those who want mouse buttons...  (Read 2707 times)

0 Members and 1 Guest are viewing this topic.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 11:04:07 pm
  • The Bears Still Suck!
For those who want mouse buttons...
« on: December 20, 2002, 01:54:10 am »
For those who want mouse buttons that double as player 1 buttons 1 and 2 here's a pic of a dpdt relay I got form digikey.com.  The part number is in the pic on the relay.  I am only doing 2 mouse buttons.  If oyu want three you will need a triple pole double throw (right?).

Copy and paste the link.
http://free.hostdepartment.com/SirPoonga/images/dpdt.jpg

I haven't gotten around to updating my website yet with that.  But here's the jist of what you see.

For this parts the pin locations on the diagram match up exactly to the pins underneith.  Which is weird, you think the numbers meant something then but they don't in this case.  I originally thought the numbers meant the order of the pins but after testing that was not the case.  It is a what you see is what you get part.

My first step was adding the relay to a wafer bourd (which you can get at radio shack).  I used jumpers then to connect the pins to the correct wires.
Pins 1 and 16 goto a switch on the bottom of my control panel (actually, they ultimately goto the 5v and gnd on a usb port).  when I turn the switch on I get mouse buttons instead of ipac buttons.  My power is coming from the 5v in the usb port, note, this is important as it is a 5v relay to activate the relay.Pins 3 and 4 goto button 1 on the control panel.
Pins 5 and 6 goto the IPAC.
Pins 7 and 8 goto mouse button 1.

Do the same thing for the bottom row of pins for the second control panel button.

Then just mount the relay inside your cp securely.  Works beatuifully.  I didn't want dedicated mouse buttons so this was my solution.

Someone may wonder why I didn't just use a common ground for the ipac and the mouse.  Well, technically ground is ground.  But when two different circuit that are far enough apart but somehow connect to each other share a same ground you get ground loop interference.  Anyone who has setup a home theater system with a subwoofer knows that a ground loop will cause a hum in the sub.  Simular thing here, data might get corrupted or something weird might happen.  So I played it safe and made the relay just switch the grounds from the ipac to the mouse also.

Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:For those who want mouse buttons...
« Reply #1 on: December 20, 2002, 05:23:05 am »
How does it actually work then? You hit a button to switch the relay over? Or does it work automatically somehow? How is it in the proper "mode" when you need it to be?
If you build a frankenpanel, chances are I don't care for you as a person.

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4419
  • Last login:Today at 12:13:19 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re:For those who want mouse buttons...
« Reply #2 on: December 20, 2002, 11:16:03 am »
This is the way I did mine.  I use a leaft style buttons, so i just double up the leaft put an electrical tape in between them so it acts as they are separted (no connections to both and no shorting).  But now, I no loger use this method. I don't use the mouse buttons anymore or the MOUSE/TRACKBALL cause I use PURE DOS in my cab.  Of course I use the TRACKBALL for centipede/millipede/marble madness etc... but not the buttons.
Maybe this idea was/never mentioned before, and it miay help someone who uses a leaft style buttons.
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

planetjay

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 547
  • Last login:April 22, 2019, 10:50:57 pm
  • Ex-Evil Admin Monkey.
    • planetjay.com
Re:For those who want mouse buttons...
« Reply #3 on: December 20, 2002, 01:15:35 pm »
That's a great idea! How did you ever figure that out?  ;)
planetjay.com. Still in Chicago. Still no hurricanes!

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 11:04:07 pm
  • The Bears Still Suck!
Re:For those who want mouse buttons...
« Reply #4 on: December 20, 2002, 01:54:20 pm »
That's a great idea! How did you ever figure that out?  ;)

Oh yeah, thanks to pj and JustMichael for helping figure it out  ;D
« Last Edit: December 20, 2002, 01:58:31 pm by SirPoonga »

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:Yesterday at 11:04:07 pm
  • The Bears Still Suck!
Re:For those who want mouse buttons...
« Reply #5 on: December 20, 2002, 01:58:04 pm »
How does it actually work then? You hit a button to switch the relay over? Or does it work automatically somehow? How is it in the proper "mode" when you need it to be?

Read again.

Quote
Pins 1 and 16 goto a switch on the bottom of my control panel (actually, they ultimately goto the 5v and gnd on a usb port).  when I turn the switch on I get mouse buttons instead of ipac buttons.

I have a toggle switch on the bottom of my control panel.  The relay is setup so the buttons are mapped to the IPAC.  When I flip the switch on so power goes to the relay (which flips the 4 switches in the relay) I now have those buttons going to the hacked mouse buttons.
« Last Edit: December 20, 2002, 01:59:16 pm by SirPoonga »

Brax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1426
  • Last login:January 06, 2009, 09:03:48 am
  • Bring on the power tools!
Re:For those who want mouse buttons...
« Reply #6 on: December 20, 2002, 03:05:01 pm »
Ah, ok so it is a switch to activate the relay. cool.

Man, my cab is going to be full of relays! hehe I already have the power box relay set up. I like this idea to minimize buttons.
If you build a frankenpanel, chances are I don't care for you as a person.