nanoFramework.Iot.Device.Vl53L1X
1.2.1
Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Vl53L1X --version 1.2.1
NuGet\Install-Package nanoFramework.Iot.Device.Vl53L1X -Version 1.2.1
<PackageReference Include="nanoFramework.Iot.Device.Vl53L1X" Version="1.2.1" />
<PackageVersion Include="nanoFramework.Iot.Device.Vl53L1X" Version="1.2.1" />
<PackageReference Include="nanoFramework.Iot.Device.Vl53L1X" />
paket add nanoFramework.Iot.Device.Vl53L1X --version 1.2.1
#r "nuget: nanoFramework.Iot.Device.Vl53L1X, 1.2.1"
#:package nanoFramework.Iot.Device.Vl53L1X@1.2.1
#addin nuget:?package=nanoFramework.Iot.Device.Vl53L1X&version=1.2.1
#tool nuget:?package=nanoFramework.Iot.Device.Vl53L1X&version=1.2.1
VL53L1X distance sensor
The VL53L1X is a Time-of-Flight laser-ranging sensor with accurate ranging up to 4 m and a ranging frequency up to 50 Hz. It integrates a SPAD receiving array, a 940 nm Class 1 laser emitter, infrared filters, and programmable region-of-interest (ROI) support.
Documentation
Wiring
Connect VIN to the board supply, GND to ground, SDA to the I2C data pin, and SCL to the I2C clock pin. The XSHUT pin may be left pulled high for a single sensor. On ESP32, the sample uses GPIO21 for SDA and GPIO22 for SCL on I2C bus 1.
| VL53L1X | ESP32 |
|---|---|
| VIN | 3.3 V |
| GND | GND |
| SDA | GPIO21 |
| SCL | GPIO22 |
Usage
All calibration and initial setup are performed when the binding is created. Make sure the device is enabled through the XSHUT pin before constructing the sensor.
Configuration.SetPinFunction(Gpio.IO21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(Gpio.IO22, DeviceFunction.I2C1_CLOCK);
I2cConnectionSettings settings = new(1, Vl53L1X.DefaultI2cAddress);
using I2cDevice i2cDevice = I2cDevice.Create(settings);
using Vl53L1X sensor = new(i2cDevice);
sensor.Precision = Precision.Short;
while (true)
{
Debug.WriteLine($"Distance: {sensor.Distance.Millimeters} mm");
Debug.WriteLine($"Range status: {sensor.RangeStatus}");
Thread.Sleep(500);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 1.17.11)
- nanoFramework.System.Buffers.Binary.BinaryPrimitives (>= 1.2.862)
- nanoFramework.System.Device.Gpio (>= 1.1.64)
- nanoFramework.System.Device.I2c (>= 1.1.29)
- nanoFramework.System.Diagnostics.Stopwatch (>= 1.2.862)
- nanoFramework.UnitsNet.Length (>= 5.76.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.1 | 75 | 9/29/2026 |