Skip to main content
Skip table of contents

ToF Range Finder Sensor (VL6180X)

This script communicates with the VL6180 Range Finder I2C sensor. You can find more information on the sensor here: https://www.sparkfun.com/products/12785

This script initializes the slave device with the sI array (see script below) for the proper mode of operation. The application note contains these values on page 24.

The script then reads the distance value from the sensor and reports it to a USER_RAM register, accessible in many other programs, such as LabVIEW, Python, C#, or the LabJack logging software, LJLogM.

The range finder sensor is easily connected using the EB37 and CB15 Accessories.

This example can be found in our Kipling git repository:

https://github.com/labjack/labjack_kipling/tree/master/ljswitchboard-module_manager/lib/switchboard_modules/lua_script_debugger/premade_scripts/i2c/proximity-vl6180x.lua

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.