7 responses to “Adding encoders to those cheap yellow motors”

  1. Rover 5: encoder speed control | Bajdi.com

    […] started with the same code as I had written for my other robot and changed it for 4 motors. Next step is to integrate this […]

  2. Mark_S

    super useful – thanks for the tips.

  3. Zx lee


    I am currently working with these cheap dc motors and need to obtain the position information of the robot. One of the method is to use quadrature encoder.

    Do you have any suggestion on how can I do that? From what I see from your article, each sensor only able to provide one signal output. However, for quadrature encoder, it requires two signal output that are 90 degree out of phase.

    Thanks in advance.

  4. Ammar

    Just to be clear, does this code measure the distance traveled? Or is it only for measuring the rpm of the motor?

    I have the same exact encoders and I attached them to the wheels of my robot. I am trying to measure the distance traveled.

  5. Yoav Roa

    Is it possible to calculate the angle the motor had spin with this Encoder

Leave a Reply