Part 1
요약·해설
DISCO-L475-IOT1 요구 사항, 누락된 board parameter와 실제 출력을 설명합니다.
VL53L0X
Distance · Proximity
I2C
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
FEB3F8BD74E83504C04CA15F2EB76FD2FE8255E0C0033D3B79937E6B048EAFA3
.. _vl53l0x:
VL53L0X: Time Of Flight sensor
##############################
Overview
********
This sample periodically measures distance between vl53l0x sensor
and target. The result is displayed on the console.
It also shows how we can use the vl53l0x as a proximity sensor.
Requirements
************
This sample uses the VL53L0X sensor controlled using the I2C interface.
References
**********
- VL53L0X: https://www.st.com/en/imaging-and-photonics-solutions/vl53l0x.html
Building and Running
********************
This project outputs sensor data to the console. It requires a VL53L0X
sensor, which is present on the disco_l475_iot1 board.
.. zephyr-app-commands::
:app: samples/sensor/vl53l0x/
:goals: build flash
Sample Output
=============
.. code-block:: console
prox is 0
distance is 1938
prox is 1
distance is 70
prox is 0
distance is 1995
<repeats endlessly every second>
Part 3
한국어 전문 번역
개요
이 sample은 VL53L0X sensor와 target 사이의 distance를 주기적으로 측정해 console에 표시합니다. VL53L0X를 proximity sensor로 사용하는 방법도 보여 줍니다.
요구 사항
이 sample은 I2C interface로 제어하는 VL53L0X sensor를 사용합니다.
참고 자료
빌드 및 실행
이 project는 sensor data를 console에 출력합니다. disco_l475_iot1 board에 장착된 VL53L0X sensor가 필요합니다.
공식 source directive에는 board가 지정되지 않아 아래 보존된 rendered command에는 -b None이 나타납니다. 실제 실행할 때는 None을 VL53L0X가 있는 board 이름으로 바꾸어야 합니다.
west build -b None samples/sensor/vl53l0x/
west flash
출력 예
prox is 0
distance is 1938
prox is 1
distance is 70
prox is 0
distance is 1995
<repeats endlessly every second>
Target이 약 70 distance unit까지 가까워지면 proximity가 1이 되고, 약 1,938~1,995처럼 멀어지면 0으로 표시되는 예입니다. 측정은 매초 반복됩니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.