
Command encoding:
0x99
Description:
This command causes a full hardware reset, and is equivalent to briefly driving the Motoron’s RST
pin low.
The Motoron’s RST pin is briefly driven low
by the Motoron itself as a result of this
command.
After running this command, we recommend waiting for at least 5 ms before you try to
communicate with the Motoron.
Get variables
Arguments
Motor:
a motor number, or 0 for general variables
Offset:
the address of the first variable to fetch
Length:
the number of bytes to fetch, from 1 to 32
Response
The requested bytes
Arduino
library
void getVariables(uint8_t motor, uint8_t offset, uint8_t length, uint8_t
* buffer)
Several functions with names starting with
get
Command encoding:
0x9A motor offset length
Description:
This command fetches a range of bytes from the Motoron’s variables, which are stored in the
Motoron’s RAM and represent the current state of the Motoron.
To fetch variables specific to a particular motor, set the
motor
argument to the motor number
(between 1 and the number of motors supported by the Motoron). To fetch general variables
applicable to all motors, set the
motor
argument to 0. The Motoron reports a protocol error if this
argument is invalid.
The
offset
argument specifies the location of the first byte you want to fetch. The
length
argument
specifies how many bytes to read. Each variable, along with its offset and size, is documented in
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
9. Command reference
Page 57 of 67