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

Zephyr 3.7.0 · Samples · Sensor · Temperature

TMP116·TMP117 sample

Nucleo F401RE에 TMP116 또는 TMP117을 연결해 temperature를 주기적으로 읽습니다.

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

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

Part 1

요약·해설

3.3 V·4-wire 배선, build와 /dev/ttyACM0 115200 8N1 설정을 설명합니다.

Sensors

TMP116 · TMP117

Bus

I2C · 3.3 V

Serial

115200 8N1

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 57AE0B8A459DC563591AC91B747FAC754B7664D49E2050C4FE033ECE81E04508
.. _ti_tmp116_sample:

TI_TMP116 Sample
################

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

This sample application periodically takes temperature readings using the ti_tmp116
sensor driver. The result is written to the console. This sample also included the code
to use the  features provided by TMP117, which is a sensor similar to TMP116

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

This sample needs a TI TMP116 or TI TMP117 sensor connected to the target board's I2C
connector.


Wiring
******

This sample is tested with Nucleo STM32F401RE 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 **CN5-D14** pin
* Breakout **SCL** pin <--> Nucleo **CN5-D15** pin

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

In order to build the sample, connect the board to the computer with a USB cable and enter the
following commands:

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/tmp116
   :board: nucleo_f401re
   :goals: build flash
   :compact:

Sample Output
*************
The output can be seen via a terminal emulator (e.g. minicom). Connect the board with a USB cable
to the computer and open /dev/ttyACM0 with the below serial settings:

* Baudrate: 115200
* Parity: None
* Data: 8
* Stop bits: 1

The output should look like this:

.. code-block:: console

    Device TMP116 - 0x200010a8 is ready
    temp is 26.7031250 oC
    temp is 26.7109375 oC
    ...

Part 3

한국어 전문 번역

설명

이 sample application은 ti_tmp116 sensor driver로 temperature를 주기적으로 읽어 console에 기록합니다. TMP116과 유사한 TMP117이 제공하는 기능을 사용하는 code도 포함되어 있습니다.

요구 사항

Target board의 I2C connector에 연결한 TI TMP116 또는 TI TMP117 sensor가 필요합니다.

배선

이 sample은 Nucleo STM32F401RE board에서 시험되었습니다. Sensor는 3.3 V에서 동작하며 I2C로 board와 통신합니다.

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

빌드 및 실행

USB cable로 board를 computer에 연결한 뒤 다음 명령으로 build하고 flash합니다.

west build -b nucleo_f401re samples/sensor/tmp116
west flash

출력 예

Minicom 같은 terminal emulator로 출력을 확인할 수 있습니다. USB로 board를 연결하고 /dev/ttyACM0을 baud rate 115200, parity 없음, data bit 8, stop bit 1로 여십시오.

Device TMP116 - 0x200010a8 is ready
temp is 26.7031250 oC
temp is 26.7109375 oC
...

Source

출처

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