1.. zephyr:code-sample:: vl53l0x 2 :name: VL53L0X Time Of Flight sensor 3 :relevant-api: sensor_interface 4 5 Get distance data from a VL53L0X sensor (polling mode). 6 7Overview 8******** 9 10This sample periodically measures distance between vl53l0x sensor 11and target. The result is displayed on the console. 12It shows the usage of all available channels including private ones. 13 14Requirements 15************ 16 17This sample uses the VL53L0X sensor controlled using the I2C interface. 18 19References 20********** 21 22 - VL53L0X: https://www.st.com/en/imaging-and-photonics-solutions/vl53l0x.html 23 24Building and Running 25******************** 26 27This project outputs sensor data to the console. It requires a VL53L0X 28sensor, which is present on the disco_l475_iot1 board. 29 30.. zephyr-app-commands:: 31 :zephyr-app: samples/sensor/vl53l0x/ 32 :goals: build flash 33 34 35Sample Output 36============= 37 38.. code-block:: console 39 40 prox is 0 41 distance is 1874 mm 42 Max distance is 000 mm 43 Signal rate is 33435 Cps 44 Ambient rate is 17365 Cps 45 SPADs used: 195 46 Status: OK 47 48 prox is 0 49 distance is 1888 mm 50 Max distance is 000 mm 51 Signal rate is 20846 Cps 52 Ambient rate is 25178 Cps 53 SPADs used: 195 54 Status: OK 55 56 <repeats endlessly every 5 seconds> 57