Skip to main content
Visitor II
September 24, 2020
Solved

VL6180X 'New Sample Ready threshold' issue

  • September 24, 2020
  • 2 replies
  • 1377 views

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.
    Best answer by RCres.1

    Hi, 

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

    Regards,

    Rafa

    2 replies

    RCres.1Author
    Visitor II
    September 28, 2020

    Any help on this?

    Kind Regards

    RCres.1AuthorAnswer
    Visitor II
    October 5, 2020

    Hi, 

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

    Regards,

    Rafa