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

Zephyr 3.7.0 · Samples · Sensor · Light

Grove light sensor

Grove Base Shield의 A0와 Devicetree overlay를 구성해 조도를 측정합니다.

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

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

Part 1

요약·해설

ADC board·Grove hardware 요구 사항과 build·lux output을 설명합니다.

Input

ADC

Unit

lux

Period

1 second

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 13DD019384E8416767CF072E67014E50903122259597522C2184927F4ED08E97
.. _grove_light:

Grove Light Sensor
##################

Overview
********

This sample application gets the output of the grove light sensor and prints it to the console, in
units of lux, once every second.

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

To use this sample, the following hardware is required:

* A board with ADC support
* `Grove Light Sensor`_
* `Grove Base Shield`_

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.

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

Build and flash the sample as follows, changing ``nrf52dk_nrf52832`` to your board:

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/grove_light
   :board: nrf52dk_nrf52832
   :goals: build flash
   :compact:

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

.. code-block:: console

    *** Booting Zephyr OS build v3.6.0-rc1-32-gba639ed6a893 ***
    lux: 0.945751
    lux: 0.882292
    lux: 0.755973

.. _Grove Base Shield: https://wiki.seeedstudio.com/Base_Shield_V2/
.. _Grove Light Sensor: https://wiki.seeedstudio.com/Grove-Light_Sensor/

Part 3

한국어 전문 번역

개요

이 sample application은 Grove light sensor output을 읽어 1초마다 lux 단위로 console에 출력합니다.

요구 사항

배선

가장 쉬운 연결 방법은 Arduino shield를 지원하는 board의 Grove shield에 sensor를 연결하는 것입니다. Sensor 위치를 지정하는 Devicetree overlay를 제공해야 합니다. Sample이 제공하는 overlay를 사용한다면 Grove shield의 A0에 sensor를 연결합니다.

빌드 및 실행

다음 명령에서 nrf52dk_nrf52832를 사용할 board 이름으로 바꿔 build하고 flash합니다.

west build -b nrf52dk_nrf52832 samples/sensor/grove_light
west flash

출력 예

*** Booting Zephyr OS build v3.6.0-rc1-32-gba639ed6a893 ***
lux: 0.945751
lux: 0.882292
lux: 0.755973

Source

출처

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