linear incremental scale

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
375
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,076
I have connected a incremental linear scale in QEI module 1 of DSPIC33EP512MU810 controller. if i move the scale i am getting pulses in increment of 1 but my qei module is 4x.

also the Repeat-ability of the pulses for a fixed linear distance is not same it fluctuates by 4 to 7 counts.

if i connect the same scale to DRO of the scale manufacturer i am getting exact pulses of for the fixed linear distance.

i have attached the wave form of the linear scale.


setup_qei(1,QEI_MODE_X4,QEI_FILTER_DIV_16,QEI_MODE_TIMER_INTERNAL,QEI_POS_LE_INT,QEI_POS_GE_INT);

COPMLIER USED IS PIC CCS
 

There's something wrong with the waveform, it's not the expected digital quadrature signal (50 % duty cycle, 90° degree phase shift). Scale wrongly connected?
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…