Page 1 of 1

VL53L1X

Posted: Mon Jul 02, 2018 6:25 pm
by devnull
Just wondered whether anyone has succeeded in writing a driver for this mini lidar ?

I have tried the code written by deshipu for the VL53L0X which starts but fails at getting spad_info:

Code: Select all

>>> from machine import Pin, I2C
>>> i2c = I2C(scl=Pin(5), sda=Pin(4), freq=400000)
>>> i2c.scan()
[41]
>>> from vl53l0x import VL53L0X
>>> v = VL53L0X(i2c)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/vl53l0x.py", line 36, in __init__
  File "/lib/vl53l0x.py", line 96, in init
  File "/lib/vl53l0x.py", line 252, in _spad_info
TimeoutError: 
I don't have my logic analyser with me so I can't debug the signals, but are hoping that someone else may have already done this ??

Re: VL53L1X

Posted: Sat Mar 21, 2020 11:50 am
by Alvinmb
Did you find solution or cause for the spad_info error?

Re: VL53L1X

Posted: Fri Apr 24, 2020 10:40 am
by Stino
Hi,

I also got stuck with the same errors.
Any luck on omitting them?

The i2c bus scan on my side reveals no issues or faulty data.
Clueless at the moment...

Kindest regards,

Stijn