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

Zephyr 3.7.0 · Samples · Sensor · Environment

TI HDC temperature·humidity

Pmod HYGRO를 Nucleo I2C에 연결해 raw·converted Temp/RH를 읽습니다.

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

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

Part 1

요약·해설

4개 wire, build·output과 build/target device testing 명령을 보존합니다.

Sensors

HDC1010 · HDC1080

Board

Nucleo L496ZG

Tests

Build · Target

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 28790BA8BC08E2D12922A9B39EC30F792BE3A5EA8FF6B3EE77D20BC7D4E8B50F
.. _ti_hdc_sample:

TI_HDC Sample
##############

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

This sample application periodically takes Temperature and Humidity
using the ti_hdc sensor driver. The result is written to the console.

Requirements
************

This sample needs a compatible sensor like HDC1010 or HDC1080
connected to the target board's I2C connector.

Example Breakout Boards:

* Pmod HYGRO: Humidity and Temperature Sensor Breakout board


Wiring
******

This sample is tested with the STM32L496ZG nucleo and the Pmod HYGRO
Temp/RH breakout board.

The sensor operates at 3.3V and uses I2C to communicate with the board.

External Wires:

* Breakout **GND** pin <--> Nucleo **GND** pin
* Breakout **VCC** pin <--> Nucleo **3V3** pin
* Breakout **SDA** pin <--> Nucleo **CN7-D14** pin
* Breakout **SCL** pin <--> Nucleo **CN7-D15** pin

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

This sample builds one application for the HDC1080 sensor.
Build/Flash Steps:

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/ti_hdc/
   :board: nucleo_l496zg
   :goals: build flash
   :compact:

Sample Output
*************
.. code-block:: console

    Running on arm!
    Dev 0x20001160 name HDC1080 is ready!
    Fetching...
    Raw Temp = 25144, Temp = 23.305053 C, Raw RH = 32292, RH = 49.273681 %
    Fetching...
    Raw Temp = 25148, Temp = 23.315124 C, Raw RH = 32424, RH = 49.475097 %
    ...

Build Testing
**************

.. code-block:: bash

    $ZEPHYR_BASE/scripts/twister -T $ZEPHYR_BASE/samples/sensor/ti_hdc/ -p nucleo_l496zg --device-testing --device-serial /dev/ttyACM0 -t build

Target Testing
**************

.. code-block:: bash

    $ZEPHYR_BASE/scripts/twister -T $ZEPHYR_BASE/samples/sensor/ti_hdc/ -p nucleo_l496zg --device-testing --device-serial /dev/ttyACM0 -t target


References
**********

.. _Nucleo STM32L496ZG board: https://www.st.com/en/evaluation-tools/nucleo-l496zg.html
.. _HDC1080 Breakout board: https://store.digilentinc.com/pmod-hygro-digital-humidity-and-temperature-sensor/

Part 3

한국어 전문 번역

설명

이 sample application은 ti_hdc sensor driver로 temperature와 humidity를 주기적으로 측정해 console에 기록합니다.

요구 사항

Target board의 I2C connector에 연결한 HDC1010 또는 HDC1080 같은 compatible sensor가 필요합니다. Breakout 예로 Pmod HYGRO humidity·temperature sensor board를 사용할 수 있습니다.

배선

이 sample은 STM32L496ZG Nucleo와 Pmod HYGRO Temp/RH breakout board 조합으로 시험되었습니다. Sensor는 3.3 V에서 동작하고 I2C로 board와 통신합니다.

  • Breakout GND ↔ Nucleo GND
  • Breakout VCC ↔ Nucleo 3V3
  • Breakout SDA ↔ Nucleo CN7-D14
  • Breakout SCL ↔ Nucleo CN7-D15

빌드 및 실행

이 sample은 HDC1080 sensor용 application 하나를 build합니다.

west build -b nucleo_l496zg samples/sensor/ti_hdc/
west flash

출력 예

Running on arm!
Dev 0x20001160 name HDC1080 is ready!
Fetching...
Raw Temp = 25144, Temp = 23.305053 C, Raw RH = 32292, RH = 49.273681 %
Fetching...
Raw Temp = 25148, Temp = 23.315124 C, Raw RH = 32424, RH = 49.475097 %
...

Raw temperature·humidity word와 변환된 섭씨·relative-humidity 값을 함께 출력합니다.

Build testing

$ZEPHYR_BASE/scripts/twister -T $ZEPHYR_BASE/samples/sensor/ti_hdc/ -p nucleo_l496zg --device-testing --device-serial /dev/ttyACM0 -t build

Target testing

$ZEPHYR_BASE/scripts/twister -T $ZEPHYR_BASE/samples/sensor/ti_hdc/ -p nucleo_l496zg --device-testing --device-serial /dev/ttyACM0 -t target

참고 자료

Source

출처

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