ZX Distance and Gesture Sensor doesn’t work with Arduino Nano BLE

Hey!

I have a Sparkfun ZX Gesture Sensor which I’m trying to connect to Arduino Nano BLE but it doesn’t work. I’ve hooked it up as described in the guide but I couldn’t get it to work. (see attachmnet)

I wonder if it is only compatible with RedBoard or if it should go with any arduino board.

Note that Arduino Nano that I’m using provides only 3.6V

Thank you

It will work with that board; it looks like the INT/DR pin might be one-off, try moving that down one pin from the 7th hole/pin (INT1) to the 6th hole/pin (INT0) https://i2.wp.com/www.teachmemicro.com/ … 1500&ssl=1 (same pinout as nano BLE)

If that doesn’t work, try the example that does not use the interrupt (ZX Example, instead of Gesture Example) in the guide to verify the sensor is working https://learn.sparkfun.com/tutorials/zx … zx-example (which does not use the DR signal)

TS-Russell:
It will work with that board; it looks like the INT/DR pin might be one-off, try moving that down one pin from the 7th hole/pin (INT1) to the 6th hole/pin (INT0) https://i2.wp.com/www.teachmemicro.com/ … 1500&ssl=1 (same pinout as nano BLE)

I tried both INT0 and INT1 but it didn't work (please check images). I mean I don't any serial output when trying gesture examples.

TS-Russell:
If that doesn’t work, try the example that does not use the interrupt (ZX Example, instead of Gesture Example) in the guide to verify the sensor is working https://learn.sparkfun.com/tutorials/zx … zx-example (which does not use the DR signal)

I tried the example "I2C_ZX_Demo.ino" and I got number but they do not change when I move my hand in front of the sensor.

Your wires are blocking the sensor, switch them to the other side. :slight_smile:

Thanks but I wasn’t the problem

Ghaith:
Thanks but I wasn’t the problem

it*

Maybe try disabling the pullup resistors https://cdn.sparkfun.com/assets/learn_t … 162_03.jpg (“I2c pullup”) by de-soldering…you can always re-solder if needed

Also, just to be sure, the brown film that ships covering the sensor element is removed, right?

Is using UART an option?

TS-Russell:
Maybe try disabling the pullup resistors https://cdn.sparkfun.com/assets/learn_t … 162_03.jpg (“I2c pullup”) by de-soldering…you can always re-solder if needed

I will try to do that

TS-Russell:
Also, just to be sure, the brown film that ships covering the sensor element is removed, right?

Not sure which film you mean. I haven't removed anything.

TS-Russell:
Is using UART an option?

Yes, but I'm not sure how to hook it up to my board (nano ble sense)

Google “Nano BLE sense UART” to find other examples (likely using other types of sensors/products) and wire it up to the relevant pins

Do you happen to have an Uno? I’d test it there first just to make sure the board is working. If it works on an Uno, there might me some code incompatibility you will need to resolve to get it working on the nano ble.