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: Buttons double firing -- please help  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Buttons double firing -- please help
« on: March 16, 2005, 05:23:14 pm »
Hello,
I have a bunch of happ pushbuttons with horizontal microswitches and a 4 player I-pac in my mame cab.  I seem to have an intermittent problem when pressing buttons occasionally, in that it will register two clicks with one press.  Bringing up notepad and pressing the buttons, several of them occasionally register two characters instead of one.  Is this a common problem?  Any idea where to look?  It makes certain games very difficult to play (not to mention entering my initials in the highscore screen lol).

Thx,
Andy

cholin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:July 16, 2009, 09:22:25 pm
    • Nilok Productions
Re: Buttons double firing -- please help
« Reply #1 on: March 16, 2005, 05:25:46 pm »
Im guessing theres probably a short in the wiring connecting some of the NC ports to NO ports so when the button is down, it registers a press and when it goes up, it registers another.  Check your wiring, since that's usually the problem.  Best thing to do always though when you have a problem with Ultimarc is to email andy.

MonitorGuru

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 774
  • Last login:October 05, 2005, 11:29:43 pm
Re: Buttons double firing -- please help
« Reply #2 on: March 16, 2005, 05:34:27 pm »
Are your buttons (well, at least the switches) old?  Are they genuine Cherry switches or some off brand?

My first thought is very dirty contacts/bent connectors inside the switch.   

Do all switches do this? or just a few?  If All, then it is some common wiring problem or a failure in the IPac, because to have that many switches go back is highly unlikely, unless they all came out of 20 year old cabinets.

Is this a USB or PS/2 IPac?  If USB you may have USB driver issues on your machine. If PS/2 are you trying to connect a PS/2 keyboard at the same time? That could cause some problems if done through a Y connector/etc...

If you're certain it's a few switches, don't spend too much time diagnosing as replacement cherry switches are only 90 cents each or so from Bob roberts (and new switches with new buttons are only like $1.45 from him)

tetsujin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 222
  • Last login:April 10, 2007, 05:51:25 pm
  • My controls will have programmable button labels.
    • My Homepage
Re: Buttons double firing -- please help
« Reply #3 on: March 16, 2005, 05:38:33 pm »
Interesting.  Could this be an effect of switch bounce?  (Does the I-Pac not de-bounce switch inputs?)


Educational Segment:

For those not familiar with switch bounce, here's what it is.  When a switch is pressed, its two contacts come in contact, allowing current to flow.  But there's some impact there, so a terminal that hits its mating terminal with some force may contact, bounce off, and contact again.  (I imagine this is especially true in microswitches, where the transition from one state to the other is rather fast.)  This can cause a device, over the period of a millisecond or so, to see the button change state several times as it's being pressed.

De-bouncing is the process through which devices counteract this phenomenon, by using a timer to ignore state changes that happen too close together.
---GEC

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #4 on: March 16, 2005, 05:47:08 pm »
At first, I thought it was only a few buttons, but I will test that theory in great length tonight and report back.  The (cherry) switches and buttons are all less than 2 years old.  The weird thing is it's very intermittent.  I would think if it were wired incorrectly, it would fail every press.  But it's more like every 10 presses or so.  Good idea about emailing Andy...I'll do that now too.  Just wondering if this was a FAQ.
Thx all for the input!

MonitorGuru

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 774
  • Last login:October 05, 2005, 11:29:43 pm
Re: Buttons double firing -- please help
« Reply #5 on: March 16, 2005, 05:50:20 pm »
The way microswitches are made, it's' very hard to get bounce. A lot easier on a leaf switch.

A microswitch includes a curved piece of metal. Once it is pressed enough, the metal QUICKLY and securely snaps to the opposite terminal (usually) providing almost zero bounce and always BREAK before MAKE functionality.

The only thing that would give bounce would be very dirty contacts inside (e.g. ones that are simply old, or ones that have succumed to oxidation through sweat/oil falling in them from a bad control panel/button or other humididty changes)

To control bounce, you can put very small ceramic disc capacitors on the line.

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Buttons double firing -- please help
« Reply #6 on: March 16, 2005, 07:30:28 pm »
Yep, sounds like an old switch that soon needs replacing.
An ounce of image is worth a pound of performance.

tommy

  • Guest
  • Trade Count: (0)
