Accurately Counting Algorithm of Incremental Rotary Encoder
Yan Dai, Jing Shu Wang, Ming San Xu, Guo Fu Lian · Advanced materials research · 2012
Base on the structure of the mechanical rotary encoder, the characteristics of the glitches and the effective waveform are analyzed. A new algorithm for removing the glitches and accurately counting is introduced. The core idea of the algorithm is to check the output of the phase-lag part when the output of the phase-advance port changes. This algorithm can accurately remove the glitches form the signal and count exactly. This method for glitches removing is very convenient, without additional cost and efficient for rapid rotation.