I'm using a reed switch to measure rotational speed and am trying to debounce the input. The problem that I am encountering is that at low speeds the bouncing is occurring at about 200ms. While at higher speeds the genuine input also occurs around 200ms. So if I set a debounce interval of 200ms then I cut off the high speed input.
Does anyone know of a way to debounce based on previous inputs. Seen as directly preceding a false input the time difference is large. Whereas a genuine high speed input is preceded by another high speed input.
14:32:55.587 -> 2.25 dT / 26.69 RPM
14:32:58.967 -> 3.36 dT / 17.84 RPM
14:32:59.264 -> 0.30 dT / 196.73 RPM
14:33:02.886 -> 3.61 dT / 16.61 RPM
09:34:41.115 -> 0.38 dT / 157.86 RPM
09:34:41.368 -> 0.24 dT / 248.67 RPM
09:34:41.664 -> 0.30 dT / 202.06 RPM
09:34:42.072 -> 0.38 dT / 156.53 RPM