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

Zephyr 3.7.0 · Samples · Sensor · Motion

I3G4250D 3축 digital gyroscope

고정 sampling rate와 같은 polling 주기로 x·y·z 측정값과 경과 시간을 출력합니다.

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

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

Part 1

요약·해설

SPI·Devicetree 요구 사항, STM32F3 build와 200 Hz 출력 의미를 설명합니다.

Sensor

I3G4250D

Bus

SPI

Rate

200 Hz

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 927EDD07FE26DFB0308E1F0DDC31DB5C7A3D6FD92491AF9E4FEAF611C5CF7E1D
.. _i3g4250d:

I3G4250D: 3-axis digital output gyroscope
#########################################

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

This sample application configures the gyroscope with a fixed
sampling rate and polls the measurements with the same rate and
displays the measurements along with a timestamp since startup.

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

This sample application uses the I3G4250D sensor connected via
SPI interface. This is the case for example for stm32f3_disco@E
board devicetree.

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

To build the application a board with I3G4250D on SPI interface
has to be chosen, or a custom devicetree overlay has to be provided.
Here STM32F3 discovery board is used.

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/i3g4250d
   :board: stm32f3_disco@E
   :goals: build flash

Sample Output
*************

.. code-block:: console

   *** Booting Zephyr OS build zephyr-v2.6.0-1897-ga09838064f26  ***
   Set sensor sampling frequency to 200.000000 Hz.
   Polling at 200.000000 Hz
   12 ms: x 2454.031430 , y 2336.015410 , z -1800.030108
   22 ms: x -248.003106 , y -268.979704 , z 6.018390
   32 ms: x -214.989906 , y -237.023468 , z 6.013926
   41 ms: x -193.978308 , y -205.032232 , z 2.000356
   51 ms: x -158.986716 , y -171.014568 , z 3.969998
   60 ms: x -138.979582 , y -153.003326 , z 3.978748
   70 ms: x -120.981554 , y -129.982800 , z -13.971422
   80 ms: x -106.984060 , y -112.967272 , z -80.006572

Part 3

한국어 전문 번역

설명

이 sample application은 gyroscope를 고정 sampling rate로 설정하고, 같은 주기로 측정값을 polling합니다. 각 측정값은 system 시작 후 경과한 timestamp와 함께 표시됩니다.

요구 사항

이 sample application은 SPI interface로 연결한 I3G4250D sensor를 사용합니다. 예를 들어 stm32f3_disco@E board의 Devicetree가 이 구성에 해당합니다.

빌드 및 실행

Application을 build하려면 SPI interface에 I3G4250D가 연결된 board를 선택해야 합니다. 그런 board가 없다면 sensor 위치를 기술하는 사용자 정의 Devicetree overlay를 제공해야 합니다. 아래 예에서는 STM32F3 Discovery board를 사용합니다.

# From the root of the zephyr repository
west build -b stm32f3_disco@E samples/sensor/i3g4250d
west flash

출력 예

*** Booting Zephyr OS build zephyr-v2.6.0-1897-ga09838064f26  ***
Set sensor sampling frequency to 200.000000 Hz.
Polling at 200.000000 Hz
12 ms: x 2454.031430 , y 2336.015410 , z -1800.030108
22 ms: x -248.003106 , y -268.979704 , z 6.018390
32 ms: x -214.989906 , y -237.023468 , z 6.013926
41 ms: x -193.978308 , y -205.032232 , z 2.000356
51 ms: x -158.986716 , y -171.014568 , z 3.969998
60 ms: x -138.979582 , y -153.003326 , z 3.978748
70 ms: x -120.981554 , y -129.982800 , z -13.971422
80 ms: x -106.984060 , y -112.967272 , z -80.006572

Sensor sampling frequency와 polling rate를 모두 200 Hz로 설정한 뒤, 시작 후 경과 시간(ms)과 x·y·z 세 축 angular velocity 값을 출력합니다.

Source

출처

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