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....
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 2 seconds, 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 OFF / low.
I've thought of using bistables, AND gates & counters, but am now really pulling my hair out....
Any ideas 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....
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 2 seconds, 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 OFF / low.
I've thought of using bistables, AND gates & counters, but am now really pulling my hair out....
Any ideas would be greatly appreciated.
Thanks all
Last edited: