Last Updated: 08/10/2021

VL53L0X V2 Time-of-Flight Laser Distance Sensor

Components >> VL53L0X V2 Time-of-Flight Laser Distance Sensor

VL53L0X V2 Time-of-Flight Laser Distance Sensor

VL53L0X V2 Time-of-Flight Laser Distance Sensor

VL53L0X size

VL53L0X V2 Time-of-Flight Laser Distance Sensor available from Ebay for about £4.50

The unit gives a distance reading between 30mm and 1250mm (based on my tests).

As can be seen from the image above it is very small.

VL53L0X Review

Very accurate between 30mm and 1250mm range (based on my real world tests).

Narrower beam than an unltrasonic sensor (from my real world experiments).

Very fast.

Small size means it can be placed in small locations.

No issues with interferance between units (unlike the unltrasonic distance sensors that can interfere with eachother).

I2C interface means multiple units can be run at the same time, however this is not without issues.

The I2C address needs to be set in software unless using the default address. Units need to be set in sequence and will all need the XShut pin connected to an Arduino pin when setting the address.

The library uses a lot of memory. An UNO will report memory issues when connecting 2 units. This means if you want to run multiple units you will need to use a Mega 2560 or even something like and ESP32.

Connections

VCC to 5V
Gnd to Gnd
SCL to SCL
SDA to SDA

XSHUT will need to connect to a digital pin if using multiple units.


 

Code


In the Arduino Libraty manager do a search for VL53L0X. I used the Adafruit_VL53L0X library and used their examples for testing.

There are other libraries avaialble and some seem to have the ability to detect gestures however all of them seem to be about the same size.

 

Additional Resource Links

 

Comments


This site has been designed to be child friendly, this means that comments cannot be added to videos or directly to the site.
To add a comment or ask a question please email the address in this image: and use VL53L0X V2 Time-of-Flight Laser Distance Sensor as a reference.