LamaPLC: VL53Lnn STMicroelectronics time-of-flight (ToF) laser-ranging sensors with I²C communication

VL53L0X The STMicroelectronics VL53L1X is the successor to the STMicroelectronics VL53L0X, offering significant enhancements in range, speed, and functionality, while maintaining pin-to-pin compatibility. The most notable difference is the maximum distance measurement: the VL53L1X supports up to 4 meters, compared with 2 meters for its predecessor.

Feature Comparison:

FeatureSTMicroelectronics VL53L0XSTMicroelectronics VL53L1X
Max Range (Optimal)Up to 2 metersUp to 4 meters
Max Ranging FrequencyTypically around 20 Hz (50 ms per measurement)Up to 50 Hz
Field of View (FoV)25° fixed27° typical full FoV, but programmable (15° to 27°)
Multi-zone CapabilityNoYes, via programmable Region of Interest (ROI)
Ambient Light ImmunityGood (uses 940nm VCSEL and physical IR filters)Improved (better performance in high ambient light)
Pin-to-Pin CompatibilityN/APin-to-pin compatible with the VL53L0X sensor
Responsive time50ms50ms
Package Size4.4 x 2.4 x 1.0 mm4.9 x 2.5 x 1.56 mm (slightly larger)
InterfaceI²C, default addr.: 0x29I²C, default addr.: 0x29

In summary, while the VL53L0X is a cost-effective choice for short-range applications, the VL53L1X offers enhanced performance and versatility for more demanding tasks, such as drone navigation, industrial automation, and gesture recognition, that require longer range and spatial awareness.

If you'd like to support the development of the site with the price of a coffee — or a few — please do so here.

Here's a handy tip: you can quickly save this page as a PDF by clicking “export to PDF” in the menu on the right side of the screen.

2026/02/14 23:38

Arduino & VL53L1X

  • VIN: Power input (2.8V - 5V)
  • GND: Ground
  • SCL: I²C clock line
  • SDA: I²C data line
  • XSHUT: Shutdown pin, low-level shutdown, high-level normal operation
  • GPIO1: Programmable interrupt output

The VL53L1X typically operates at 3.3V. Ensure your module includes a voltage regulator and level shifters when connecting to a 5V board, such as an Arduino Uno.

Arduino code

To interface the VL53L1X Time-of-Flight (ToF) sensor with an Arduino, the Pololu VL53L1X library is widely recommended for its simplicity and small memory footprint.

#include <Wire.h>
#include <VL53L1X.h>
 
VL53L1X sensor;
 
void setup() {
  Serial.begin(115200);
  Wire.begin();
  Wire.setClock(400000); // Use 400 kHz I2C for faster readings
 
  sensor.setTimeout(500);
  if (!sensor.init()) {
    Serial.println("Failed to detect and initialize sensor!");
    while (1);
  }
 
  // Set distance mode: Long (up to 4m) or Short (up to 1.3m)
  sensor.setDistanceMode(VL53L1X::Long);
 
  // Timing budget is the time spent taking one measurement (min 20ms short, 33ms long)
  sensor.setMeasurementTimingBudget(50000); // 50ms
 
  // Start continuous readings every 50ms
  sensor.startContinuous(50);
}
 
void loop() {
  // Read distance in millimeters
  uint16_t distance = sensor.read();
 
  Serial.print("Distance (mm): ");
  Serial.println(distance);
 
  if (sensor.timeoutOccurred()) {
    Serial.print(" TIMEOUT");
  }
}

I²C topics on lamaPLC

PageDateTags
2026/04/23 21:51, , , , , , ,
2025/09/23 21:25, , , , , ,
2026/03/22 03:14, , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/03/28 23:50, , , , , , ,
2026/04/12 00:34, , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , ,
2026/03/22 00:08, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2025/05/31 23:32, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2025/11/22 00:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 17:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/03/22 01:44, , , , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , ,
2026/04/23 21:51, , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , , , , , , , ,
2026/04/11 19:54, , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/02/14 18:27, , , , , , , , , ,
2026/04/23 21:52, , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/15 19:41, , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/02/14 23:47, , , ,
2026/02/14 23:51, , , , , ,
2026/02/14 18:26, , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/03/05 21:19, , , , , , , , , , , , , , , , ,
2026/02/14 18:27, , , , , , ,



This page has been accessed for: Today: 3, Until now: 4