I have a 12V pump with an external push button switch. I want to use the existing switch to control a time-delay relay, so the pump runs for about 20-30 seconds when the switch is pressed. It would be nice, if a press during the countdown caused the count to restart.
It has been suggested that I use a 2222A transistor, a resistor, a capacitor and a small relay (with a diode shunt). Use the button to charge the capacitor up instantly, then it slowly discharges, while holding the relay on through the transistor.
This seems nice and simple, and avoids using a 555.
Can anyone confirm that this is a sensible solution, and suggest ball-park values for the C & R?