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;