Chris,
Another quick question,
To update USER_MOTOR ENCODER_LINES in User.h, I checked my motor encoder which shows 4000 counts/revolution.
Then, what is the number of lines then? I'm confusing the relationship bet. these two terms.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Chris,
Another quick question,
To update USER_MOTOR ENCODER_LINES in User.h, I checked my motor encoder which shows 4000 counts/revolution.
Then, what is the number of lines then? I'm confusing the relationship bet. these two terms.
Let me verify, but I'm pretty sure USER_MOTOR_ENCODER_LINES = counts/revolution / USER_MOTOR_NUM_POLE_PAIRS
so you would set (1000).
This is the same as the Teknic LVSERVOMTR we use.
The way this is defined is that lines = counts / 4. Lines refers to the number of lines on the encoder disc and counts refers to the resultant quadrature count seen by the QEP module.