Part 1
요약·해설
DHT 배선 configuration, nRF52 DK build와 연속 측정 출력을 설명합니다.
Temperature
°C
Humidity
%RH
Rate
0.5 Hz
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
F5313ED2F4451366EC0603146DB57438D366E9AA41B430696154B70C317B3A8B
.. _dht:
DHT: Aosong DHT Digital-output Humidity and Temperature Sensor
##############################################################
Description
***********
This sample application periodically (0.5 Hz) measures the ambient
temperature and humidity. The result is written to the console.
Wiring
*******
This sample uses an external breakout for the sensor. A devicetree
overlay must be provided to identify the sensor variant and the GPIO
used to control the sensor.
Building and Running
********************
After providing a devicetree overlay that specifies the sensor location,
build this sample app using:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/dht
:board: nrf52dk/nrf52832
:goals: build flash
Sample Output
=============
.. code-block:: console
*** Booting Zephyr OS build zephyr-v2.1.0-329-g38418b26c4cc ***
[0:00:00.027]: 20.0 Cel ; 48.7 %RH
[0:00:02.053]: 19.8 Cel ; 48.7 %RH
[0:00:04.079]: 20.0 Cel ; 48.7 %RH
[0:00:06.105]: 19.8 Cel ; 48.7 %RH
[0:00:08.130]: 20.0 Cel ; 48.8 %RH
[0:00:10.156]: 20.1 Cel ; 48.8 %RH
[0:00:12.182]: 19.7 Cel ; 48.7 %RH
[0:00:14.207]: 20.0 Cel ; 48.8 %RH
<repeats endlessly>
Part 3
한국어 전문 번역
설명
이 sample application은 0.5 Hz, 즉 2초 간격으로 주변 temperature와 humidity를 측정합니다. 결과는 console에 출력합니다.
배선
이 sample은 외부 sensor breakout을 사용합니다. Sensor variant와 sensor를 제어할 GPIO를 식별하는 Devicetree overlay를 제공해야 합니다.
빌드 및 실행
Sensor 위치를 지정하는 Devicetree overlay를 준비한 뒤 다음 명령으로 sample application을 build하고 flash합니다.
# From the root of the zephyr repository
west build -b nrf52dk/nrf52832 samples/sensor/dht
west flash
출력 예
*** Booting Zephyr OS build zephyr-v2.1.0-329-g38418b26c4cc ***
[0:00:00.027]: 20.0 Cel ; 48.7 %RH
[0:00:02.053]: 19.8 Cel ; 48.7 %RH
[0:00:04.079]: 20.0 Cel ; 48.7 %RH
[0:00:06.105]: 19.8 Cel ; 48.7 %RH
[0:00:08.130]: 20.0 Cel ; 48.8 %RH
[0:00:10.156]: 20.1 Cel ; 48.8 %RH
[0:00:12.182]: 19.7 Cel ; 48.7 %RH
[0:00:14.207]: 20.0 Cel ; 48.8 %RH
출력은 끝없이 반복됩니다. Cel은 섭씨 온도이고 %RH는 상대 습도입니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.