I finished writing up a project I've been working on - a simple cooking timer controlled only by a rotary encoder. Since the encoder is both noisy and has a 12 step clicky rotation, there were some interesting challenges writing software allowing for a good user experience.
I found that available grey code decoding code (working on two bit pairs) did not fit the bill, since I had to filter out mechanical noise without ignoring movement. In addition, I did not want to count "half rotations" as you can see towards the end of the vid.
You can check out the project page **broken link removed** - it has all the explanations about what I did and how I did it. Perhaps someone can find this useful or point out a better implementation.
Click the vid for glorious HD.
I found that available grey code decoding code (working on two bit pairs) did not fit the bill, since I had to filter out mechanical noise without ignoring movement. In addition, I did not want to count "half rotations" as you can see towards the end of the vid.
You can check out the project page **broken link removed** - it has all the explanations about what I did and how I did it. Perhaps someone can find this useful or point out a better implementation.
Click the vid for glorious HD.
Last edited by a moderator: