View Single Post
  #2   Spotlight this post!  
Unread 18-02-2007, 12:16
BLP BLP is offline
Registered User
FRC #1943
 
Join Date: Feb 2007
Location: Israel
Posts: 2
BLP is an unknown quantity at this point
Re: Gear Tooth Sensor Help

Quote:
Originally Posted by Alan Anderson View Post
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