SparkFun will be closed Friday 7/3/2020 for the 4th of July holiday. All orders placed after 2 pm MT on Thursday 7/2/2020 will be shipped out on Monday 7/6/2020. SparkFun Support will also resume on Monday 7/6/2020. Have a safe holiday!
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.
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 .
This skill defines how difficult the soldering is on a particular product. It might be a couple simple solder joints, or require special reflow tools.
Skill Level: Noob - Some basic soldering is required, but it is limited to a just a few pins, basic through-hole soldering, and couple (if any) polarized components. A basic soldering iron is all you should need.
See all skill levels
If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.
Skill Level: Competent - The toolchain for programming is a bit more complex and will examples may not be explicitly provided for you. You will be required to have a fundamental knowledge of programming and be required to provide your own code. You may need to modify existing libraries or code to work with your specific hardware. Sensor and hardware interfaces will be SPI or I2C.
See all skill levels
If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.
Skill Level: Rookie - You may be required to know a bit more about the component, such as orientation, or how to hook it up, in addition to power requirements. You will need to understand polarized components.
See all skill levels
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 firstname.lastname@example.org
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.