I have a simple 5 second Monostable 555 Timer circuit. Trigger Pin (#2) is connected to a momentary push switch. When it is pressed, the timer is started and LED stays on for 5 seconds.
What I want is that if the tactile switch is released during those 5 seconds, the timer should reset. I know, I need to ground PIN # 4 but how to do that when the switch is released?