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.
Open the example in “File” -> “Examples” -> “AmebaWire” -> “VL53L5CX” -> “HandPresenceDetection”.
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”.
When no hand is detected, it will display “No hand present”.