Quote:
|
Originally Posted by Avarik
I was wondering if anyone has tried using the gear tooth sensors from the KOP, and knows how well they work? I've used optical encoders before, and know those work well. So how does the gear tooth sensor compare, in terms of accuracy? If it matters, I'm planning on using one of these two sensors for robot speed and speed our launcher system is spinning.
Also, can the gear tooth sensors sense the direction of the spin, or just velocity?
And...while I'm at it...how does the accelerometer compare to these when trying to see robot velocity?
|
The gear tooth sensors work, but it very difficult to get the difference between forward and backwards rotation. As was said, the way to tell is the length of the pulse that is returned. The time in/out of an interrupt service routine is pretty long - especially if you have to save the floating point data area and the temp data areas.
I've been very successful using them to detect pulses, but the direction is very unreliable. In EasyC and WPILib they are currently just counting pulses. I hope to have a new version out soon that will count up and down for clockwise/counterclockwise.
Brad