ZX Distance and Gesture Sensor Hookup Guide
This Tutorial is Retired!
This tutorial covers concepts or technologies that are no longer current. It's still here for you to read and enjoy, but may not be as useful as our newest tutorials.
View the updated tutorial: ZX Distance and Gesture Sensor SMD Hookup Guide
Contributors:
Shawn Hymel
Hardware Hookup
Add Headers
Solder a row of break away male headers to the 9 headers holes on the board.
Connect the Breakout Board
For the Arduino examples, we will be using I2C. Connect the breakout board to the following RedBoard pins:
ZX Sensor | RedBoard |
---|---|
VCC | 5V |
GND | GND |
DR | 2 |
CL | A5 |
DA | A4 |
Note that we connect the DR pin, but we will only use it in the Arduino: Gesture Example. DR stands for "Data Ready," which is active high whenever data is ready to be read from the ZX Sensor. We can attach this to an Arduino interrupt so we don't have to continuously poll the sensor.