samples/sensor/sht3xd/README.html · samples/sensor/sht3xd/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Sensor · Environment

SHT3XD temperature·humidity

I2C humidity sensor와 선택적 ALERT GPIO로 ambient 상태를 측정합니다.

Official pathsamples/sensor/sht3xd/README.html
Source filesamples/sensor/sht3xd/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Wiring, supply 범위, pull-up, QEMU 제한과 실제 출력을 설명합니다.

Rate

2 Hz

Supply

2.15-5.5 V

Optional

ALERT trigger

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 65F8F3DC873843E18399EF00FC1C714DE0722F429646746F803D65A5D8A75BC6
.. _sht3xd:

SHT3XD: High accuracy digital I2C humidity sensor
#################################################

Description
***********

This sample application periodically (2 Hz) measures the ambient
temperature and humidity. The result is written to the console.
Optionally, it also shows how to use the upper threshold triggers.

References
**********

 - `SHT3X-DIS sensor <https://www.sensirion.com/en/environmental-sensors/humidity-sensors/digital-humidity-sensors-for-various-applications/>`_

Wiring
*******

This sample uses the SHT3X_DIS sensor controlled using the I2C interface.
Connect Supply: **VDD**, **GND** and Interface: **SDA**, **SCL**
and optionally connect the **ALERT** to a interrupt capable GPIO.
The supply voltage can be in the 2.15V to 5.5V range.
Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up
resistors.

Building and Running
********************

This project outputs sensor data to the console. It requires a SHT3XD
sensor. It should work with any platform featuring a I2C peripheral
interface.  It does not work on QEMU.  In this example below the
:ref:`nrf51_ble400` board is used.


.. zephyr-app-commands::
   :zephyr-app: samples/sensor/sht3xd
   :board: nrf51_ble400
   :goals: build flash

Sample Output
=============

.. code-block:: console

   SHT3XD: 19.64 Cel ; 41.96 %RH
   SHT3XD: 19.74 Cel ; 42.06 %RH
   SHT3XD: 19.75 Cel ; 42.08 %RH

<repeats endlessly>

Part 3

한국어 전문 번역

설명

이 sample application은 ambient temperature와 humidity를 2 Hz로 주기적으로 측정해 console에 기록합니다. 선택적으로 upper-threshold trigger 사용법도 보여 줍니다.

참고 자료

배선

이 sample은 I2C interface로 제어하는 SHT3X_DIS sensor를 사용합니다. Supply pin VDD·GND, interface pin SDA·SCL을 연결하고, 필요하면 ALERT를 interrupt-capable GPIO에 연결하십시오.

Supply voltage 범위는 2.15 V에서 5.5 V입니다. 사용하는 baseboard에 따라 SDA·SCL line에 pull-up resistor가 필요합니다.

빌드 및 실행

이 project는 sensor data를 console에 출력하며 SHT3XD sensor가 필요합니다. I2C peripheral interface가 있는 모든 platform에서 동작해야 하지만 QEMU에서는 동작하지 않습니다. 아래 예에서는 nrf51_ble400 board를 사용합니다.

# From the root of the zephyr repository
west build -b nrf51_ble400 samples/sensor/sht3xd
west flash

출력 예

SHT3XD: 19.64 Cel ; 41.96 %RH
SHT3XD: 19.74 Cel ; 42.06 %RH
SHT3XD: 19.75 Cel ; 42.08 %RH

섭씨 ambient temperature와 relative humidity를 계속 출력합니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.