simondlevy / VL53L5CX

Arduino library for ST Microelectronics VL53L5CX multizone Time-of-Flight ranging sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VL53L5

A lightweight, header-only Arduino library for ST Microelectronics VL53L5 multizone Time-of-Flight ranging camera (get it here!) This library is designed to simplify the use of the sensor by helping you avoid illegal configurations; e.g., specifying an integration constant in continuous mode, or specifying too high a sampling frequency at a given resolution.

Quickstart

  1. Connect I2C in the usual way (SCL, SDA, 3.3V, GND)

  2. Connect INT and LPN to digital pins on your board, making sure the pin numbers agree with the pin numbers specified in the Basic test sketch.

  3. Flash the Basic test sketch onto your board.

  4. After a few seconds you should see the LED turn on solid.

  5. A few seconds after that, the LED should start blinking.

  6. Open the serial monitor to observer the rangefinder readings.

Supported platforms

I have tested this library on the following platforms:

Related projects

Known issues

Compiling on ESP32 with warnings set to More or All, you may get a memory warning that is treated as an error. Although ST claims to have fixed this problem, I was unable to get their code working on my ESP32. So I have opted to include the older code and set warnings to Default.

About

Arduino library for ST Microelectronics VL53L5CX multizone Time-of-Flight ranging sensor

License:MIT License


Languages

Language:C 86.2%Language:C++ 13.8%