

The VL53L3CX is a state-of-the-art time-of-flight (ToF) distance sensor manufactured by Laser Sensor. It uses advanced laser technology to measure distances with high accuracy and reliability. The sensor can detect objects up to 4 meters away and supports multi-target detection, making it ideal for a wide range of applications.








The VL53L3CX is designed to deliver precise distance measurements in a compact form factor. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 2.6V to 3.5V |
| Communication Interface | I²C (up to 1 MHz) |
| Measurement Range | 0.1m to 4m |
| Accuracy | ±5mm (typical) |
| Field of View (FoV) | 27° |
| Multi-Target Detection | Yes |
| Operating Temperature | -20°C to +85°C |
| Power Consumption | 20mW (typical) |
| Dimensions | 4.4mm x 2.4mm x 1.0mm |
The VL53L3CX has a simple pinout for easy integration into circuits. Below is the pin configuration:
| Pin Name | Pin Number | Description |
|---|---|---|
| GND | 1 | Ground |
| VIN | 2 | Power supply (2.6V to 3.5V) |
| SDA | 3 | I²C data line |
| SCL | 4 | I²C clock line |
| GPIO1 | 5 | Interrupt or shutdown control |
| XSHUT | 6 | Shutdown pin (active low) |
The VL53L3CX is straightforward to use in a circuit, especially with microcontrollers like the Arduino UNO. Below are the steps to get started:
Below is an example of how to use the VL53L3CX with an Arduino UNO. This code reads the distance measured by the sensor and prints it to the Serial Monitor.
#include <Wire.h>
#include <VL53L3CX.h> // Include the VL53L3CX library
VL53L3CX sensor; // Create a sensor object
void setup() {
Serial.begin(9600); // Initialize serial communication
Wire.begin(); // Initialize I²C communication
// Initialize the VL53L3CX sensor
if (!sensor.begin()) {
Serial.println("Failed to initialize VL53L3CX!");
while (1); // Halt if initialization fails
}
Serial.println("VL53L3CX initialized successfully.");
}
void loop() {
// Read the distance in millimeters
int distance = sensor.readRange();
// Check for errors
if (sensor.timeoutOccurred()) {
Serial.println("Sensor timeout!");
} else {
// Print the distance to the Serial Monitor
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" mm");
}
delay(100); // Wait 100ms before the next reading
}
Sensor Not Detected
Inaccurate Distance Measurements
Sensor Timeout
Interference from Ambient Light
Q1: Can the VL53L3CX detect multiple objects simultaneously?
Yes, the sensor supports multi-target detection, allowing it to measure distances to multiple objects within its field of view.
Q2: What is the maximum range of the VL53L3CX?
The sensor can measure distances up to 4 meters under optimal conditions.
Q3: Can I use the VL53L3CX with a 5V microcontroller?
Yes, but you must use a level shifter to step down the I²C signals to 3.3V to avoid damaging the sensor.
Q4: How do I reduce noise in the measurements?
Use averaging techniques in your code or operate the sensor in a stable environment to minimize noise.
By following this documentation, you can effectively integrate the VL53L3CX into your projects and achieve accurate distance measurements.