Click the Upload button and wait for the program to finish uploading to the
Arduino. Select Tools → Serial Monitor to open up the serial terminal. More
info on the Serial Terminal can be found here. Note that the Serial Monitor
settings are the default settings (9600, 8, n, 1). You should see a couple of
messages noting that "ZX Sensor initialization complete."
Hover your hand 4 to 10 inches (10 to 25 cm) above the sensor.
Move your hand around above the sensor, and you should see Z (height
above the sensor) and X (position side to side) appear in the serial terminal.
NOTE: Z- and X- data is given as an unsigned integer between 0 and
240 (inclusive).
Arduino: Gesture Example
Load the Gesture Interrupt Demo
In addition to providing Z- and X- axis data about an object, the ZX Sensor
is also capable of detecting simple gestures. To see an example of this,
open File → Examples → SparkFun_ZX_Distance_and_Gesture_Sensor
→ I2C_Gesture_Interrupt.
Page 9 of 16
Need help?
Do you have a question about the ZX Distance and Gesture Sensor and is the answer not in the manual?