Part 1
요약·해설
ADC·shield·LCD 요구 사항과 두 출력 경로의 wiring을 설명합니다.
ADC on A0
I2C RGB LCD
Celsius
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
684093B56A4CA5722D2DDDAA6D08CFE9F660ECF14445F2123612F6122012AFA5
.. _grove_temperature:
Grove Temperature Sensor
########################
Overview
********
This sample application gets the output of the grove temperature sensor and prints it to the
console, in units of celsius, once every second. When the :kconfig:option:`CONFIG_GROVE_LCD_RGB`
and :kconfig:option:`CONFIG_I2C` options are set, the temperature will also be displayed on the
Grove LCD display.
Requirements
************
To use this sample, the following hardware is required:
* A board with ADC support
* `Grove Temperature Sensor`_
* `Grove Base Shield`_
* `Grove LCD`_ [optional]
Wiring
******
The easiest way to connect the sensor is to connect it to a Grove shield on a board that supports
Arduino shields. Provide a devicetree overlay that specifies the sensor location. If using the
overlay provided for the sample, the sensor should be connected to A0 on the Grove shield. The
Grove LCD, if being used, should be connected to I2C on the Grove shield and the overlay needs to
contain an entry for it.
Building and Running
********************
Build and flash the sample as follows, changing ``nrf52dk_nrf52832`` to your board:
.. zephyr-app-commands::
:zephyr-app: samples/sensor/grove_temperature
:board: nrf52dk_nrf52832
:goals: build flash
:compact:
Sample Output
=============
.. code-block:: console
*** Booting Zephyr OS build v3.6.0-rc1-32-gba639ed6a893 ***
Temperature: 22.90 C
Temperature: 22.96 C
Temperature: 22.82 C
.. _Grove Base Shield: https://wiki.seeedstudio.com/Base_Shield_V2/
.. _Grove Temperature Sensor: https://wiki.seeedstudio.com/Grove-Temperature_Sensor_V1.2/
.. _Grove LCD: https://wiki.seeedstudio.com/Grove-LCD_RGB_Backlight/
Part 3
한국어 전문 번역
개요
이 sample application은 Grove temperature sensor output을 읽어 1초마다 섭씨 단위로 console에 출력합니다. CONFIG_GROVE_LCD_RGB와 CONFIG_I2C option을 설정하면 Grove LCD에도 temperature를 표시합니다.
요구 사항
- ADC를 지원하는 board
- Grove Temperature Sensor
- Grove Base Shield
- 선택 사항: Grove LCD
배선
가장 쉬운 연결 방법은 Arduino shield를 지원하는 board의 Grove shield에 sensor를 연결하는 것입니다. Sensor 위치를 지정하는 Devicetree overlay를 제공해야 하며 sample overlay를 사용한다면 sensor를 Grove shield의 A0에 연결합니다.
Grove LCD를 사용한다면 shield의 I2C에 연결하고 overlay에 LCD entry를 넣어야 합니다.
빌드 및 실행
다음 명령에서 nrf52dk_nrf52832를 사용할 board 이름으로 바꿔 build하고 flash합니다.
west build -b nrf52dk_nrf52832 samples/sensor/grove_temperature
west flash
출력 예
*** Booting Zephyr OS build v3.6.0-rc1-32-gba639ed6a893 ***
Temperature: 22.90 C
Temperature: 22.96 C
Temperature: 22.82 C
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.