Quote:
|
Originally Posted by nehalita
okay, i want to know what encoders/pots/gyros everyone else is using:
optical or mechanical?
what type?
from where?
and if possible, how much?
thanks!
|
Optical. It's worth the extra money. I bought two kinds of Grayhill encoders from Digikey, $5 mechanical encoders and $20 optical encoders. If you're constantly spinning the encoder, it'll probably keep up with the number of revolutions. However, I found out on a click-by-click basis that the mechanical ones aren't as reliable. Using Kevin Watson's encoder code, I would get a printf of, say, 2. Then I would turn the encoder one click, and suddenly the count would be 12. This is no fault of the code, but rather of the encoder taking a bit of time to settle into place, thus making and breaking contact several times. I've found the optical encoders to be significantly more reliable, both when being constantly actuated, and when clicked slowly.