Issue with ServoKit Initialization on Jetson Using PCA9685

Hello NVIDIA Jetson Community,

I’m currently working on a project where I need to control servo motors using a PCA9685 PWM driver board with my NVIDIA Jetson device. I’m using the adafruit_servokit library for this purpose.

The library imports without any issues, but I encounter a problem when I attempt to initialize the ServoKit. The command I use is kit = ServoKit(channels=16).
Import ing the librarie works fine : from adafruit_servokit import ServoKit
However, executing this line results in the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/adafruit_servokit.py", line 88, in __init__
    i2c = board.I2C()
  File "/home/harith/.local/lib/python3.6/site-packages/board.py", line 280, in I2C
    return busio.I2C(SCL, SDA)
  File "/home/harith/.local/lib/python3.6/site-packages/busio.py", line 32, in __init__
    self.init(scl, sda, frequency)
  File "/home/harith/.local/lib/python3.6/site-packages/busio.py", line 108, in init
    from microcontroller.pin import i2cPorts
  File "/home/harith/.local/lib/python3.6/site-packages/microcontroller/__init__.py", line 65, in <module>
    elif chip_id == ap_chip.JH71x0:
AttributeError: module 'adafruit_platformdetect.constants.chips' has no attribute 'JH71x0'

Some details about my setup:

I have tried updating the relevant libraries and ensuring all connections are correct, but the error persists. I am wondering if this is a compatibility issue with JetPack 4.6.1 or something else.

Has anyone else encountered this issue, or does anyone have any suggestions on how to resolve it? Any help or guidance would be greatly appreciated.

Thank you!

NVidia won’t be able to help you here since this is an issue in the Python scripts and has nothing to do with any NVidia stuff. Ask the author of that Python code (Adapfruit?) for help.

I simply decided to control them with an esp32 since it’s something I know well, I control them via the serial port and it works really well.
thanks for the answer tho.
Cheers

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