Hi,
For some time I have had problems with the Quadrature encoder of an 18F2431. I'll point out that the opto disk is home made, and because of this thought it must be my fault. I've re-wired it with each output wired with a screened cable grounded only at the circuit end. The opto disk is set to 4x update mode, so 1/count for each change. The opto disk has 9Black/9clear segment, and geared 100:1 so 4x9x100 = 3600.
I've run it oscillating fast and slow, passing zero and not passing zero, checking on the error amount, but today I found a pattern. For every full turn of the output, approx 1.7 degrees is added on or subtracted depending which way the output is running, and no other errors.
Can anyone shed any light on this please?
Camerart.
For some time I have had problems with the Quadrature encoder of an 18F2431. I'll point out that the opto disk is home made, and because of this thought it must be my fault. I've re-wired it with each output wired with a screened cable grounded only at the circuit end. The opto disk is set to 4x update mode, so 1/count for each change. The opto disk has 9Black/9clear segment, and geared 100:1 so 4x9x100 = 3600.
I've run it oscillating fast and slow, passing zero and not passing zero, checking on the error amount, but today I found a pattern. For every full turn of the output, approx 1.7 degrees is added on or subtracted depending which way the output is running, and no other errors.
Can anyone shed any light on this please?
Camerart.