I'm using an arduino to count and/or measure pulses (still working on which) to calculate the speed of a bicycle wheel used on an indoor trainer. The roller the wheel spins has 4 equal spaced gaps on a cylinder that creates the pulses as it spins (3.3v peak).
As I've found, in practice this works but is not a clean stable speed reading. This looks like it might be caused by the slow and noisy rise of the pulse, as when I've used a frequency generator to send nice relatively clean pulses to the arduino, the speed reads correctly and is stable. From what I've read a schmitt trigger sounds like a solution, but all the through hole parts seem to be 14 or 16 pin packages which seems overkill for just 1 signal.
I'm really not an electronics guy, but have bodged a circuit together that seems to work for my needs, just looking for advice on a part which would be best suited for this.
Thanks.