Is there some way to handling pikes in the input signal when working with interrupts?
I have a digital sensor that is low when not detecting and high when detecting. The arduino is counting the objects. When using a analogue reading i can just not count if the number of sampling (when high) is under a specific number. But using interrupt, counting every time the signal goes from high to low or low to high, will always counts the peaks (with just one or two samplings). Is there any way of filtering that out changing just the software? Those peaks has nothing to do with interferences and is only related to the badly shaped object, so changing the hardware or peripheral (such as cables etc.) won't solve my problem (I mean, maybe I need to change the senors, but that's a later problem in that case).