cancel
Showing results for 
Search instead for 
Did you mean: 

vl53l0x in continue and Time mode

zhy
Associate

Hi,

       vl53l0x in continue mode ,how to read data_status and in time mode how to set time and read data and data_status?

              thanks

2 REPLIES 2
zhy
Associate

Which function and where to call it, or do you need to check the data correctness for both patterns?

Hi 

For 53L0X, it can either works in continuous mode or Continuous Timed Ranging mode, you can set the ranging mode by VL53L0X_SetDeviceMode()

and bout timing seting,

  • timing budget, you can set by VL53L0X_SetMeasurementTimingBudgetMicroSeconds()
  • if your prefer timed mode, you also need to set inter measurement time by VL53L0X_SetInterMeasurementPeriodMilliSeconds()

once measuring is done and data is ready, you can read out the data by VL53L0X_GetRangingMeasurementData().  

for more detail, please visit below two link in www.st.com for more information.

VL53L0X API User_Manual.fm

STSW-IMG005 | Product - STMicroelectronics

 

Br

Zhiyuan.Han


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.