adafruit / Adafruit_CircuitPython_VL6180X

CircuitPython module for the VL6180X distance sensor.
MIT License
11 stars 14 forks source link

Slow connection init to VL6180X on Nvidia Jetson #29

Open yurikleb opened 1 year ago

yurikleb commented 1 year ago

I'm experiencing slow initial connection time (above 10 sec) with the VL6180X TOF sensor on the Nvidia Jetson Dev Kits (both Nano and Xavier NX).

Once connected everything works fine, but sensor = adafruit_vl6180x.VL6180X(i2c) takes above 10 seconds to execute.

I have installed the library via: sudo pip3 install adafruit-circuitpython-vl6180x

Running i2cdetect works quite fast. Also once in several attempts, the connection is established quickly without delay. What could be causing this such slow sensor init?

I opened a discussion on the forums but could not find a solution: https://forums.adafruit.com/viewtopic.php?p=843163#p843163 https://forums.adafruit.com/viewtopic.php?p=968714

Hommus commented 1 year ago

Encountering the same issue, I'm keen to hear how this is solved!

yurikleb commented 1 year ago

Did anyone had a chance to investigate further?

yurikleb commented 1 year ago

is there maybe an alternative library we could try and use for now?