samples/shields/x_nucleo_iks4a1/standard/README.html · samples/shields/x_nucleo_iks4a1/standard/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Shields · Sensors

X-NUCLEO-IKS4A1 Standard Mode 1

Mode 1에서 IMU 두 개, pressure sensor와 magnetometer를 각각 읽습니다.

Official pathsamples/shields/x_nucleo_iks4a1/standard/README.html
Source filesamples/shields/x_nucleo_iks4a1/standard/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

네 sensor의 direct route, build+flash와 exact trigger output을 보존합니다.

IMU

LSM6DSV16X · LSM6DSO16IS

Pressure

LPS22DF

Magnetic

LIS2MDL

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 2CFE79B0838BA619F27D51FFF763ADC9181BDE6FCADA718019CB726E73B7725E
.. _x-nucleo-iks4a1-std-sample:

X-NUCLEO-IKS4A1 shield Standard (Mode 1) sample
###############################################

Overview
********
This sample is provided as an example to test the X-NUCLEO-IKS4A1 shield
configured in Standard mode (Mode 1).
Please refer to :ref:`x-nucleo-iks4a1-mode-1` for more info on this configuration.

This sample enables the following four sensors of a X-NUCLEO-IKS4A1 shield, and then
periodically reads and displays data from the shield sensors:

- LSM6DSV16X 6-Axis acceleration and angular velocity
- LSM6DSO16IS 6-Axis acceleration and angular velocity
- LPS22DF ambient temperature and atmospheric pressure
- LIS2MDL 3-Axis magnetic field intensity

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

This sample communicates over I2C with the X-NUCLEO-IKS4A1 shield
stacked on a board with an Arduino connector, e.g. the
:ref:`nucleo_f411re_board` board.

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

This sample runs with X-NUCLEO-IKS4A1 stacked on any board with a matching
Arduino connector. For this example, we use a :ref:`nucleo_f411re_board` board.

.. zephyr-app-commands::
   :zephyr-app: samples/shields/x_nucleo_iks4a1/standard/
   :host-os: unix
   :board: nucleo_f411re
   :goals: build flash
   :compact:

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

 .. code-block:: console

    X-NUCLEO-IKS4A1 sensor dashboard

    LIS2MDL: Magn (gauss): x: -0.364, y: -0.523, z: -0.399
    LIS2MDL: Temperature: 22.4 C
    LSM6DSO16IS: Accel (m.s-2): x: -0.167, y: -0.249, z: 9.954
    LSM6DSO16IS: GYro (dps): x: 0.047, y: -0.052, z: -0.042
    LSM6DSO16IS: Temperature: 25.8 C
    LSM6DSV16X: Accel (m.s-2): x: 0.005, y: 0.053, z: 9.930
    LSM6DSV16X: GYro (dps): x: -0.000, y: 0.000, z: 0.005
    LPS22DF: Temperature: 25.2 C
    LPS22DF: Pressure:98.121 kpa
    10:: lis2mdl trig 1839
    10:: lsm6dso16is acc trig 3892
    10:: lsm6dsv16x acc trig 4412
    10:: lps22df trig 174

    <updated endlessly every 2 seconds>

References
**********

:ref:`x-nucleo-iks4a1`

Part 3

한국어 전문 번역

개요

X-NUCLEO-IKS4A1 shield를 Standard mode(Mode 1)로 구성해 네 sensor를 독립적으로 활성화하고 주기적으로 읽는 sample입니다. Mode 1 configuration은 shield 문서를 참조합니다.

  • LSM6DSV16X: 6-axis acceleration과 angular velocity
  • LSM6DSO16IS: 6-axis acceleration과 angular velocity
  • LPS22DF: ambient temperature와 atmospheric pressure
  • LIS2MDL: 3-axis magnetic field intensity

SHUB1·SHUB2와 달리 external sensor data를 IMU 하나를 통해 전달하지 않고 각 sensor driver를 직접 사용합니다.

요구 사항

Arduino connector가 있는 board에 shield를 쌓고 I2C로 통신합니다. 예제 host는 nucleo_f411re입니다.

빌드 및 실행

Matching Arduino connector가 있는 board에서 실행할 수 있습니다. 다음은 Unix host에서 nucleo_f411re용으로 build하고 flash하는 command입니다.

west build -b nucleo_f411re samples/shields/x_nucleo_iks4a1/standard/
west flash

출력 예

X-NUCLEO-IKS4A1 sensor dashboard

LIS2MDL: Magn (gauss): x: -0.364, y: -0.523, z: -0.399
LIS2MDL: Temperature: 22.4 C
LSM6DSO16IS: Accel (m.s-2): x: -0.167, y: -0.249, z: 9.954
LSM6DSO16IS: GYro (dps): x: 0.047, y: -0.052, z: -0.042
LSM6DSO16IS: Temperature: 25.8 C
LSM6DSV16X: Accel (m.s-2): x: 0.005, y: 0.053, z: 9.930
LSM6DSV16X: GYro (dps): x: -0.000, y: 0.000, z: 0.005
LPS22DF: Temperature: 25.2 C
LPS22DF: Pressure:98.121 kpa
10:: lis2mdl trig 1839
10:: lsm6dso16is acc trig 3892
10:: lsm6dsv16x acc trig 4412
10:: lps22df trig 174

<updated endlessly every 2 seconds>

LIS2MDL magnetic field·temperature, 두 IMU의 acceleration·gyroscope, LPS22DF temperature·pressure와 sensor별 trigger count를 표시하며 2초마다 갱신합니다. GYro의 대소문자는 exact source를 보존했습니다.

참고 자료

X-NUCLEO-IKS4A1 shield 문서를 참조하십시오.

Source

출처

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