VL53L1X Time-of-Flight Distance Sensor Module

125,00 DH 130,00 DH

Availability:

94 in stock

SKU: 0123-D Categories: ,

Description

VL53L1X Time-of-Flight Distance Sensor Module

The VL53L1X is a miniature time-of-flight (ToF) sensor from STMicroelectronics. It measures absolute distance up to 4 m and supports update rates up to 50 Hz. Its 940 nm Class 1 laser emitter, SPAD array, and infrared filters provide accurate measurements regardless of the target’s color or reflectivity.

Technical specifications

  • Supply voltage: 2.6–3.5 V DC
  • Measurement range: 5–4000 mm
  • Measurement rate: up to 50 Hz
  • Field of view (FoV): typically 27° (programmable from 15° to 27°)
  • Interface: I²C, up to 400 kHz
  • Laser wavelength: 940 nm (Class 1, eye-safe)
  • Current consumption: typically 20 mA during operation
  • Sensor dimensions: 4.4 × 2.5 × 1.56 mm
  • Operating temperature: −20 °C to +85 °C

Typical applications

  • Robotics and drones for obstacle avoidance
  • Liquid-level or bulk-material measurement
  • Presence detection and object counting
  • Industrial automation and quality control
  • Consumer projects such as distance meters and gesture interfaces

Arduino code example (Adafruit_VL53L1X library)

This example initializes the sensor over I²C and reads the measured distance in millimeters.

#include <Wire.h>
#include <Adafruit_VL53L1X.h>

Adafruit_VL53L1X tof = Adafruit_VL53L1X();

void setup() {
Serial.begin(115200);
if (!tof.begin()) {
Serial.println("Erreur init VL53L1X");
while (1);
}
// Réglage d'une résolution de 50 Hz
tof.setMeasurementTimingBudget(20000); // en μs
}

void loop() {
VL53L1X_RangingMeasurementData_t measure;
tof.rangingTest(&measure, false); // false = pas d'affichage des données brutes
if (measure.RangeStatus == 0) {
Serial.print("Distance: ");
Serial.print(measure.RangeMilliMeter);
Serial.println(" mm");
} else {
Serial.println("Hors plage ou erreur");
}
delay(100);
}

Quick explanation:

  1. tof.begin() initializes I²C communication.
  2. setMeasurementTimingBudget() sets the accuracy/speed trade-off (about 50 Hz here).
  3. In loop(), rangingTest() reads the distance in millimeters.

Pinout and wiring

VL53L1X module pin Arduino UNO Notes
VIN 3.3 V Some breakout boards accept 5 V (check your board).
GND GND Common ground.
SDA A4 (SDA) I²C data bus.
SCL A5 (SCL) I²C clock bus.
XSHUT (optional) — or D2 Sensor reset (leave unconnected if unused).
GPIO (interrupt) — Not used in this sketch.

Connect VIN to the appropriate supply, GND to ground, SDA to A4, and SCL to A5. If your module has a 5 V regulator, you can power it with 5 V; otherwise, use 3.3 V.

Keywords: obstacle detection, distance sensor, ToF, VL53L1X.

Thank you for your loyalty!

EN