Maker Pro
Maker Pro

Single pulse output

Simon_m74

Jul 25, 2016
31
Joined
Jul 25, 2016
Messages
31
Hi
I`m trying to make a system that :
When a button is pressed, a single short pulse is output - once, no matter how long the button is held for. although the button can be pressed repeatedly, for a single pulse each press.

I`m thinking about using a 555 timer to time the short pulse, and a SR latch to set the timer?

So the button press sets the latch, with outputs a pulse for say 1ms - upon which the timer resets the latch, and disables the button input, until the button is released.

Either can you help with that, as I cant get my head round it, or am I barking up the wrong tree?
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,699
Joined
Nov 17, 2011
Messages
13,699
The term to look for is "monostable multivibrator" or "one shot". A 555 is a suitable chip to do this. No SR latch is required.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Be aware that your switch may bounce. If the duration of the required pulse is short, the switch bounce may cause multiple pulses to be generated. For longer pulse duration, the bouncing may elongate the pulse by the duration of the bouncing.

One fix is to have a second monostable (with a duration longer than any expected bouncing) trigger the monostable that produces the desired length pulses. The first (longer period) monostable is triggered by the switch (and limits the rate at which you can press the button) while the second produces an accurate and repeatable short duration pulse.
 

Simon_m74

Jul 25, 2016
31
Joined
Jul 25, 2016
Messages
31
Thanks for that.
I tested the VR machine (that I need the `credit button for`.
The output will connect to the left joystick port of an Amiga computer, on the `joystick-back` pin.

I tested simply, by plugging in a joystick, and pulling back : A credit accepted!

So I`ll now build at least for of these, to go onto my 4 VR machines.
 
Top