VL53L0X V2 Laser ToF Distance Coding

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
Posts: 1
Joined: Tue Nov 03, 2020 2:11 am

VL53L0X V2 Laser ToF Distance Coding

Post by pyc_18 » Tue Nov 03, 2020 2:14 am

Hi guys, has anyone done a coding program using L53L0X V2 Laser ToF Distance on the microbit? I could only get my hands on the code used on Arduino Boards.

User avatar
Posts: 2459
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: VL53L0X V2 Laser ToF Distance Coding

Post by jimmo » Tue Nov 03, 2020 3:43 am

It's an I2C sensor so it should be fairly straightforward to adapt other I2C drivers written for micro:bit.

https://github.com/johnbryanmoore/VL53L ... VL53L0X.py
for a reference Python implementation. You'll need to modify this to use the micro:bit I2C API documented here: https://microbit-micropython.readthedoc ... 1/i2c.html

Posts: 2
Joined: Sun Jun 13, 2021 12:31 pm

Re: VL53L0X V2 Laser ToF Distance Coding

Post by julienn » Tue Jun 21, 2022 2:02 pm


You can go there.

Unfortunately, the tutorial is only available in French. I will write a blog in English soon.


Post Reply