Skip to content

Arduino library to support the VL53L4ED Time-of-Flight high accuracy proximity sensor

License

Notifications You must be signed in to change notification settings

stm32duino/VL53L4ED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VL53L4ED

Arduino library to support the VL53L4ED Time-of-Flight ranging sensor.

API

This sensor uses I2C to communicate. And I2C instance is required to access to the sensor. The APIs provide simple distance measure in both polling and interrupt modes.

Examples

There are 2 examples with the VL53L4ED library.

In order to use these examples you need to connect the VL53L4ED satellite sensor directly to the Nucleo board with wires as explained below:

  • pin 1 (GND) of the VL53L4ED satellite connected to GND of the Nucleo board
  • pin 2 (VDD) of the VL53L4ED satellite connected to 3V3 pin of the Nucleo board
  • pin 3 (SCL) of the VL53L4ED satellite connected to pin D15 (SCL) of the Nucleo board
  • pin 4 (SDA) of the VL53L4ED satellite connected to pin D14 (SDA) of the Nucleo board
  • pin 5 (GPIO1) of the VL53L4ED satellite connected to pin A2 of the Nucleo board
  • pin 6 (XSHUT) of the VL53L4ED satellite connected to pin D3 of the Nucleo board
  • VL53L4ED_Sat_HelloWorld: This example code is to show how to get proximity values of the VL53L4ED satellite sensor in polling mode.

  • VL53L4ED_Sat_HelloWorld_Interrupt: This example code is to show how to get proximity values of the VL53L4ED satellite sensor in interrupt mode.

  • VL53L4ED_Sat_Threshold_Detection: This example code is to show how to configure the threshold and get proximity values when the ranging is below 100mm or above 200mm.

Documentation

You can find the source files at
https://github.com/stm32duino/VL53L4ED

The VL53L4ED datasheet is available at
https://www.st.com/content/st_com/en/products/imaging-and-photonics-solutions/proximity-sensors/vl53l4ed.html