THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
Use another AB rota...
 
Notifications
Clear all

Use another AB rotary encoder?

3 Posts
2 Users
0 Reactions
34 Views
Avatar of Minh Nguyen
(@minh-nguyen)
Active Member
Joined: 2 months ago
Posts: 8
Topic starter  

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


   
Quote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 532
 

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;


   
ReplyQuote
Avatar of Minh Nguyen
(@minh-nguyen)
Active Member
Joined: 2 months ago
Posts: 8
Topic starter  

@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?


   
ReplyQuote
Share:
Upload your Photo