Read the I²C address of the VL53L1X.
Read current distance mode of VL53L1X.
Read measurement timing budget of VL53L1X.
Read current timeout setting of VL53L1X.
Initialize VL53L1X device.
Read distance (mm).
Set distance mode. The VL53L1X has three distance modes (DM): short, medium, and long. Long distance mode allows the longest possible ranging distance of 4 m to be reached. However, this maximum ranging distance is impacted by ambient light. Short distance mode is more immune to ambient light, but its maximum ranging distance is typically limited to 1.3 m.
Set measurement timing budget. The VL53L1X timing budget can be set from 20 ms up to 1000 ms. • 20 ms is the minimum timing budget and can be used only in Short distance mode. • 33 ms is the minimum timing budget which can work for all distance modes. • 140 ms is the timing budget which allows the maximum distance of 4 m (in the dark on a white chart) to be reached under Long distance mode Increasing the timing budget increases the maximum distance the device can range and improves the repeatability error. However, average power consumption augments accordingly.
Start continuous ranging measurements, with the given inter-measurement period in milliseconds determining how often the sensor takes a measurement.
Stop continuous measurements.
Did a timeout occur in one of the read functions since the last call to this node?
Time-of-Flight (ToF) sensor.
Create VL53L1X device.
Patch to test tof-sensor.
Patch to test nodes used to set and get configuration options.
Example demonstrating output of range measurement to an OLED screen.