SparkFun_VL53L5CX_Arduino_Library (community library)


Name Value
Name SparkFun_VL53L5CX_Arduino_Library
Version 1.0.0
Installs 1253
Author SparkFun Electronics
Maintainer SparkFun Electronics
Download .tar.gz

Distance sensing (VL53L5CX) with 64 pixels up to 4 meters at 15Hz. The SparkFun Qwiic ToF Imager is state of the art, 64 pixel Time-of-Flight (ToF), multizone 4 meter ranging sensor with milimeter resolution built around the VL53L5CX from ST. This library supports reading distances up to 4m across all 64 sensors at up to 15Hz. Multiple sensors can be daisy-chained for additional readings but data rates are limited by the 400kHz max I2C bus speed.

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

SparkFun Qwiic Time-of-Flight Sensor VL53L5CX Arduino Library

SparkFun Time-of-Flight Sensor VL53L5CX (image removed)

SparkFun Time-of-Flight 8x8 multizone ranging sensor with wide field of view

The SparkFun Qwiic ToF Imager is built around VL53L5CX from ST Electronics; a state of the art, Time-of-Flight (ToF), multizone ranging sensor enhancing the ST FlightSense product family. This chip integrates a SPAD array, physical infrared filters, and diffractive optical elements (DOE) to achieve the best ranging performance in various ambient lighting conditions with a range of cover glass materials. Utilizing our handy Qwiic system, no soldering is required to connect it to the rest of your system. However, we still have broken out 0.1"-spaced pins in case you prefer to use a breadboard.

Multizone distance measurements are possible up to 8x8 zones with a wide 63° diagonal FoV which can be reduced by software. Thanks to ST Histogram patented algorithms, the VL53L5CX is able to detect different objects within the FoV. The Histogram also provides immunity to cover glass crosstalk beyond 60 cm.

Ideal for 3D room mapping, obstacle detection for robotics, gesture recognition, IoT, laser-assisted autofocus, and AR/VR enhancement, the Qwiic connector on this sensor makes integration easy.

Repository Contents

  • /documents - Datasheet, application notes, etc.
  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • - General library properties for the Arduino package manager.


  • Hardware Repo - Hardware Repository for the Qwiic ToF Imager VL53L5CX
  • Hookup Guide - Hookup guide for the Qwiic ToF Imager VL53L5CX

License Information

This product is open source!

Please review the file for license information.

If you have any questions or concerns on licensing, please contact

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anyThing Development Board derivative under the same license.

Distributed as-is; no warranty is given.

Browse Library Files