stm32duino / X-NUCLEO-53L1A1

Arduino library to support the X-NUCLEO-53L1A1 based on VL53L1X Time-of-Flight and gesture-detection sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X-NUCLEO-53L1A1

Arduino library to support the X-NUCLEO-53L1A1 based on VL53L1X Time-of-Flight and gesture-detection sensor This sensor uses I2C to communicate. An I2C instance is required to access to the sensor. The APIs provide simple distance measure in both polling and interrupt mode, single swipe gesture detection, directional (left/right) swipe gesture detection and single tap gesture detection.

Examples

There are 5 examples with the X-NUCLEO-53L1A1 library.

  • X_NUCLEO_53L1A1_HelloWorld: This example code is to show how to get proximity values of the onboard VL53L1X sensor and eventually of the two satellites with polling.

  • X_NUCLEO_53L1A1_HelloWorld_Interrupt: This example code is to show how to get proximity values of the onboard VL53L1X sensor with interrupts.

  • X_NUCLEO_53L1A1_Gesture_DirSwipe: This example code is to show how to combine the proximity values of the two VL53L1X sensor satellites together with the gesture library in order to detect a directional swipe gesture.

  • X_NUCLEO_53L1A1_Gesture_Swipe1: This example code is to show how to combine the proximity value of the onboard VL53L1X sensor together with the gesture library in order to detect a simple swipe gesture without considering the direction.

  • X_NUCLEO_53L1A1_Gesture_Tap1: This example code is to show how to combine the proximity value of the onboard VL53L1X sensor together with the gesture library in order to detect a simple tap gesture.

  • X_NUCLEO_53L1A1_People_Counting: This example code is to show how to use the proximity value of the onboard VL53L1X sensor in order to count people entering and exiting from a door.

Dependencies

This package requires the following Arduino libraries:

Note

The maximum detection distance is influenced by the color of the target and the indoor or outdoor situation due to absence or presence of external infrared. The detection range can be comprise between ~40cm and ~400cm. (see chapter 3 of the VL53L1X datasheet).

Documentation

You can find the source files at
https://github.com/stm32duino/X-NUCLEO-53L1A1

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

About

Arduino library to support the X-NUCLEO-53L1A1 based on VL53L1X Time-of-Flight and gesture-detection sensor

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 100.0%