Reading linear optical encoder in arduino due

Hi,

I am building a linear motor. I am using a TA-200 optical linear encoder as a feedback device for the position of the motor. The optical encoder i am using have 8 pins (A+,A-,B+,B-,Z+,Z-, +5v and gnd). I want to take the encoder feedback in arduino due. Can you help me out with the pins that i can use in arduino and also code to read the optical linear encoder.

Thanks in advance :slight_smile:

Its a 5V differential output encoder, so you ideally need three 5V-capable differential line receivers, with 3.3V or
open-collector outputs.

In practice you may get away with just level converting the A+/B+ outputs with 1k/2k2 resistor dividers
(and Z+ if you need the index pulse).