Data Sheet
www.dimensionengineering.com/products/Sabertooth2x32
Otherwise they
will perform their normal voltage clamp
or brake behavior and ignore serial input.
R2: 2047
\r\n
This sets the speed ramping to the maximum amount.
At this setting, it will take the Sabertooth
approximately 8 seconds to go from a stop to full
speed.
Q1:
1
\r\n
By default the Q parameters control motor
freewheeling. Setting a positive value will disable the
motor channel.
Freewheeling and shutdown are different. In a
freewheel state the motor will act as though there is no
power applied and the motor leads are floating. This
makes the motor shaft easier to turn manually. In a
shutdown state, the motor will act as if there is no
power and the motor leads are connected together.
This makes the motor shaft harder to turn manually.
In user modes, the Q parameters are often used to
change the operation of the program or activate special
modes.
Note:
\r\n
is not visible in a terminal program, but must be included when using a function such as printf
to designate the end of the message.
Get Commands
Values can be read back from the inputs and outputs using the get command. Note that when reading
from the inputs, it will read according to the current pin configuration. The Sabertooth 2x32 will respond
back in the same format: the address, followed by a colon and a space, followed by the value and a
newline. Remember that when connected using USB, the get commands are always available, even if
you are using R/C or analog mode. This can be helpful for debugging.
Command
Result
Examples
M1: get
\r\n
M2: get
\r\n
Returns the duty cycle of the M1 or
M2 output, from -2047 for full reverse
to 2047 for full forward.
M1: get
\r\n
might return
M1: -875
\r\n
P1:
get
\r\n
P2: get
\r\n
Returns the duty cycle of the P1
output. -2047 is no output, and 2047
is full power. If the power output is set
up for voltage clamp or brakes, this
can use used to determine if the
brakes or output clamp is engaged.
P1: get
\r\n
might return
P1: -2047
\r\n
P2: get
\r\n
might return
P2: 1776
\r\n
S1:
get
\r\n
S2: get
\r\n
Returns the input value for the S1 or
S2 inputs. In USB mode, by default
these are set as analog inputs. In
packet serial mode, they are serial RX
and TX. By creating a user mode
S1:
get
\r\n
might return
S1: 0
\r\n
S2: get
\r\n