[miroslavus] hasn’t had much luck with rotary encoders. The parts he has tested from the usual sources have all been problematic either mechanically or electrically, resulting in poor performance in his projects. Even attempts to deal with the deficiencies in software didn’t help, so he did what any red-blooded hacker would do — he built his own rotary encoder from microswitches and 3D-printed parts.
We know what you’re thinking: [miroslavus] hasn’t built a true encoder. There’s no attempt to encode the angular position of the shaft, nor is any information about the speed or direction of the shaft’s rotation captured. …read more http://pje.fyi/QGzC8P