Part 1
요약·해설
1.25 m threshold, 세 sensor와 digit 대응, I2C·sw0 devicetree 요구 사항을 설명합니다.
3 × VL53L0X
4 × 7 segment
Distance · Proximity
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
7F92E724ECFDC2D4327829BB923D5465F5259C69F1A04476E79A2BC79A6475A5
.. zephyr:code-sample:: x-nucleo-53l0a1
:name: X-NUCLEO-53L0A1 shield
:relevant-api: sensor_interface gpio_interface
Interact with the 7-segment display and VL53L0X ranging sensor of an X-NUCLEO-53L0A1 shield.
Overview
********
This sample demonstrate the usage of the 4 digits x 7 segments display and the
three VL53L0X ranging sensors on the :ref:`x_nucleo_53l0a1_shield`.
When flashed on a board, 2 modes are available. To switch from one mode to the
other, press the button ``sw0``.
Distance (onboard sensor)
-------------------------
This is the default mode when starting up. In this mode, if the distance to
the center sensor (soldered on the shield) is lower than 1.25m, then the
4x7 segment display shows the distance in cm.
Proximity (onboard + satellites)
--------------------------------
In this mode, the 4x7 segment display shows 3 stacked horizontal bars if there
is something in proximity for each sensor. The left sensor is shown on the
leftmost digit, then the center sensor, then the right sensor.
The proximity threshold is configured in
:kconfig:option:`CONFIG_VL53L0X_PROXIMITY_THRESHOLD`
To switch from one mode to another, press the button ``sw0``
Requirements
************
This sample communicates over I2C with the X-NUCLEO-53L0A1 shield
stacked on a board with an Arduino connector. The board's I2C must be
configured for the I2C Arduino connector (both for pin muxing
and devicetree). The board must also have a button with the alias ``sw0``
in its device tree.
References
**********
* `X-NUCLEO-53L0A1 website`_
Building and Running
********************
This sample runs with X-NUCLEO-53L0A1 stacked on any board with a matching
Arduino connector. For this example, we use a :ref:`nucleo_f429zi_board` board.
.. zephyr-app-commands::
:zephyr-app: samples/shields/x_nucleo_53l0a1
:board: nucleo_f429zi
:goals: build
:compact:
.. _X-NUCLEO-53L0A1 website:
https://www.st.com/en/evaluation-tools/x-nucleo-53l0a1.html
Part 3
한국어 전문 번역
개요
X-NUCLEO-53L0A1 shield의 4자리 × 7-segment display와 VL53L0X ranging sensor 세 개를 사용하는 sample입니다.
Board에 flash하면 두 mode를 사용할 수 있으며 sw0 button으로 서로 전환합니다.
거리: onboard sensor
Startup의 기본 mode입니다. Shield에 납땜된 center sensor까지의 거리가 1.25 m보다 짧으면 4×7-segment display가 cm 단위 거리를 표시합니다.
근접: onboard + satellite sensor
세 sensor 각각의 근처에 물체가 있으면 display에 쌓인 가로 막대 세 개를 표시합니다. Left sensor는 가장 왼쪽 digit, center sensor는 가운데 digit, right sensor는 오른쪽 digit에 대응합니다.
Proximity threshold는 CONFIG_VL53L0X_PROXIMITY_THRESHOLD로 구성합니다. Mode를 바꾸려면 sw0를 누릅니다.
요구 사항
Sample은 Arduino connector가 있는 board에 쌓은 X-NUCLEO-53L0A1 shield와 I2C로 통신합니다. Board의 pin mux와 devicetree 모두에서 Arduino connector용 I2C가 구성되어야 합니다. 또한 devicetree에 sw0 alias를 가진 button이 있어야 합니다.
참고 자료
빌드 및 실행
Matching Arduino connector가 있는 어떤 board에서도 실행할 수 있습니다. 아래 예는 nucleo_f429zi board를 사용합니다.
west build -b nucleo_f429zi samples/shields/x_nucleo_53l0a1
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.