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-qustion  (Read 1383 times)

0 Members and 1 Guest are viewing this topic.

Felice

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:November 05, 2007, 11:53:26 am
  • I want to build my own arcade controls!
button-qustion
« on: March 07, 2005, 04:27:18 pm »
I should need

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: button-qustion
« Reply #1 on: March 07, 2005, 04:36:19 pm »
Saying that you'll do that with "the microswitch" is a little inaccurate, or rather represents a needlessly complicated way of getting the effect you want.  To have the output be a "closed circuit" you'd need to connect your button and circuit to a (electro-mechanical) relay, for total isolation.  But for most practical purposes it's enough to just have one output line which changes voltage with respect to the ground line on your button encoder.

There are various ways you can achieve this effect.  You may be able to pull it off with a simple R-C circuit (closing the switch quickly charges the capacitor, and then releasing the switch causes the capacitor to discharge through a resistor) in conjunction with what I believe is called a "one-shot" (translates a falling edge on the button voltage - the switch closure, into a fixed-length pulse).  Or if you know where to get or how to build a one-second one-shot, that would do it, too.

You should look through the basic circuits books at Radio Shack.  I have a nagging suspicion that they'd have something like this, possibly implemented with a 555 IC and a few extra parts.

Me, I'd program a PIC to do the job.  But if you're not set up for that, it takes a bit of money and learning to get up to speed enough to make useful stuff.
---GEC

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:August 18, 2025, 10:59:20 pm
  • There's my post
    • RayB.com
Re: button-qustion
« Reply #2 on: March 07, 2005, 04:48:32 pm »
And then there's the software side......
Program whatever softwae that is responding to the button press to do this delay in software.

NO MORE!!

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re: button-qustion
« Reply #3 on: March 07, 2005, 08:38:12 pm »
I think the one-shot is really more of a debouncer than what Felice was thinking.

I found a circuit for a 555 monostable multivibrator, which looks like it will work.

Felice

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:November 05, 2007, 11:53:26 am
  • I want to build my own arcade controls!
Re: button-qustion
« Reply #4 on: March 08, 2005, 06:34:54 am »
Thanks for the answers. Can I build the LM555 in my X-Arcade-unit and connect it with a pushbutton? How should I do this. (PS I'm a newbie in electronics).

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:August 18, 2025, 10:59:20 pm
  • There's my post
    • RayB.com
Re: button-qustion
« Reply #5 on: March 08, 2005, 08:39:50 am »
Can you explain to us the purpose of this? Maybe someone can come up with a simpler solution?
NO MORE!!

Witchboard

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2002
  • Last login:January 05, 2022, 09:09:24 pm
    • Oklahoma Coin-Operated Collectors
Re: button-qustion
« Reply #6 on: March 08, 2005, 08:54:44 am »
Sounds like you're wanting an autofire button like on the old console controllers.  Maybe you could hack one of those apart and see what makes it tick?

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: button-qustion
« Reply #7 on: March 08, 2005, 11:18:46 am »
I think the one-shot is really more of a debouncer than what Felice was thinking.

I found a circuit for a 555 monostable multivibrator, which looks like it will work.

I found that same circuit when I was digging around...  (It was also referred to as a one-shot) But I'm not sure if it'll do exactly what he was looking for.  It says it'll give a pulse for a "momentary" press of the switch - doesn't say anything about if the switch is held down.  And what's that about having to bring the reset pin low?  (I don't know the 555 well enough to eyeball it and see what it'll do...  I haven't used 555's in years.)
---GEC

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re: button-qustion
« Reply #8 on: March 08, 2005, 04:17:19 pm »
SW1 is where to connect the microswitch, and the arrow from pin3 connects to the encoder.  My curiosity is telling me to ask: What do you want this for?

Quote
It says it'll give a pulse for a "momentary" press of the switch - doesn't say anything about if the switch is held down.
Neither did Felice.  From what I read, s/he wants a definite 1 second pulse regardless of how long the switch is pressed.

The reset pin stays high.  It's only used for a hard reset, which isn't needed when it only pulses after a buttonpress.

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: button-qustion
« Reply #9 on: March 08, 2005, 05:11:15 pm »
Quote
It says it'll give a pulse for a "momentary" press of the switch - doesn't say anything about if the switch is held down.
Neither did Felice.  From what I read, s/he wants a definite 1 second pulse regardless of how long the switch is pressed.

Meaning the circuit is to deliver a 1 second pulse if the button is tapped, and also a single 1 second pulse if the button is held down for ten seconds.  The circuit you listed doesn't say how it behaves in cases like the latter (as far as I could tell.)
---GEC