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

Zephyr 3.7.0 · Samples · Sensor · Motion

ICM42605 motion sensor

외부 breakout의 SPI·GPIO를 정의하고 10 Hz motion measurement를 timestamp와 함께 읽습니다.

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

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

Part 1

요약·해설

공식 제목과 sample 경로의 불일치를 표시하고, wiring·build·19줄 출력을 정확히 보존합니다.

Path

icm42605

Signals

Temp · Accel · Gyro

Rate

10 Hz

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 2A988891F89133ADE1CF9503866974D8EE9DAE99229EE9CA85F8AF77EEB6008F
.. _icm42605:

MPU6050: Invensense Motion Tracking Device
##########################################

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

This sample application periodically (10 Hz) measures the sensor
temperature, acceleration, and angular velocity, tap, double tap
displaying the values on the console along with a timestamp since
startup.

Wiring
*******

This sample uses an external breakout for the sensor.  A devicetree
overlay must be provided to identify the SPI bus and GPIO used to
control the sensor.

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

After providing a devicetree overlay that specifies the sensor location,
build this sample app using:

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/icm42605
   :board: nrf52dk/nrf52832
   :goals: build flash

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

.. code-block:: console

   *** Booting Zephyr OS build zephyr-v2.1.0-576-g4b38659b0661  ***
   [0:00:00.008]:23.6359 Cel
     accel -5.882554 -6.485893  5.868188 m/s/s
     gyro   0.014522  0.002264 -0.036905 rad/s
   [0:00:02.020]:23.6359 Cel
     accel -5.841853 -6.435615  5.911283 m/s/s
     gyro   0.017852  0.001199 -0.034640 rad/s
   [0:00:04.032]:23.6829 Cel
     accel -5.930438 -6.461951  6.009446 m/s/s
     gyro   0.012923  0.002131 -0.037171 rad/s
   [0:00:06.044]:23.6359 Cel
     accel -5.884948 -6.524200  5.961562 m/s/s
     gyro   0.012390 -0.001732 -0.045964 rad/s
   [0:00:08.056]:35.7712 Cel
     accel -5.863400 -12.872426 -0.154427 m/s/s
     gyro  -0.034373 -0.034373 -0.034373 rad/s
   [0:00:10.068]:23.6829 Cel
     accel -5.906496 -6.461951  5.899312 m/s/s
     gyro   0.015321 -0.000399 -0.039169 rad/s

<repeats endlessly>

Part 3

한국어 전문 번역

설명

이 page의 공식 원문 제목은 MPU6050: Invensense Motion Tracking Device로 되어 있지만, 문서 경로와 build 대상 sample은 icm42605입니다. 원문 제목은 추적 가능성을 위해 그대로 보존했습니다.

이 sample application은 sensor temperature, acceleration, angular velocity, tap과 double tap을 주기적으로 10 Hz에서 측정하고, system 시작 후 경과한 timestamp와 함께 값을 console에 표시합니다.

배선

이 sample은 외부 sensor breakout을 사용합니다. Sensor가 연결된 SPI bus와 sensor 제어에 쓰는 GPIO를 식별하는 Devicetree overlay를 제공해야 합니다.

빌드 및 실행

Sensor 위치를 지정하는 Devicetree overlay를 준비한 뒤, 다음 명령으로 sample application을 build하고 flash합니다.

# From the root of the zephyr repository
west build -b nrf52dk/nrf52832 samples/sensor/icm42605
west flash

출력 예

*** Booting Zephyr OS build zephyr-v2.1.0-576-g4b38659b0661  ***
[0:00:00.008]:23.6359 Cel
  accel -5.882554 -6.485893  5.868188 m/s/s
  gyro   0.014522  0.002264 -0.036905 rad/s
[0:00:02.020]:23.6359 Cel
  accel -5.841853 -6.435615  5.911283 m/s/s
  gyro   0.017852  0.001199 -0.034640 rad/s
[0:00:04.032]:23.6829 Cel
  accel -5.930438 -6.461951  6.009446 m/s/s
  gyro   0.012923  0.002131 -0.037171 rad/s
[0:00:06.044]:23.6359 Cel
  accel -5.884948 -6.524200  5.961562 m/s/s
  gyro   0.012390 -0.001732 -0.045964 rad/s
[0:00:08.056]:35.7712 Cel
  accel -5.863400 -12.872426 -0.154427 m/s/s
  gyro  -0.034373 -0.034373 -0.034373 rad/s
[0:00:10.068]:23.6829 Cel
  accel -5.906496 -6.461951  5.899312 m/s/s
  gyro   0.015321 -0.000399 -0.039169 rad/s

각 record에는 경과 timestamp, 섭씨 sensor temperature, 세 축 acceleration(m/s/s)과 세 축 angular velocity(rad/s)가 들어갑니다. 출력은 끝없이 반복됩니다.

Source

출처

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