User Manual

printf "\\x$(printf "%x" $1)"
}
stty raw -F $DEVICE
{
byte 0x84
byte $CHANNEL
byte $((TARGET & 0x7F))
byte $((TARGET >> 7 & 0x7F))
} > $DEVICE
This script can also be run on Windows, but since Windows does not have bash installed by default it
is easier to use UscCmd.
5.h.5. Arduino library
We provide an Arduino library [https://github.com/pololu/maestro-arduino] that makes it easier to control
Maestro Servo Controllers with an Arduino [https://www.pololu.com/category/125/arduino]. The library
implements all of the serial commands available on the Maestro controllers and supports all three sub-
protocols (Compact, Pololu, and MiniSSC). It also provides a number of example sketches, including
ones that show how to:
Control servos
Smoothly control servo movement with acceleration and speed limits
Control Maestro scripts
Read inputs and receive feedback from the Maestro
Control the PWM output available on Mini Maestros
Pololu Maestro Servo Controller User’s Guide © 2001–2017 Pololu Corporation
5. Serial Interface Page 65 of 99