I am planning on controlling an RC car motor and servo (Traxxas 2075) using the PCA9685 servo driver, and a traxxas ESC. (The driver is powered by a 4 x AA battery pack) I have connected my driver to the Xavier as follows (Bus 1):
GND Pin 6 -> Servo Driver (GND)
VCC Pin 2 -> Servo Driver (VCC – 5V)
SDA Pin 27 -> Servo Driver (SDA)
SCL Pin 28 -> Servo Driver (SCL)
But whenever I run the command
sudo i2cdetect -y -r 1
I get this result:
And everytime I try to run the example file from JetsonHacks (https://github.com/jetsonhacks/JHPWMDriver) I receive the error:
PCA9685 Write Byte error: 121PCA9685
Any ideas on why it is not connecting?
My mistake, I had the address set to 0x40 in this line:
PCA9685 *pca9685 = new PCA9685(0x40);
When the servo was actually connected at address 0x70.