ZX Distance and Gesture Sensor Hookup Guide
The ZX Distance and Gesture Sensor is a collaboration product with XYZ Interactive. The very smart people at XYZ Interactive have created a unique technology that allows for simple infrared beams to be used to detect an object's location in two dimensions.
The ZX Sensor is a touchless sensor that is capable of looking for simple gestures in the air above the sensor (e.g. swipe left or right). Additionally, the sensor can also recognize the distance of an object away from the sensor up to about 10 inches (25 cm), which we will call the "Z" axis, and the location of the object from side to side across the sensor in about a 6 inch (15 cm) span, which we will call the "X" axis.
Covered in This Tutorial
We can use I2C or UART to communicate with the ZX Sensor. In this tutorial, we will show you how to connect the sensor to an Arduino as well as a computer. The tutorial is divided into the following sections:
- Board Overview -- We go over the various pins and jumper settings on the ZX Sensor.
- Hardware Hookup -- How to connect the sensor to an Arduino.
- Arduino Library Installation -- Install the ZX Sensor library if you plan to use it with an Arduino
- Arduino: ZX Example -- How to read Z- and X- axis data from the sensor on an Arduino.
- Arduino: Gesture Example -- How to read gestures with an Arduino.
- PC: ZX Example -- How to read Z- and X- axis data on a Windows computer.
- Resources and Going Further -- This section gives you some additional resources for getting more use out of the ZX Sensor.
In addition to the sensor itself, you will need a few extra components to follow along with the Arduino examples:
If you would like to try the ZX Sensor on a Windows-based PC, you will need an FTDI Breakout:
There are a few concepts that you should be familiar with before getting started with the ZX Sensor. Consider reading some of these tutorials before continuing:
- What is an Arduino? -- Two of the examples use an Arduino to control the ZX Sensor
- I2C -- I2C is the one of the protocols used by the ZX Sensor
- Serial Communication -- We use serial communications to program the Arduino, view debugging information, and transmit data from the ZX Sensor
- How to Use a Breadboard -- The breadboard ties the Arduino to the ZX Sensor
- How to Install FTDI Drivers -- If you are programming an Arduino or using the ZX Sensor demo app, chances are you will need to use an FTDI