In order to keep track of the height of our manipulator, my team is using a BaneBots 36mm Gearbox Mount encoder attached to their 64:1, 36mm Planetary Gearmotor, RS-540 Motor. As we move the manipulator up, the encoder starts to count up, but then quickly goes down. Moving the manipulator down makes the encoder count down more slowly.
I have tried the encoder with two sets of code - the interrupts from the Quadratuer Encoders white paper and Kevin’s encoder code. In both cases, I am having the same problem. I am getting the encoder values by printing out the number every 26 loops.
Does anyone know what might be wrong with the encoder?