Part 1
요약·해설
Hardware 요구 사항, board build와 timestamped digital output을 설명합니다.
SM351LT
BT510
0.5 Hz
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
D2E83E50B1F4E08C74DFCF0EC0D40B7FA57A30D56AC338BA7340FF0CB3BA591B
.. _sm351lt:
SM351LT: Magnetoresistive Sensor Example
########################################
Overview
********
This sample application periodically polls an SM351LT magnetoresistive sensor
and displays if a magnet near to the sensor, via the console.
Requirements
************
This sample uses the Honeywell SM351LT sensor.
References
**********
For more information about the SM351LT magnetoresistive sensor see
https://sensing.honeywell.com/SM351LT-low-power
Building and Running
********************
The SM351LT (or compatible) sensors are available on the following boards:
* :ref:`bt510`
Building on bt510
==================
:ref:`bt510` includes a Honeywell SM351LT magnetoresistive sensor.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/sm351lt
:board: bt510
:goals: build flash
:compact:
Sample Output
=============
.. code-block:: console
Polling at 0.5 Hz
#1 @ 6 ms: 1
#2 @ 2007 ms: 0
#3 @ 4009 ms: 0
#4 @ 6010 ms: 1
#5 @ 8012 ms: 1
Part 3
한국어 전문 번역
개요
이 sample application은 SM351LT magnetoresistive sensor를 주기적으로 polling하고 sensor 가까이에 magnet이 있는지를 console에 표시합니다.
요구 사항
이 sample은 Honeywell SM351LT sensor를 사용합니다.
참고 자료
자세한 내용은 SM351LT low-power magnetoresistive sensor 페이지를 참조하십시오.
빌드 및 실행
SM351LT 또는 호환 sensor는 bt510 board에서 사용할 수 있습니다.
bt510에서 빌드
bt510에는 Honeywell SM351LT magnetoresistive sensor가 포함되어 있습니다.
west build -b bt510 samples/sensor/sm351lt
west flash
출력 예
Polling at 0.5 Hz
#1 @ 6 ms: 1
#2 @ 2007 ms: 0
#3 @ 4009 ms: 0
#4 @ 6010 ms: 1
#5 @ 8012 ms: 1
Sample은 0.5 Hz, 즉 2초마다 상태를 읽습니다. 각 행은 sample 번호, 시작 후 경과 시간과 magnet detection 상태 0 또는 1을 보여 줍니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.