cancel
Showing results for 
Search instead for 
Did you mean: 

VL6180X 'New Sample Ready threshold' issue

RCres.1
Associate III

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,

1 ACCEPTED SOLUTION

Accepted Solutions
RCres.1
Associate III

Hi, 

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

Regards,

Rafa

View solution in original post

2 REPLIES 2
RCres.1
Associate III

Any help on this?

Kind Regards

RCres.1
Associate III

Hi, 

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

Regards,

Rafa