Calculate Speed with encoder

Hello,

I have a 70:1 Metal Gearmotor 37Dx70L mm with 64 CPR Encoder (Spur Pinion) and I am unsure how to tackle speed calculations. How would i approach it? So far i’ve connected both of the encoders and I can use the encoder library By Samuel S. to count. However, i only get around 450 per full rotation, which doesnt make sense as i would be expecting 4480 . Is there any example i could see?

Sorry for the newbie question.
Thank you for your help in advance!

Hello,

I am not familiar with the encoder library you are using. Could you give me a little more information on that? You could consider using the Encoder library by Paul Stoffregen as an alternative, as we have generally had good results with it.

-Ryan

After switching ive started to get good result with Paul’s library! Thank you. I am now able to calculate the speed but my question now is how to inverse it. E.g send via serial the desired speed in m/s and it to translate to power in the motors. I am using the DualVNH motor shield.

I’m aware it might be late :slight_smile:, but can you please share your working method for speed measurement?
Thank you!