Reading over this thread got me thinking about a similar issue I have been having. Right now the horn for my bike is wired in such a way that it only beeps as long as the momentary switch is engaged. What I'd like to do is extend this so it sounds for roughly one second after the switch has been released. The factory circuit is a transistor driving an active buzzer and I want to keep all that, as is. I just want to disconnect the switch from that and feed it into a delay circuit which will then output a signal to the existing circuit.
The design rather simple. When the switch is depressed, the 9V battery (which I have modeled here with an internal resistance of 2Ω) charges a capacitor through a 1K resistor. Once released, the charge is bled off by potentiometer/resistor Rt. Meanwhile a comparator goes HI and engages the horn until the voltage falls below 1/2Vcc. That's basically it.

Now I don't have any comparators on hand. I was wondering if I can use an opamp instead? Otherwise, does everything look kosher?
The design rather simple. When the switch is depressed, the 9V battery (which I have modeled here with an internal resistance of 2Ω) charges a capacitor through a 1K resistor. Once released, the charge is bled off by potentiometer/resistor Rt. Meanwhile a comparator goes HI and engages the horn until the voltage falls below 1/2Vcc. That's basically it.

Now I don't have any comparators on hand. I was wondering if I can use an opamp instead? Otherwise, does everything look kosher?
