5.h. 0x92 & 0x93: Get Motor M0 & M1 Speed

<h4>Command 0x92 (146): <font color="blue">Get Motor M0 Speed</font></h4> <p>Compact protocol: <strong>0x92</strong><br/> Pololu protocol: <strong>0xAA, <em>device ID</em>, 0x12</strong></p> <h4>Command 0x93 (147): <font color="blue">Get Motor M1 Speed</font></h4> <p>Compact protocol: <strong>0x93</strong><br/> Pololu protocol: <strong>0xAA, <em>device ID</em>, 0x13</strong></p> <p>These commands return the present motor speeds, which can be useful in determining the current state of an accelerating motor or the speed that results from active current limiting. Please note that this command returns the speeds to which the qik is <em>trying</em> to set the motors, not necessarily their actual speeds. For example, if the qik is trying to drive a stalled motor at full speed, the returned speed might be 255 (0xFF) even though the actual motor speed is zero. To get a measure of actual motor speed, you would need to obtain external feedback, such as from an encoder.</p> <p>The values returned by these commands range from 0 to 127 in 7-bit mode and from 0 to 255 in 8-bit mode. The returned motor speed is zero if the associated motor is braking.</p>

Related Products

Pololu Qik 2s12v10 Dual Serial Motor Controller
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors