I am trying to use a push button for a clock pulse, however it seems that the button's contact is not clean enough (even though new) to make a constant signal. The pulse is to drive a 4-bit counter. I want each time i press the button for the counter to count up one. Right now when i push the button, i get any number of random advances of the clock. I tried putting a cap and resistor on the clock input to try and hold the voltage during the button press, but this only helps a little. Maybe a larger capacitor? I tried a 1 uF and 10 uF, 10 seems to be better. Any circuits out there designed for this? Is there a better alternative?
Another way to approach this would be to create a button that could be high (5V) for say 1 sec. One press activates high for 1 sec, so then all of the jitter is irrelevant.
Thanks!