Components / Sensors / VL53L0X time-of-flight distance sensor

VL53L0X time-of-flight distance sensor

Laser distance sensor that measures up to about 2 m in a tiny package.

MeasuresDistance by time of flight (940 nm laser)
RangeUp to 2 m
AccuracyAbout ±3 % indoors
InterfaceI2C
SensorsReviewedMPN VL53L0XUsed in 19 projects
VL53L0X
In short

What is the VL53L0X time-of-flight distance sensor and what is it used for?

Laser distance sensor that measures up to about 2 m in a tiny package. Makers use it for robot distance, gesture detection.

How it works

A 940 nm laser sends short pulses and a SPAD detector times how long the light takes to bounce back.

Key specifications

Sensor specValue
MeasuresDistance by time of flight (940 nm laser)
RangeUp to 2 m
AccuracyAbout ±3 % indoors
InterfaceI2C
I2C address0x29
Supply voltage2.6 to 3.5 V (modules often 3.3 to 5 V)

Pinout

VIN3.3 to 5 V on most modules
GNDGround
SCLI2C clock
SDAI2C data
XSHUTShutdown, pull low to turn off
GPIO1Interrupt output

How to use it

Use the Pololu VL53L0X or Adafruit library. Every sensor starts at address 0x29, so to use several, hold all but one in shutdown with XSHUT, change its address, and repeat. Remove the protective film from the window.

Applications

Alternatives

Buy at

Common questions

What is the VL53L0X time-of-flight distance sensor used for?

In maker projects: robot distance, gesture detection.

How does the VL53L0X time-of-flight distance sensor work?

A 940 nm laser sends short pulses and a SPAD detector times how long the light takes to bounce back.

What voltage does the VL53L0X time-of-flight distance sensor need?

2.6 to 3.5 V (modules often 3.3 to 5 V).

How do I connect the VL53L0X time-of-flight distance sensor to an Arduino or ESP32?

I2C. Pins: VIN (3.3 to 5 V on most modules), GND (Ground), SCL (I2C clock), SDA (I2C data), XSHUT (Shutdown, pull low to turn off), GPIO1 (Interrupt output).

What can I use instead of the VL53L0X time-of-flight distance sensor?

VL53L1X long-range ToF sensor and HC-SR04 Ultrasonic Sensor.