VL53L0X Time-of-Flight Distance Sensor
Laser ToF sensor with millimeter accuracy up to 2m.
A ST Micro laser time-of-flight sensor offering fast, accurate short-range distance readings unaffected by target color or reflectivity. Instead of measuring reflected light intensity like an IR distance sensor, the VL53L0X times how long an invisible laser pulse takes to bounce back off a surface, giving consistent millimeter-level accuracy regardless of whether the target is black, white, matte, or shiny — a common upgrade over Sharp IR sensors for robotics obstacle avoidance, gesture sensing, and liquid-level or drone altitude-hold applications.
Specifications
| Sensor type | ST Micro VL53L0X laser time-of-flight (ToF) ranging sensor |
| Operating voltage | 2.6V–3.5V DC (breakout boards regulate from 3.3-5V input) |
| Operating current | ~19-40 mA depending on ranging mode |
| Ranging distance | Up to 2m, best accuracy typically within 30-1200mm |
| Accuracy | ±3% typical (better than percentage-based IR sensors, and unaffected by target color/reflectivity) |
| Ranging speed | Up to 50 Hz in high-speed mode |
| Field of view | ~25° cone (narrower than ultrasonic, useful for precise single-point measurement) |
| Interface | I2C, up to 400 kHz |
| I2C address | 0x29 default, software-reassignable — useful for running multiple sensors on one bus via a shared XSHUT reset pin |
Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | VIN | Power, 3.3–5V DC depending on breakout regulator |
| 2 | GND | Ground |
| 3 | SCL | I2C clock line |
| 4 | SDA | I2C data line |
| 5 | GPIO1 (INT) | Interrupt output, signals when a new distance measurement is ready |
| 6 | XSHUT | Active-LOW shutdown pin — used to sequentially power up multiple sensors and assign each a unique I2C address |
All VL53L0X breakouts default to the same I2C address (0x29), so running more than one sensor on a bus requires wiring each XSHUT pin to a separate GPIO, holding all but one in reset at boot, reassigning that sensor's address in software, then releasing the next one — a common pattern for multi-sensor robot bumper arrays.
Variants
The VL53L0X is the right default for most short-range robotics and gesture-sensing projects needing consistent accuracy regardless of surface color. Step up to the VL53L1X only if the project needs more than 2m of range; drop down to the Sharp GP2Y0A21 only if simple analog reading matters more than measurement consistency.
| Variant | Temp range | Hum range | Accuracy | Protocol | Price |
|---|---|---|---|---|---|
| VL53L0X breakout | ~$3-6 | ||||
| VL53L1X | ~$6-10 | ||||
| Sharp GP2Y0A21 (IR analog) | ~$3-5 |