View Single Post
  #12   Spotlight this post!  
Unread 28-01-2006, 02:09
radicalnerd radicalnerd is offline
Registered Luser
FRC #0668 (Apes of Wrath)
Team Role: Programmer
 
Join Date: Dec 2005
Location: San Jose, CA
Posts: 12
radicalnerd is an unknown quantity at this point
Send a message via AIM to radicalnerd
Re: New Gear Tooth Sensor- Connection

has anyone had problems determining direction?

our code uses the interrupts on digital in 01/02 and two timers at 60us. when an interrupt occurs, it waits 60us then the timer interrupt makes it check the pin again. if the pin's still on then it's spinning one way, if it's not, then it's the other.

except the counter goes berserk.
does anyone have the same problems? +is this how anybody else is doing it?
[it might be that we're not disabling the timer like i swore i did... im gonna check that now =P]