VL53L1X ToF distance sensor - adapting to micropython

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
benjam
Posts: 1
Joined: Fri May 25, 2018 10:06 am

VL53L1X ToF distance sensor - adapting to micropython

Post by benjam » Fri May 25, 2018 10:13 am

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

User avatar
s-light
Posts: 3
Joined: Sun Jun 21, 2015 8:18 am
Location: Germany, Nuremberg
Contact:

Re: VL53L1X ToF distance sensor - adapting to micropython

Post by s-light » Sun Sep 09, 2018 9:20 am

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

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: VL53L1X ToF distance sensor - adapting to micropython

Post by jickster » Sun Sep 09, 2018 5:22 pm

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

User avatar
devnull
Posts: 454
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: VL53L1X ToF distance sensor - adapting to micropython

Post by devnull » Wed Oct 10, 2018 4:50 am

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 !

csebe
Posts: 1
Joined: Tue Feb 11, 2020 10:55 am

Re: VL53L1X ToF distance sensor - adapting to micropython

Post by csebe » Fri Feb 14, 2020 2:52 pm

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?

OutoftheBOTS_
Posts: 784
Joined: Mon Nov 20, 2017 10:18 am

Re: VL53L1X ToF distance sensor - adapting to micropython

Post by OutoftheBOTS_ » Fri Feb 14, 2020 11:09 pm

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

Post Reply