Other Parts Discussed in Thread: HALCOGEN
I am using a 600PPR/2400CPR rotary quadrature encoder which outputs Channel A and Channel B quadrature outputs. It doesn't output any Index output.
I connected the Encoder Channel A to EQEP1_A and Encoder Channel B to EQEP1_B, also I grounded the EQEP1_I just to be sure.
When I run the code, in debug menu, the velocity remains 0.0 even when I rotate the encoder.
I modified the code to show me encoder position and the position is getting updated just fine, but the velocity remains zero.
I have the following doubts:
1) I set the UNIT_POSITION_X as
#define UNIT_POSITION_X 2400U
is that correct for my case?
2) What is the unit of the deltaT? And how is it generated?
3) What is the unit of velocity I am getting from the code? Why is it constantly 0 even when I constantly rotate the encoder?
I have attached my project here for reference https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/2210.EQEP_5F00_EDGE_5F00_CAPTURE.7z