i am very new to electrical engineering and designing circuits and there is a particular project that i am working on that involves using a switch and a 555IC timer.
So basically my desired output logic is as follows (Note: I am using 2 different LED, green and red and an infrared sensor that acts as a switch)
1) Using an infrared switch, when a object is nearby, it closes the switch which starts the 555 timer. (Green LED lights up)
2) 555 timer counts down 5 seconds which triggers the 2nd 555 timer which then causes the red LED to light up.
3) Green LED turns off and 2nd 555 timer counts down 10 seconds and then RED LED switches off and the circuit resets. (where both green and red LEDs are off)
(For this circuit diagram please ignore Timer #1 and #2)
However, my circuit only works if the "start" is closed then opened immediately (i.e i close the switch and then open again). If i allow the switch to be permanently shorted, the green LED will be lighted and it does not trigger the 555 timer.
Hence, I am wondering if there is a certain kind of modification i can make to the infrared sensor that acts like a "button" that can close the switch and then open it immediately to trigger the 555 timer even if the object is still near the infrared sensor.