
Technical details
- 22 mm × 22 mm square
- 4× ⌀2.7 mm Mounting Holes
- 1 mm – 4000 mm measurable range
- < ±10 mm error up to 2 m, < ±3% beyond
- < 30 ms single-shot, 50 Hz continuous mode
- I²C, default address 0x52
- 1.8 V, 3.3 V, 5.0 V
- Arduino IDE Compatible
- MicroPython Compatible
- MicroBlocks Compatible
Drag to rotate
Pinout & connections
Arduino example
#include "Adafruit_VL53L0X.h"
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
void setup() {
Serial.begin(115200);
while (! Serial) {
delay(1);
}
Serial.println("Adafruit VL53L0X test.");
if (!lox.begin()) {
Serial.println(F("Failed to boot VL53L0X"));
while(1);
}
Serial.println(F("VL53L0X API Continuous Ranging example\n\n"));
lox.startRangeContinuous();
}
void loop() {
if (lox.isRangeComplete()) {
Serial.print("Distance in mm: ");
Serial.println(lox.readRange());
}
}