Open rafununu opened 5 years ago
I can confirm this, except mine is multiplied by 4.
Hi, see https://github.com/PaulStoffregen/Encoder/issues/26 - this behavior is normal with certain types of rotary encoders.
It works pretty fine for me except that it returns pulses by pairs, so I can't stop the encoder on an impair value. That is for sure due to the cheap chinese encoders I use, otherwise I think somebody else would have report about that much before.
Anyway, this isn't a real issue, I simply divide the return number by 2 !
The Arduino librairie is still 1.41.
Thanks all for your work.
Cheers.
I pretty new to coding and can't figure out how to divide the return value, could you help me out? Thanks!
myEnc.read() / 2;
It works pretty fine for me except that it returns pulses by pairs, so I can't stop the encoder on an impair value. That is for sure due to the cheap chinese encoders I use, otherwise I think somebody else would have report about that much before.
Anyway, this isn't a real issue, I simply divide the return number by 2 !
The Arduino librairie is still 1.41.
Thanks all for your work.
Cheers.