
Target brake amount
Category
motor-specific
Offset
4
Type
unsigned 16-bit
Range
0 to 800
Default
0
Command
Set braking
Set braking now
Coast now
Arduino library
void setBraking(uint8_t motor, uint16_t amount)
void setBrakingNow(uint8_t motor, uint16_t amount)
void coastNow()
uint16_t getTargetBrakeAmount(uint8_t motor)
This is the desired amount of braking to apply to the motors when the
is 0. A value
of 0 corresponds to full coasting, while a value of 800 corresponds to full braking.
Due to hardware limitations, this amount of braking might not necessarily be applied when the
current speed of the motor reaches zero.
For the Motoron M3S256 and M3H256: this type of Motoron is only capable of full coasting and
full braking, and it can only use coasting if it coasts all the motors at once. Therefore, if the current
speed of any of the motors is non-zero, or any of the motors has a non-zero target brake amount,
the M3S256/M3H256 will not use coasting, and will instead use full braking for any motor whose
current speed is zero. Also, the motor outputs might be inoperative due to inadequate VIN power
or a motor fault, even if the Motoron is trying to apply full braking.
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
8. Variable reference
Page 43 of 67