hi C,
I will look at your program, I have not used the 18F2431 so I will have to study the pdf doc's.
You should have the two quadrature signals coming out of your opto interrupter logic.
The Index mark on the encoder disc is important, usually I have it so that when the scanner is pointing due North the Index mark is detected.
I used an optical encoder with 900 counts per rev of the disk, fed this thru an edge detector to give 3600 counts per rev, so I had 0.01 degree resolution.
The encoder Index mark is detected at 000.0 degrees, so the user set up the system to point due North if he wanted Azimuth bearing, when the Index mark was at 000.0 degree.
The problem you have is that you have attached the low resolution encoder to the motor shaft which rotates 10 times faster than the scanner head, so an Reset index mark is meaningless.
Is there any position on the actual scanner head that you could place an Index detector.?
E
I will look at your program, I have not used the 18F2431 so I will have to study the pdf doc's.
You should have the two quadrature signals coming out of your opto interrupter logic.
The Index mark on the encoder disc is important, usually I have it so that when the scanner is pointing due North the Index mark is detected.
I used an optical encoder with 900 counts per rev of the disk, fed this thru an edge detector to give 3600 counts per rev, so I had 0.01 degree resolution.
The encoder Index mark is detected at 000.0 degrees, so the user set up the system to point due North if he wanted Azimuth bearing, when the Index mark was at 000.0 degree.
The problem you have is that you have attached the low resolution encoder to the motor shaft which rotates 10 times faster than the scanner head, so an Reset index mark is meaningless.
Is there any position on the actual scanner head that you could place an Index detector.?
E
