Motor mount encoder

Hello,

I bought a motor with an encoder attached to it. http://www.clrwtr.com/PDF/Accu-Coder/Ac … coders.pdf

I am trying to get the encoder to work with arduino. I want to relate the count to the rotation in angle. Is there some sample code out there that I can test with?

Thank you

http://playground.arduino.cc/Main/RotaryEncoders

I had to watch a video to figure out what this thing is. What are you building, if I may ask?

Incremental encoder: https://youtu.be/J4dIxnCuIpI

Absolute encoder: https://youtu.be/RiDyHaKtiMQ