nanoFramework.Iot.Device.Vl6180X 1.0.24

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Vl6180X --version 1.0.24                
NuGet\Install-Package nanoFramework.Iot.Device.Vl6180X -Version 1.0.24                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Vl6180X" Version="1.0.24" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Iot.Device.Vl6180X --version 1.0.24                
#r "nuget: nanoFramework.Iot.Device.Vl6180X, 1.0.24"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install nanoFramework.Iot.Device.Vl6180X as a Cake Addin
#addin nuget:?package=nanoFramework.Iot.Device.Vl6180X&version=1.0.24

// Install nanoFramework.Iot.Device.Vl6180X as a Cake Tool
#tool nuget:?package=nanoFramework.Iot.Device.Vl6180X&version=1.0.24                

Vl6180X - distance sensor

The Vl6180X sensor is a Time-to-Flight sensor measuring precisely distances. The sensor allows you to get precise short distance measurement (from 5 millimeters to 2 meters) as well as long distance measurement (up to 8 meters but with a decreased precision). This sensor is a laser ranging sensor. It is using laser pulses to measure the distances.

Documentation

Vl6180X datasheet

Usage

Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice, make sure you install the nanoFramework.Hardware.ESP32 nuget:

// when connecting to an ESP32 device, need to configure the I2C GPIOs used for the bus
Configuration.SetPinFunction(11, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(10, DeviceFunction.I2C1_CLOCK);

using VL6180X sensor = new(I2cDevice.Create(new I2cConnectionSettings(1, VL6180X.DefaultI2cAddress)));
sensor.Init();
while (true)
{
    var distance = sensor.ReadRange();
    Console.WriteLine($"Distance: {distance.Centimeters} cm.");
    Thread.Sleep(500);
}

Not implemented

  • ALS (ambient light sensor
  • Range scaling
  • Range continuous measurement
  • I2C Address set
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.44 49 2/4/2025
1.0.41 42 2/4/2025
1.0.24 49 1/31/2025
1.0.12 76 1/20/2025
1.0.6 75 1/13/2025
1.0.1 55 1/9/2025