Main > Main Forum
button-qustion
<< < (2/2)
RayB:
Can you explain to us the purpose of this? Maybe someone can come up with a simpler solution?
Witchboard:
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:

--- Quote from: Trimoor 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.

--- End quote ---

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.)
Trimoor:
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.
--- End quote ---
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:

--- Quote from: Trimoor on March 08, 2005, 04:17:19 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.
--- End quote ---
Neither did Felice.  From what I read, s/he wants a definite 1 second pulse regardless of how long the switch is pressed.

--- End quote ---

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.)
Navigation
Message Index
Previous page

Go to full version