hey everyone,
I’m trying to test out my recently built sparkfun jetbot kit for the first time. I installed and cloned all the repo’s etc but hit a snag when i input:
“rosrun jetbot_ros jetbot motors.py”
and got this error:
Traceback (most recent call last):
File “/home/turkey/catkin_ws/src/jetbot_ros/scripts/jetbot_motors.py”, line 75, in
motor_driver = Adafruit_MotorHAT(i2c_bus=1)
File “/home/turkey/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_MotorHAT_Motors.py”, line 231, in init
self._pwm = PWM(addr, debug=False, i2c=i2c, i2c_bus=i2c_bus)
File “/home/turkey/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py”, line 59, in init
self.setAllPWM(0, 0)
File “/home/turkey/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py”, line 95, in setAllPWM
self.i2c.write8(self.__ALL_LED_ON_L, on & 0xFF)
File “/home/turkey/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py”, line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File “/home/turkey/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py”, line 268, in write_byte_data
self._device.write(data)
IOError: [Errno 121] Remote I/O error
Is this a connection problem? I have a micro-usb to usb connectiong the jetbot to the nano and qwic pHat on the IO pins of the nano. The motor driver and other proper connections are made according to sparkfun’s assembly documentation.
Anyone got any ideas? Thanks!