View Single Post
  #2   Spotlight this post!  
Unread 14-01-2006, 14:31
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: Gear tooth sensor vs. Optical Encoders

Quote:
Originally Posted by Avarik
Also, can the gear tooth sensors sense the direction of the spin, or just velocity?
According to the datasheet, this sensor outputs a 45 us pulse for one direction and a 90 us pulse for the other. I think you can detect this difference with the uP.

If you only want to know the speed of rotation though, just the number of pulses in a fixed period of time is enough. A simplified version of the encoder code could count pulses (in an interrupt function) without worrying about the other input.
__________________
Don Reid