Measure the distance traveled and use encoders to get a 90 degree turn

Anyone knows how to calculate distance traveled and how to get a 90 degree turn by the jga25 motor.... :slight_smile:

Image- https://www.google.lk/search?q=jga25&client=tablet-android-archos&prmd=ivn&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjCkY3l1qrYAhXGLY8KHQmbDYEQ_AUIESgB&biw=600&bih=1024#imgrc=jh4Xz1dDCxDEgM:

How many pulses per shaft revolution is the encoder? Divide that by 4 = 90°.

edit: It looks like the encoder outputs 12 pulses per motor revolution. To get pulses per output shaft revolution, multiply 12 times the reduction ratio of your motor.

Here is a chart with the reduction ratios