Re: Buttons double firing -- please help
« Reply #7 on: March 16, 2005, 09:48:03 pm »
Do you have a few buttons wired to one microswitch , sounds like a ground oroblem.

redcoats

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 163
  • Last login:March 15, 2015, 04:04:56 pm
  • I want to build my own arcade controls!
Re: Buttons double firing -- please help
« Reply #8 on: March 16, 2005, 09:59:01 pm »
This actaully sounds like the buttons are hooked up wrong? There should be three prongs on the microswitches. Ground goes on the further back prong and the power goes to the middle if it is not hooked up this way it will be like auto fire. If you do have them hooked up correctly I have no idea what the problem is? :P

cdbrown

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1241
  • Last login:October 16, 2017, 09:52:03 pm
  • Bowowow
Re: Buttons double firing -- please help
« Reply #9 on: March 16, 2005, 10:43:18 pm »
I had this problem on one of my buttons.  Push it in slightly and it would register the press, keep pushing in further and it wouldn't register anymore.  I opened up notepad to test all my buttons - all but one would register the corresponding letter once when pressed quickly, if help down all but one would repeat the corresponding letter.  Replaced the faulty microswitch and everything works.

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #10 on: March 17, 2005, 12:11:08 am »
Update.
It seems that about half of my buttons (around 10 or so) have this problem.
« Last Edit: March 17, 2005, 12:16:09 am by ahofle »

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Buttons double firing -- please help
« Reply #11 on: March 17, 2005, 08:40:05 am »
Until you replace one of the microswitches and retest, stop making foolish assumptions.
Two years of heavy use should show AT LEAST one failure. Look at the joystick switches, and you'll see one is clearly more worn that the others. From experience, I can tell you that's likely the switch for down. If that cherry actuator on it shows enough wear to expose the white, that's a clue to keep a close eye on all switches.
An ounce of image is worth a pound of performance.

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re: Buttons double firing -- please help
« Reply #12 on: March 17, 2005, 10:38:02 am »
but having 10 fail? 

I'm guessing its either a single wire on the grounds or something with the ipac.

But since you have soldered the wires... you can't easily check that... so try this...   Reprogram the ipac (since its easy).  Then try swapping a button that is working with one that isnt (at the ipac... two screws and your done).  Does the problem follow the button?  If not the ipac might have some issues...

Ok, now we know its the wiring.  Do you have the 10 buttons on the same ground (and the others on another one?)  Then you probably just want to redo the ground wire end to end. 

You can also write a quick program that detects key presses / releases and sends them to the console.  Then force a button down (either by hand or with a wire) and then start shaking each ground wire.  See if you can make it fault. 

Good luck

rdagger

Re: Buttons double firing -- please help
« Reply #13 on: March 17, 2005, 12:41:01 pm »
Your picture of the buttons shows a brownish discoloration where the ground terminals meet the plastic base of the switch.  There's a possibility that you heated the microswitches too much when you soldered them and shortened their life.

Flinkly

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1244
  • Last login:March 14, 2017, 01:14:21 pm
Re: Buttons double firing -- please help
« Reply #14 on: March 17, 2005, 01:05:17 pm »
if you do end up witching them, invest in some quick disconnects...

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #15 on: March 17, 2005, 04:06:52 pm »
OK I'm ordering a bunch of new microswitches from therealbobroberts.com.
« Last Edit: March 17, 2005, 04:12:02 pm by ahofle »

cholin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:July 16, 2009, 09:22:25 pm
    • Nilok Productions
Re: Buttons double firing -- please help
« Reply #16 on: March 17, 2005, 06:01:36 pm »
Solderring is frowned upon because if you order some Quick Disconnects for $6, you have better contact and it's easier to remove.  Basically, its the idea that you don't have to take apart the whole thing to replace a switch or two, instead, you pull the connect off and slide it onto another switch.  Solderring is fine, but QDs are cheap and reliable.

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #17 on: March 17, 2005, 07:39:48 pm »
Where'd you get them for that cheap?

cholin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:July 16, 2009, 09:22:25 pm
    • Nilok Productions
Re: Buttons double firing -- please help
« Reply #18 on: March 17, 2005, 08:17:59 pm »
The quick disconnects?  Peale has a link in his sig and if you look under Connectors, he sells them by the bag of 100.  I plan on buying some when I get some cash in the good ol paypal account :)

