VL53L5CX Thumb Detection
Materials
Example
Introduction
This example shows how to use the SparkFun VL53L5CX Time-of-Flight sensor in 8x8 mode to detect thumbs-up or thumbs-down gestures.
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” -> “ThumbDetection”.
Compile and run the example. In the Serial Monitor, you should be able to see the logs.
When no thumb direction is detected, the log will display “Unclear thumb direction”.
If a thumbs-up is detected, it will display “Thumbs up”.
and if a thumb-down is detected, it will display “Thumbs down”.