Motor encoder to distance

Hi, could you please help me with the motor encoder, I know they have a built-in encoder and I would like to know how to pass that to the moving cm

Hello,

The distance a wheel travels in 360 degrees is its circumference, so in order to figure out each degree we can do

circumference/360

this gets us each individual degree, so when the wheel turns one degree, it will turn circumference/360, remember, this output is in the units of the input, so if you put in the wheel circumference in inches, it will output in inches, so make sure to put in the wheel circumference in cm in this case. We then can measure how far we traveled, doing

motorEncoderValueInDegrees * (circumferenceInCM/360)

Hope this helps!

-Blaziumm

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.