DIY Rotary Encoder. How to Build a Rotary Encoder Arduino and Photo sensors.
DIY Rotary Encoder. How to Build a Rotary Encoder Arduino and Photo sensors.
We have written a tutorial for Rotary Encoders using a Microchip microcontroller but now would be a good time to make an Arduino UNO version.
Sparkfun Rotary Encoder
With a rotary encoder we have two square wave outputs (A and B) which are 90 degrees out of phase with each other. The number of pulses or steps generated per complete turn varies. The Sparkfun Rotary Encoder has 12 steps but others may have more or less. The diagram b