EDIT: Sorry, I said Paige, meant Peale, fixed.
« Last Edit: March 17, 2005, 09:56:50 pm by cholin »

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #19 on: March 17, 2005, 09:45:06 pm »
Well I found a new unused cherry switch in my garage from a 3 player start button I never got around to installing.  I replaced one of the buttons that always 'skipped', installing it with no soldering.  I haven't been able to get it to happen yet in about 100 clicks.  So it looks like it must be that my switches are bad.  10,000,000 click MTF ---my bottom---.  :P  Very odd.  Maybe overheating them with the soldering gun was the catalyst that accelerated their premature failure.  ???

Thanks for all the help.  :)

Apollo

  • Yes You Can Have A Custom Title
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1877
  • Last login:May 27, 2021, 10:49:02 pm
    • Eight Bells
Re: Buttons double firing -- please help
« Reply #20 on: March 18, 2005, 02:11:14 am »
If it does become a problem the best way to solve it usually to slow down key repeat in windoze.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: Buttons double firing -- please help
« Reply #21 on: March 18, 2005, 05:04:37 am »
I don't have quick disconnects, but darn near every auto parts store around sells them in both common arcade sizes (both of which are also common car stereo sizes).
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.

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Buttons double firing -- please help
« Reply #22 on: March 18, 2005, 08:32:01 am »
Please, if you use disconnects, get the non-insulated ones. That way, you can solder your wire to the disconnect, and get the best possible connection. At that point, your disconnect will have good enough contact with the switch to ensure good operation. But a crimped connection is never 100% reliable.

A switch wears down both electrically and mechanically(related though). You can always open yours and blow out the dust.

I had a friend have hid 'down' go out on a MAS stick. Checked the switch, it was awful, and replaced it. Later that night, I opened it just to see how much wear there was. Welll, it turns out the switch had a dust ball in it. Cleaning it might have let me use it a few more months, but overall, not worth it.
An ounce of image is worth a pound of performance.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Buttons double firing -- please help
« Reply #23 on: March 18, 2005, 08:49:44 am »
Solderring is frowned upon because if you order some Quick Disconnects for $6, you have better contact

Wrong.

1) Soldering is NOT frowned upon by alot of people around here.

2) A good solder joint is a better connection than disconnects.
Do you suppose there's a reason they don't put all the guts of a radio in with press fittings?

Quote
and it's easier to remove.

True, but not THAT much easier, and not a big deal unless you plan to rearrange stuff regularly.

Quote
Basically, its the idea that you don't have to take apart the whole thing to replace a switch or two, instead, you pull the connect off and slide it onto another switch.

Nor do you with solder.
You just desolder the switch you are replacing, and solder the new one in.

Quote
Solderring is fine, but QDs are cheap and reliable.

Cheap compared to what?
I've got a $3.19 roll of solder sitting here that's done EVERY project I've done (arcade, school, personal, etc...) for the last 15 years, or so.
$6.00 for one or two machines sounds kind of expensive by comparison.

BackAgain

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 36
  • Last login:February 01, 2008, 03:27:44 pm
  • I'm a llama!
Re: Buttons double firing -- please help
« Reply #24 on: March 18, 2005, 08:33:00 pm »
I always use a heat sink while soldering.

tommy

  • Guest
  • Trade Count: (0)
Re: Buttons double firing -- please help
« Reply #25 on: March 19, 2005, 08:41:36 am »
Solderring is frowned upon because if you order some Quick Disconnects for $6, you have better contact

Wrong.

1) Soldering is NOT frowned upon by alot of people around here.

2) A good solder joint is a better connection than disconnects.
Do you suppose there's a reason they don't put all the guts of a radio in with press fittings?

You dont need to make your microswitch hold up in a hurricane, just as long as the wires are touching it will work, dissconnects are fine , why dont you weld your tire on the hub so theres no chance it will ever fall off, microswitches and radios , apples and oranges.

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Buttons double firing -- please help
« Reply #26 on: March 23, 2005, 06:47:05 pm »
Well I did take apart the switch that was bad, and I tell you it's as clean as a whistle in there, with absolutely zero oxidation.  The contacts all look correct when I press the red button.  I just don't get it.  Andy from ultimarc mentioned that American made cherry switches succumb to this problem much more than the European ones.  Anyway I ordered a bunch of replacements.  I also had a friend of mine test out his buttons and he found 4 that exibited this same behavior in notepad.

Thanks again for all the help.