Hi I have another question, Sine in my country (VietNam) I cant not buy AMT102 encoder so can i replace by using another AB encoder with 600prr like attached picture?
Encoder specs:
NPN type
Voltage/: 5v-24v
PPR : 600p/r

Wire colour:
R : +
Bl : -
Gr : phase A
W : Phase B
Silver : Ground
Yes you can use a different encoder. I would want to test it to be sure. You would need to change the encoder mult value in the teensy sketch to match the PPR. currently the encoders are 1024 which for 200 steps per revolution is 5.12 for the mult value. So for a 600 PPR encoder you would change this line of code const float J1encMult = 5.12; to: const float J1encMult = 3;
@Chris Annin Thanks, as I understand for example my encoder resolution is 600ppr and micro step is set to 800 pulse per revolution then I need to set value =600*4/800 = 3.
In your explanation if resolution of encoder is 1024, micro step is full step so the value must be 1024*4/200 =20.48??? Or you mean 256*4/200 = 5.12?