VL53L5CX Hand Presence Detection

Materials

Example

Introduction

This example shows how to use the SparkFun VL53L5CX Time-of-Flight sensor in 8x8 mode to detect if hand is present.

Procedure

Connect the VL53L5CX to I2C_SDA and I2C_SCL of the board as shown in the diagram below.

../../../_images/image0123.png

Open the example in "File" -> "Examples" -> "AmebaWire" -> "VL53L5CX" -> "HandPresenceDetection".

../../../_images/image0223.png

Compile and run the example. In the Serial Monitor, you should be able to see the logs.

When hand is detected, the log will display "Hand present".

../../../_images/image0322.png

When no hand is detected, it will display "No hand present".

../../../_images/image046.png