Skip to main content
RCres.1
Associate III
Sep 24, 2020 6:24 AM UTC
Solved

VL6180X 'New Sample Ready threshold' issue

Hi everyone,

I have an VL6180X connected to a PIC18F46J50. VL6180X is powered to 3V3 and I have implemented I2C routines and application code as in https://cdn.sparkfun.com/datasheets/Sensors/Proximity/VL6180_ApplicationNote.pdf to work in single shot mode.

However, when I am polling RESULT__INTERRUPT_STATUS_GPIO I always get 0x00, so I never get a range measurement.

- I am not using GPIO0 neither GPIO1

- On init, I am waiting until SYSTEM__FRESH_OUT_OF_RESET is 0x01 to set the VL6180X configuration.

- On Start Range I am checking RESULT__RANGE_STATUS is 0x01, and then writting 0x01 to SYSRANGE__START

- I have checked I2C communications and them works correctly.

Any idea of what I am missing?

Kind Regards,

This topic has been closed for replies.
RCres.1
RCres.1Best answer
Associate III
Oct 5, 2020 11:53 AM UTC

Hi, 

I have resolved the issue using SDA bit time = 20us

Regards,

Rafa

2 replies

RCres.1
RCres.1Author
Associate III
Sep 28, 2020 7:55 AM UTC

Any help on this?

Kind Regards

RCres.1
RCres.1AuthorBest answer
Associate III
Oct 5, 2020 11:53 AM UTC

Hi, 

I have resolved the issue using SDA bit time = 20us

Regards,

Rafa