Skip to content

Motor Encoder

Brian Keating edited this page Jun 25, 2016 · 2 revisions

I have two of these motors (recently replaced by a nicer version). Each has two encoder output channels, and you must use both in order to determine the direction of motion. That is what the node workspace/src/motor_driver/encoder does. It only uses the rising edges to increment the count, which means this node is only getting half of its potential resolution.

However, since the motor is gear 100:1, there are theoretically 3200 rises per revolution. I counted closer to 4200 in my testing. With my 93 mm wheels, this gives a disance on the order of 0.07 mm /tick.

Clone this wiki locally