Skip to main content
Any Framework

Iot.Device.Vl6180X assembly for .NET nanoFramework C# projects

Published
Aug 3, 2026
2mo ago
Total Downloads
4.7K
4,668

Install

dotnet add package nanoFramework.Iot.Device.Vl6180X --version 1.0.296

No framework information available.

README

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

Changes from Previous Version

No structural changes between v1.0.285 and v1.0.296.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.