VL53L0X TimeofFlight Laser Ranging Sensor Breakout
High-Precision Laser Distance Measurement Module
The VL53L0X is a sophisticated TimeofFlight laser ranging sensor capable of measuring distances up to 2 meters with exceptional accuracy. This breakout module features a 940nm VCSEL laser and advanced STMicroelectronics FlightSense technology for reliable distance measurement regardless of target color and reflectivity. Perfect for robotics, obstacle avoidance, and proximity sensing applications.
Measures absolute distance up to 2 meters using laser ranging technology
Features I2C interface for easy integration with any microcontroller
Do not stare directly into laser beam - Class 1 laser product
Technical Specifications
| Parameter | Value |
|---|
| Model | VL53L0X / GY-VL53L0XV2 |
| Measurement Range | Up to 2000mm (2 meters) |
| Accuracy | ±3% (typical) |
| Measurement Time | 33ms (default) to <200ms |
| Field of View | 25° (typical) |
| Laser Wavelength | 940nm (VCSEL) |
| Laser Class | Class 1 (IEC 60825-1:2007) |
| Supply Voltage | 3.3V - 5V DC |
| Power Consumption | ~20mA (active) |
| Interface | I2C (address 0x29) |
| I2C Speed | 400kHz (Fast Mode) |
| Ambient Light Immunity | Good (outdoor usable) |
| Operating Temp | -20°C ~ 70°C |
| Dimensions | ~13mm x 18mm |
| Pin Header | 4-pin (2.54mm pitch) |
= Key Features =
High Accuracy - ±3% distance measurement for reliable readings
Long Range - Measures up to 2 meters for versatile applications
Laser Technology - 940nm VCSEL for consistent performance
Fast Response 33ms measurement time for realtime applications
Wide Compatibility - 3.3V and 5V logic level compatible
Simple Interface - I2C communication with standard addressing
Immunity to Targets - Measures regardless of color or reflectivity
Compact Design Small form factor for spaceconstrained projects
Low Power ~20mA consumption for batterypowered devices
= Applications =
- Obstacle avoidance for robots and drones
- Proximity sensing and presence detection
- Distance measurement and ranging
- Level sensing and object detection
- Gesture recognition systems
- Industrial automation
- Smart home and IoT devices
- LiDAR prototyping and education
- Depth mapping and 3D scanning
- Touchless switches and interfaces
Wiring Guide
| VL53L0X Pin | Arduino Pin | Description |
|---|
| VCC | 3.3V or 5V | Power Supply |
| GND | GND | Ground |
| SCL | A5 (Uno) / D21 (Mega) / D22 (ESP) | I2C Clock |
| SDA | A4 (Uno) / D20 (Mega) / D21 (ESP) | I2C Data |
> Works with both 3.3V and 5V logic levels - no level shifting required
Use external pull-up resistors (4.7kΩ) for longer I2C connections
Do not exceed 5V on VCC or I2C pins
Arduino Test Code
#include
#include
VL53L0X sensor;
void setup() {
Serial.begin(115200);
Wire.begin();
sensor.init();
sensor.setTimeout(200);
}
void loop() {
int distance = sensor.readRangeSingleMillimeters();
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" mm");
delay(500);
}
Quick Setup Guide
- Connect VCC to 3.3V or 5V power supply
- Connect GND to common ground
- Connect SCL and SDA to I2C pins
- Install VL53L0X library via Arduino Library Manager
- Upload test code and open Serial Monitor
- Place object in front of sensor to test
Sensor measures absolute distance regardless of object color
Default I2C address is 0x29 - can be changed for multiple sensors
Ensure sensor has clear line of sight to target object
Measurement Characteristics
- 050mm: Best accuracy for closerange proximity
- 50-200mm: Excellent accuracy for general sensing
- 200-1000mm: Good accuracy for standard applications
- 1000-2000mm: Reduced accuracy at maximum range
Accuracy decreases at longer distances and in bright sunlight
For outdoor use, ambient light filtering is enabled by default
Performance affected by transparent and highly reflective surfaces
Why Choose VL53L0X?
Cuttingedge Timeof-Flight laser technology
Accurate distance measurement regardless of target color
Simple I2C interface for any microcontroller
Compact and easy to integrate
Suitable for indoor and outdoor use
Excellent value for advanced distance sensing
√ Compatible with Arduino, ESP32, Raspberry Pi
√ Works with 3.3V and 5V systems
√ Fast measurement for real-time applications
√ Low power for battery projects
√ Proven STMicroelectronics technology
√ Library support for major platforms
Sensor Modes
| Mode | Resolution | Measurement Time | Range |
|---|
| Default | 12-bit | 33ms | Up to 2m |
| High Accuracy | 16-bit | ~200ms | Up to 2m |
| High Speed | 8-bit | ~20ms | Up to 1.2m |
| Long Range | 12-bit | 33ms | Up to 2m+ |
> Adjust mode based on application needs - higher accuracy uses more time
Use long range mode for distances beyond standard 2m
High speed mode trades accuracy for faster readings
Safety Precautions
Class 1 laser product - safe under normal use
Do not stare directly into laser beam
Do not point at reflective surfaces
Keep away from eyes and optical instruments
Avoid exposure to strong ambient light
Handle with care - sensitive optical components
Laser is eye-safe but should be treated with respect
Position sensor away from direct sunlight for best results
Troubleshooting
No reading or 0mm reading - Check wiring and power connections
Reading 8190 or 65535 - Sensor out of range or target too close
Erratic readings - Check for vibrations or moving objects
I2C not found - Check SDA/SCL connections and address
Slow readings - Adjust measurement timing in code
Inconsistent distance - Remove reflective surfaces from field of view
For outdoor applications, consider using external sun shield
Ensure I2C pull-up resistors are present on your board
Multiple Sensors
For multiple VL53L0X sensors on the same I2C bus:
- Keep XSHUT pins separate for each sensor
- Initialize one sensor at a time
- Change I2C address for each sensor
- Repeat for all sensors
This allows up to 8 sensors on the same bus
See library examples for detailed implementation
Each sensor must be powered and initialized individually
What's Included
- VL53L0X TimeofFlight Sensor Module
- 4pin Male Header (unsoldered)
- 4-pin Female Cable
The VL53L0X TimeofFlight Laser Ranging Sensor delivers professional-grade distance measurement in a compact, affordable package. With its advanced laser technology and simple interface, it's the perfect solution for robotics, automation, and distance sensing projects.
VL53L0X TOF TIMEOFFLIGHT LASERSENSOR DISTANCESENSOR RANGING LIDAR ARDUINO ESP32 ROBOTICS OBSTACLEAVOIDANCE I2C SENSOR LASER New Best Seller VL53L0X