Interesting problem
:
I need to create a latching output from the 'double-click' of a momentary push-button switch, but only within a fixed time period, say 2 seconds....
Think of double-clicking a mouse button - you must do it within a fixed period of time for the action to take place.
Here's the idea :
1/ A momentary switch is pressed once.
2/ After pressing the switch, a timer starts, with a duration of 2 seconds.
3/ If no further switch press is detected within the 2 second limit, no further action is taken - the output of the latch remains OFF / low.
4/ If the switch IS pressed again before the 2 second time limit is reached, the output is latched ON / high.
5/ A further single switch press simply resets the latch output to it's OFF / low state.
I've thought of using 555's, AND gates & counters, but am now really pulling my hair out....
Any circuit suggestions / sketches or tips would be greatly appreciated.
Thanks all
I need to create a latching output from the 'double-click' of a momentary push-button switch, but only within a fixed time period, say 2 seconds....
Think of double-clicking a mouse button - you must do it within a fixed period of time for the action to take place.
Here's the idea :
1/ A momentary switch is pressed once.
2/ After pressing the switch, a timer starts, with a duration of 2 seconds.
3/ If no further switch press is detected within the 2 second limit, no further action is taken - the output of the latch remains OFF / low.
4/ If the switch IS pressed again before the 2 second time limit is reached, the output is latched ON / high.
5/ A further single switch press simply resets the latch output to it's OFF / low state.
I've thought of using 555's, AND gates & counters, but am now really pulling my hair out....
Any circuit suggestions / sketches or tips would be greatly appreciated.
Thanks all