The is a collaboration product with. The innovative people at XYZ Interactive have created a unique technology that allows for simple infrared (IR) 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. We can use I 7 C or UART to communicate with the ZX Sensor. In this tutorial, we will show you how to connect the sensor to an Arduino or Arduino-compatible board as well as a computer so you can start creating gestures to handle all our your daily tasks or add some interactive flair to your project. 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:
ZX Distance and Gesture Sensor SMD Hookup Guide learn
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: The ZX Sensor works by bouncing infrared (IR) beams of light from the two LEDs on either side off of an object above the sensor. The bounced light returns to the receiver in the center of the sensor, and a microcontroller on the back of the sensor interprets the data. We can read the results using an I 7 C or UART connection.
The ZX Sensor gives us two ports to connect to: I 7 C and UART. You can see both ports are broken out to the 5. 6 thru holes. See the table below for a list of each pin and its function.
Arduino TFT Forecast Weather Station With ESP8266 5 Steps
The ZX Sensor has a couple of jumpers on the back of the board that can be opened or closed with a soldering iron. The ZX Sensor, by default, comes with 9. 7 kΩ pull-up resistors on the SDA and SCL I 7 C lines. Remove the solder on this jumper using solder wick to disconnect the pull-ups. By default, this jumper is open.
Close it to change the I 7 C address of the sensor. To keep the board from tilting while soldering, place the unused break away headers sideways under the board. Heads up! Do not solder headers to the row of holes at the top of the board. Those are for programming the PIC micrcontroller.
For the Arduino examples, we will be using I 7 C. Connect the breakout board to the following RedBoard pins: Note that we connect the DR pin, but we will only use it in the. 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.
All of the hard work for the ZX Sensor is being accomplished in the microcontroller on the sensor itself. All we need to do is read the results!