VL6180X Time-of-Flight Sensing with STM32Cube

VL6180X Time-of-Flight Sensing with STM32Cube — overview of the documented components

This folder preserves STMicroelectronics’ VL6180X expansion software and its getting-started documentation. The examples cover proximity ranging, ambient-light measurement and gesture recognition on supported Nucleo hardware with the X-NUCLEO-6180XA1 expansion board.

How the project works

RangingAndALS demonstrates the distance and ambient-light functions with display and button-driven operating modes. RangingWithSatellites extends the example to multiple sensors, using separate device initialization and addressing.

GestureDetect1 uses the supplied gesture library for tap and swipe demonstrations. Its manual distinguishes single-sensor gestures from directional swipes using two sensors. These are different application builds inside the package, rather than features enabled by one Arduino sketch.

Hardware and configuration

ItemIn the supplied code
Software snapshotSTM32CubeExpansion_VL6180X_V1.3.0
Expansion hardwareX-NUCLEO-6180XA1
Example familiesRangingAndALS, RangingWithSatellites, GestureDetect1
Reference manualUM1876, supplied in the folder

Working with the supplied code

Select the example and board configuration that match the hardware, then follow the included manual for its toolchain and programming procedure. The documentation identifies supported F401RE and L053R8 kit configurations; do not assume that a binary for one target can be flashed unchanged to another.

The local movie is an STMicroelectronics presentation rather than a recording of this bench. It is identified separately in the video checklist as a manufacturer reference, not a new upload for the personal channel. The source and documentation remain useful starting points for understanding sensor status, scaling and multi-device initialization.

Source code and project files

Browse this project on GitHub. The files below are useful starting points for the sketches and references discussed in this post.

Download the used libraries (ZIP, 14.7 MB).

Firmware, gesture library, manuals and reference video are from STMicroelectronics. Retain the package’s copyright and redistribution notices.

These notes describe the archived source and project media. The sketches have not been rebuilt or tested on hardware for this article.

Scroll to Top