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
pyc_18
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
jimmo
Posts: 2262
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

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.

See
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

Post Reply