Search found 1 match

by eayars
Sat Dec 19, 2009 9:46 pm
Forum: Code
Topic: Arduino + rotary encoder
Replies: 8
Views: 39289

I don't think debouncing is the problem: more likely the detents on the switch are spaced one per complete cycle, and the code given counts changes in both lines. There are four changes per complete cycle, so that's why you get the 4 counts. What I've found works better is to run an interrupt off a ...