Page 1 of 1

VL53L1X ToF distance sensor - adapting to micropython

Posted: Fri May 25, 2018 10:13 am
by benjam
Hi guys,

I'm starting to experiment with the new VL53L1X sensor for which there is an Arduino library, and I'd like to port it to micropython.

https://github.com/sparkfun/SparkFun_VL ... no_Library

However I'm no expert and I have to learn a lot, and I'm using I2C to read/write to the correct registers.

It seems like someone wrote a library for the previous model of the sensor, the VL53L0X.
So if anyone is working on the new one please let me know as this would be useful.
Otherwise if I get somewhere I'm happy to share my code.

Thanks :)

Ben

Re: VL53L1X ToF distance sensor - adapting to micropython

Posted: Sun Sep 09, 2018 9:20 am
by s-light
hi benjam,

did you started experimenting with this in MicroPython?

i have found a python librarie - but have not jet looked at what it needs to get this ported to MicroPython..
https://github.com/pimoroni/vl53l1x-python

and also what it takes to port it to Adafruit CircuitPython
- i think they have a different hardware-abstraction layer -
but have not read the Design Guide (https://circuitpython.readthedocs.io/en ... guide.html) yet..

i will post back here if i get something going..

sunny greetings
stefan

Re: VL53L1X ToF distance sensor - adapting to micropython

Posted: Sun Sep 09, 2018 5:22 pm
by jickster
I don’t have any of the mentioned hardware but I have done a lot with the C-layer of micropython.

Quote me if you need help with C-functionality.


Sent from my iPhone using Tapatalk Pro

Re: VL53L1X ToF distance sensor - adapting to micropython

Posted: Wed Oct 10, 2018 4:50 am
by devnull
The VL530LX predecessor thread is here: viewtopic.php?t=3358#p19605

@deshipu has created a library for the VL530LX but it does not appear to work for the VL531LX (https://bitbucket.org/thesheep/micropyt ... vl53l0x.py)

Tindie are selling these at only USD10.00 each (https://www.tindie.com/products/blkbox/ ... r-arduino/) which is where I got mine, which is incredible good value given they have a range of up to 4 meters, but I have been unable to get them to work !

Re: VL53L1X ToF distance sensor - adapting to micropython

Posted: Fri Feb 14, 2020 2:52 pm
by csebe
Has there been any updates? I'm using the same sensor with a v1.1 Pyboard. I watched the videos on how to write a C-wrapper in Micropython, but I don't know how I would have to write it when I have multiple .c and .h files. Could anyone suggest a way to get started?

Re: VL53L1X ToF distance sensor - adapting to micropython

Posted: Fri Feb 14, 2020 11:09 pm
by OutoftheBOTS_
I have used this sensor with micropython but it was quite a while ago now. I did defiantly use
@deshipu has created a library for the VL530LX but it does not appear to work for the VL531LX (https://bitbucket.org/thesheep/micropyt ... vl53l0x.py)
and it worked for me.

I looked through my videos and found a video that I made to send to someone that I was helping use the sensor. https://www.youtube.com/watch?v=jLUuA2j ... e=youtu.be