Quote:
Originally Posted by Alan Anderson
The GTS signal doesn't have a Phase B, so using it with code intended for quadrature encoders is not always going to work. Specifically, the first two inputs can deal with it because they only trigger on one edge of the signal, but the other four will trigger on both edges and think the encoder is moving slightly back and forth at one spot. Since there's no information on direction from the GTS, you'll always count up (or down, depending on defaults) no matter which way the gears are turning.
If you must use digital inputs 3-6, you'll have to remove a lot of the code in the interrupt service routine that deals with relationships between the two phases of a quadrature signal.
The digital inputs? There's only one digital signal from the GTS.
|
Oh yeah, was a typo hehe, I meant to a single input.
The reason I wanted the 3rd input is because the readme says they are better for getting position.
Anyway I got it to work but it counts only once every 3 teeth, it's really strange
