View Single Post
  #27   Spotlight this post!  
Unread 21-01-2007, 23:22
slloyd slloyd is offline
Registered User
AKA: Sonny
FRC #1221 (Nerbotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: CANADA -eh?
Posts: 20
slloyd is an unknown quantity at this point
2007 Gear Tooth Sensor (GTS) - does indicate direction

i just wanted to clear up a misconception, the GTS 2007 does indeed indicate the direction but in a manor different than the 2006.

reading the datasheet for the sensor,

http://www.allegromicro.com/datafile/0642.pdf

we see on page 10 that if the gear rotates past the sensor in a 'pin 1 to pin 4' direction, then the output produces a square wave pattern, about 50% duty cycle.

but

if the same wheel rotates past the same sensor the other direction, now pin 4 to pin 1, that same square wave pattern is produced BUT the signal is inverted!

now... who wants to provide the code for this

slloyd