See Electronotes #73, p. 11, for a reliable switch debounce circuit that
uses 1/6 of a 4010 CMOS chip. A 1K resistor goes from the input to
output, creating a positive feedback loop. (Should work with a 10K or
larger resistor, too.) Hook the center of a toggle switch to the
input. The switch selects +Vcc or ground (the 4010 power rails). The
result is a flip-flop that eliminates all bounce with no delays. More
reliable than using the capacitor, but it does require a chip. You can
make six debouncers with one chip and six resistors (plus a bypass cap
on the chip for good measure).
Richard Brewster
http://www.pugix.com
sasami@... wrote:
uses 1/6 of a 4010 CMOS chip. A 1K resistor goes from the input to
output, creating a positive feedback loop. (Should work with a 10K or
larger resistor, too.) Hook the center of a toggle switch to the
input. The switch selects +Vcc or ground (the 4010 power rails). The
result is a flip-flop that eliminates all bounce with no delays. More
reliable than using the capacitor, but it does require a chip. You can
make six debouncers with one chip and six resistors (plus a bypass cap
on the chip for good measure).
Richard Brewster
http://www.pugix.com
sasami@... wrote:
> What you are experiencing is called switch bounce. Try wiring a 10n (0.01)
> from the input to ground.
>
> Ken
>
>