Rotary Encoder to measure velocity