# Help with coding using VL53L0X V2 laser ToF on microbit

**URL:** https://forum.makecode.com/t/help-with-coding-using-vl53l0x-v2-laser-tof-on-microbit/4252
**Category:** micro:bit extensions
**Created:** [November 3, 2020, 2:32am UTC](https://forum.makecode.com/t/help-with-coding-using-vl53l0x-v2-laser-tof-on-microbit/4252 "2020-11-03T02:32:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://forum.makecode.com/u/pyc)
#### Post date: [November 3, 2020, 2:32am UTC](https://forum.makecode.com/t/help-with-coding-using-vl53l0x-v2-laser-tof-on-microbit/4252/1 "2020-11-03T02:32:19Z")

</div>

Hi guys! I’m working on using VL53L0X V2 laser ToF on the Microbit to measure distance. But I don’t know how to get it working. references I’ve found were mostly on Arduino boards. Could anyone help me out please?

---

<div class="post-metadata">

### Author: ![perven](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@perven](https://forum.makecode.com/u/perven)
#### Post date: [March 19, 2021, 11:32pm UTC](https://forum.makecode.com/t/help-with-coding-using-vl53l0x-v2-laser-tof-on-microbit/4252/2 "2021-03-19T23:32:02Z")

</div>

I found under → extensions / ToF  
–\>range-vI53I0x  
Tinkercademy Makecode Package  
for the VL53LOX Time-of-Flight

Under the new Category “rangefinder” I found “initialise” and " distance (in cm)"

But an Error acourt by “initialise”  
I could not find an solution…

---

<div class="post-metadata">

### Author: ![julien3108](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/julien3108/32/6431_2.png) [@julien3108](https://forum.makecode.com/u/julien3108)
#### Post date: [June 21, 2022, 5:01pm UTC](https://forum.makecode.com/t/help-with-coding-using-vl53l0x-v2-laser-tof-on-microbit/4252/3 "2022-06-21T17:01:05Z")

</div>

Hi

Did you make a correct connection ?

SCL → pin 19 (Micro:bit)  
SDA → pin 20  
VDD → 3V  
GND → 0V  
XSHUT - \> 3V  
INT → Not connected

Julien
