SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.
Description: The ZX Distance and Gesture Sensor is a touchless sensor that is capable of looking for simple gestures. Developed in conjunction with XYZ Interactive, the sensor uses their GestureSense® technology to recognize the distance of an object away from the sensor up to about 10 inches (~25cm) and the location of the object from side to side across the sensor in about a 6 inch (~15cm) span. You will be able to use I2C or UART to communicate with the ZX Sensor via an Arduino-based microcontroller as well as a computer.
On board each ZX Sensor you will find two IR LEDs (inside the brass tubes) and one IR receiver (in the middle). The brass tubes that protect the IR LEDs are actually to block any infrared light going directly from the LEDs to the receiver (we want the light to bounce off an object first). With these IR pieces you will easily be able to ascertain both the Z axis and the X axis of an object (hence the name). In addition to providing Z- and X- axis data about an object, the ZX Sensor is also capable of detecting simple gestures. We have also clearly labeled all the pin outs on the board as well as signifying if they are needed in I2C or UART communication.
Note: Be sure to check out the Hookup Guide in the Documents section below for instructions on how to get your ZX Sensor started, load the code and library, and a list of supported gestures.
Based on 4 ratings:
3 of 3 found this helpful:
I started testing this ZX sensor with my Arduino and wired to an RGB LED to control switching and colour changes. The gestures can switch the device and the depth changes can control colour. I can’t do this with any single device any other way. Love it. Thanks !!!
2 of 2 found this helpful:
Works exactly how I wanted it to. I did notice that Voltage changes have an effect on the distance readings.
We have tested out both the delivery and support from SparkFun on these sensors and are very happy. We have also sponsored some Hackathons and continue to be impressed with some of the creative applications of our sensor technology that is coming from the crowd. If anyone has suggestions for improvements or additions to future sensor modules, please send to email@example.com
Very easy to setup, managed to get it working on the FreeSoC2 and used the distance reading to set the frequency of a generated tone. Returned distance value is nonlinear, more resolution farther from the sensor. I tested the raw readings for side-to-side and it was a little hard to predict when the sensor would start reading my hand, however the fact that it can do it at all, especially at this price, is a decent reason to get one.
If you see this error output using the I2C_ZX_Demo.ino code:
----------------------------------- SparkFun/GestureSense - I2C ZX Demo ----------------------------------- ZX Sensor initialization complete Error reading model version number Model version needs to be 1 to work with this library. Stopping.
Make sure that you are connected to the I2C pins correctly. If you have any loose connections, you will have issues communicating with the sensor through I2C. If you are using an Arduino Mega, make sure that you are connecting to the correct I2C pins https://www.arduino.cc/en/Reference/Wire .