New answers tagged

0

The signal is probably "bouncing" between HIGH and LOW instead of performing a clean edge, just like it happens with buttons. Two simple solutions: Hardware solution: use a schmidt-trigger instead of a comparator Software solution: define a dead-time for the signal aquisition (disable the interrupt when the desired edge has been detected and enable it ...


Top 50 recent answers are included