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:
- NVIDIA Jetson nano device with JetPack version 4.6.1
- Python version 3.6.9
- Using
adafruit_servokit
library for controlling the PCA9685 - The PCA9685 module https://amzn.eu/d/icNEQWg
- Tutorial followed : GitHub - JetsonHacksNano/ServoKit: Install the Adafruit ServoKit Circuit Python library on the NVIDIA Jetson Nano Developer Kit
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!