

The VL53LXX-V2 is a time-of-flight (ToF) distance sensor manufactured by Arduino. It utilizes advanced laser technology to measure distances with high accuracy and speed. This sensor is capable of measuring distances ranging from 30 mm to 2 meters, making it ideal for applications requiring precise and reliable distance measurements.








The VL53LXX-V2 is designed to deliver high performance in a compact form factor. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 2.6 V to 3.5 V |
| Communication Interface | I2C |
| Measurement Range | 30 mm to 2000 mm |
| Accuracy | ±3% |
| Field of View (FoV) | 27° |
| Operating Temperature | -20°C to +85°C |
| Power Consumption | 20 mW (typical) |
| Dimensions | 4.4 mm x 2.4 mm x 1.0 mm |
The VL53LXX-V2 sensor module typically comes with the following pinout:
| Pin Name | Description |
|---|---|
| VIN | Power supply input (2.6 V to 3.5 V) |
| GND | Ground connection |
| SDA | I2C data line |
| SCL | I2C clock line |
| XSHUT | Shutdown pin (active low, used to reset the sensor) |
| GPIO1 | Interrupt output (optional, configurable) |
Below is an example of how to use the VL53LXX-V2 with an Arduino UNO:
#include <Wire.h>
#include <Adafruit_VL53L0X.h> // Library for VL53LXX sensors
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
void setup() {
Serial.begin(9600); // Initialize serial communication
while (!Serial) {
delay(10); // Wait for Serial Monitor to open
}
Serial.println("VL53LXX-V2 Distance Sensor Test");
if (!lox.begin()) {
Serial.println("Failed to initialize VL53LXX-V2 sensor!");
while (1) {
delay(10); // Stay in loop if initialization fails
}
}
}
void loop() {
VL53L0X_RangingMeasurementData_t measure;
lox.rangingTest(&measure, false); // Perform a distance measurement
if (measure.RangeStatus != 4) { // Check if measurement is valid
Serial.print("Distance (mm): ");
Serial.println(measure.RangeMilliMeter);
} else {
Serial.println("Out of range");
}
delay(100); // Wait before the next measurement
}
Sensor Not Detected on I2C Bus:
Inaccurate Distance Measurements:
Out of Range Errors:
Q: Can I use the VL53LXX-V2 with a 5V microcontroller?
A: Yes, but you will need a logic level shifter to safely interface the 3.3V I2C lines with the 5V microcontroller.
Q: How do I use multiple VL53LXX-V2 sensors on the same I2C bus?
A: Use the XSHUT pin to reset each sensor individually and assign a unique I2C address to each.
Q: What is the maximum update rate of the sensor?
A: The VL53LXX-V2 can achieve an update rate of up to 50 Hz, depending on the configuration.
Q: Can the sensor measure through glass?
A: The sensor may work through glass, but accuracy can be affected due to reflections and refractions.
By following this documentation, you can effectively integrate the VL53LXX-V2 into your projects and troubleshoot common issues.