5

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?

SamGibson
  • 17,231
  • 5
  • 37
  • 58
Kashif
  • 191
  • 2
  • 9
  • 1
    What do you mean by "switch is let-go"? The switch keeps being pressed for the whole time? – dim Jan 31 '17 at 20:49
  • 2
    Can you post a schematic? – Vince Patron Jan 31 '17 at 21:00
  • 1
    You want the LED to light for 5 seconds maximum when the button is pressed and to turn off when the button is released? – RoyC Jan 31 '17 at 21:08
  • @dim - I've re-phrased the question (correctly, I hope) to remove the awkward/ambiguous "let-go" to "released", so I think the question is at least understandable now. If the OP disagrees with my interpretation, then my edit can be rolled back. However I agree with your comment - as originally written, the question was a bit ambiguous. – SamGibson Jan 31 '17 at 21:10
  • Yes @dim the switch will be kept pressed the whole time – Kashif Jan 31 '17 at 21:15
  • Correct @RoyC Thats the idea – Kashif Jan 31 '17 at 21:15

1 Answers1

4

Connect the switch to the reset input of the 555, and connect the trigger through a small RC delay:

schematic

simulate this circuit – Schematic created using CircuitLab

The 555 is held in reset as long as the switch isn't pushed. When the switch is held in, the 555 goes through its normal timing cycle once, but it aborts if the switch is released early.

Dave Tweed
  • 168,369
  • 17
  • 228
  • 393