Error that occurs when running jetracer with jetson orin nano (jetpack6.1 or 6.2)

Hi.

I want to run Jetracer on Jetson Orin Nano, but when I cloned it from github provided by waveshare and executed basic_motion.ipynb from juoyter notebooks, the following error was output. Here is the code I executed: from jetracer.nvidia_racecar import NvidiaRacecar

car = NvidiaRacecar()

Please let me know how to resolve these errors.

thank you

OSError Traceback (most recent call last)
File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_busdevice-5.2.10-py3.8.egg/adafruit_bus_device/i2c_device.py:175, in I2CDevice.__probe_for_device(self) 174 try:–> 175 self.i2c.writeto(self.device_address, b"") 176 except OSError: 177 # some OS’s dont like writing an empty bytesting… 178 # Retry by reading a byte
File /usr/local/lib/python3.8/dist-packages/Adafruit_Blinka-8.50.0-py3.8.egg/busio.py:215, in I2C.writeto(self, address, buffer, start, end) 214 return self._i2c.writeto(address, memoryview(buffer)[start:end], stop=True)–> 215 return self._i2c.writeto(address, buffer, stop=True)
File /usr/local/lib/python3.8/dist-packages/Adafruit_Blinka-8.50.0-py3.8.egg/adafruit_blinka/microcontroller/generic_linux/i2c.py:60, in I2C.writeto(self, address, buffer, start, end, stop) 59 end = len(buffer)—> 60 self._i2c_bus.write_bytes(address, buffer[start:end])
File /usr/local/lib/python3.8/dist-packages/Adafruit_PureIO-1.1.11-py3.8.egg/Adafruit_PureIO/smbus.py:303, in SMBus.write_bytes(self, addr, buf) 302 self._select_device(addr)–> 303 self._device.write(buf)OSError: [Errno 95] Operation not supported

During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_busdevice-5.2.10-py3.8.egg/adafruit_bus_device/i2c_device.py:181, in I2CDevice.__probe_for_device(self) 180 result = bytearray(1)–> 181 self.i2c.readfrom_into(self.device_address, result) 182 except OSError: 183 # pylint: disable=raise-missing-from
File /usr/local/lib/python3.8/dist-packages/Adafruit_Blinka-8.50.0-py3.8.egg/busio.py:205, in I2C.readfrom_into(self, address, buffer, start, end) 204 buffer = memoryview(buffer)[start:end]–> 205 return self._i2c.readfrom_into(address, buffer, stop=True)
File /usr/local/lib/python3.8/dist-packages/Adafruit_Blinka-8.50.0-py3.8.egg/adafruit_blinka/microcontroller/generic_linux/i2c.py:67, in I2C.readfrom_into(self, address, buffer, start, end, stop) 65 end = len(buffer)—> 67 readin = self._i2c_bus.read_bytes(address, end - start) 68 for i in range(end - start):

File /usr/local/lib/python3.8/dist-packages/Adafruit_PureIO-1.1.11-py3.8.egg/Adafruit_PureIO/smbus.py:170, in SMBus.read_bytes(self, addr, number) 169 self._select_device(addr)–> 170 return self._device.read(number)OSError: [Errno 5] Input/output error

During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
Cell In[1], line 3 1 from jetracer.nvidia_racecar import NvidiaRacecar----> 3 car = NvidiaRacecar()
File /usr/local/lib/python3.8/dist-packages/jetracer-0.0.0-py3.8.egg/jetracer/nvidia_racecar.py:17, in NvidiaRacecar.init(self, *args, **kwargs) 15 def init(self, *args, **kwargs): 16 super(NvidiaRacecar, self).init(*args, **kwargs)—> 17 self.kit = ServoKit(channels=16, address=self.i2c_address1) 18 self.motor = ServoKit(channels=16, address=self.i2c_address2) 19 self.motor._pca.frequency = 1600
File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_servokit-1.3.18-py3.8.egg/adafruit_servokit.py:89, in ServoKit.init(self, channels, i2c, address, reference_clock_speed, frequency) 87 if i2c is None: 88 i2c = board.I2C()—> 89 self._pca = PCA9685( 90 i2c, address=address, reference_clock_speed=reference_clock_speed 91 ) 92 self._pca.frequency = frequency 94 self._servo = _Servo(self)

File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_pca9685-3.4.16-py3.8.egg/adafruit_pca9685.py:150, in PCA9685.init(self, i2c_bus, address, reference_clock_speed) 143 def init( 144 self, 145 i2c_bus: I2C, (…) 148 reference_clock_speed: int = 25000000, 149 ) → None:–> 150 self.i2c_device = i2c_device.I2CDevice(i2c_bus, address) 151 self.channels = PCAChannels(self) 152 “”“Sequence of 16 PWMChannel objects. One for each channel.”“”
File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_busdevice-5.2.10-py3.8.egg/adafruit_bus_device/i2c_device.py:62, in I2CDevice.init(self, i2c, device_address, probe) 59 self.device_address = device_address 61 if probe:—> 62 self.__probe_for_device()
File /usr/local/lib/python3.8/dist-packages/adafruit_circuitpython_busdevice-5.2.10-py3.8.egg/adafruit_bus_device/i2c_device.py:184, in I2CDevice.__probe_for_device(self) 181 self.i2c.readfrom_into(self.device_address, result) 182 except OSError: 183 # pylint: disable=raise-missing-from–> 184 raise ValueError(“No I2C device at address: 0x%x” % self.device_address) 185 # pylint: enable=raise-missing-from 186 finally:
187 self.i2c.unlock()

ValueError: No I2C device at address: 0x40

Suggest to file your issue at JetRacer github. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.