Skip to main content
Visitor II
December 23, 2016
Question

vl6180x is always busy in single shot reading mode

  • December 23, 2016
  • 3 replies
  • 1046 views
Posted on December 23, 2016 at 13:21

After sending 'single shot reading mode' command (sending 0x01 to register 0x0018), I check 'RESULT_INTERRUPT_STATUS_GPIO' register at 0x04F and always read 0x00 that means it is busy.

I replaced vl6180x with a new one but problem still continues.

I do not have any problem in reading/writing from/to vl6180x registers. Initial values are standard values given in application notes.

Anybody comments on this problem ?

thanks in advance

    This topic has been closed for replies.

    3 replies

    Visitor II
    December 28, 2016
    Posted on December 28, 2016 at 08:34

    Hello

    I have moved this thread to

    https://community.st.com/community/mems-sensors-community/mems-sensors-forum?sr=search&searchId=ce13c706-76c3-41bc-a0af-aa41d2ead3f9&searchIndex=1

    ‌ where product-related questions are asked.

    Thanks

    Oli

    Visitor II
    October 10, 2017
    Posted on October 10, 2017 at 14:51

    Hi Cem kar

    I have the same problem.

    Initialization and Defaul setting acording to app notes,,

    Starting Single shot mode

    Polling for INTERRUPT_STATUS_GPIO = 0x04

    Logging RESULT_RANGE_STATUS

    No data in result.

    All communication in I2C is OK. I can write and read to alle registers.

    All help is apriciated.

    Visitor II
    December 11, 2018

    I have a problem reading /writing from vl6180x using i2c.

    if(HAL_I2C_Master_Transmit(&hi2c1,0x52,0x00,1,100) ==HAL_OK){

    HAL_GPIO_WritePin(GPIOC, GPIO_PIN_8, GPIO_PIN_SET);

    HAL_Delay(10);

    }

    This don't set to GPIOC8.