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

Zephyr 3.7.0 · Samples · Shields · Sensor Hub

X-NUCLEO-IKS4A1 SHUB2 Mode 2

Mode 2에서 LSM6DSO16IS가 magnetometer와 environment sensor data를 함께 수집합니다.

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

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

Part 1

요약·해설

Build+flash, 세 sensor route와 공식 output title 표기 이상을 보존합니다.

Hub

LSM6DSO16IS

Magnetic

LIS2MDL

Environment

LPS22DF

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 904D3C0FBDE30B51936A78861C30223177947FED178DCD503F4FF4AEA081D627
.. _x-nucleo-iks4a1-shub2-sample:

X-NUCLEO-IKS4A1: shield SHUB2 (Mode 2) sample
#############################################

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

This sample enables LSM6DSO16IS IMU in sensorhub mode with LIS2MDL magnetometer and
LPS22DF pressure and temperature sensor.

Then sensor data are displayed periodically

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

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/sensorhub2/
   :host-os: unix
   :board: nucleo_f411re
   :goals: build flash
   :compact:

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

 .. code-block:: console

    X-NUCLEO-IKS01A4 sensor dashboard

    LSM6DSO16IS: Accel (m.s-2): x: 0.081, y: -0.177, z: 9.945
    LSM6DSO16IS: GYro (dps): x: 0.001, y: -0.000, z: 0.004
    LSM6DSO16IS: Magn (gauss): x: 0.217, y: 0.015, z: -0.415
    LSM6DSO16IS: Temperature: 20.8 C
    LSM6DSO16IS: Pressure:99.756 kpa
    736:: lsm6dso16is acc trig 314944

    <updated endlessly every 2 seconds>

References
**********

:ref:`x-nucleo-iks4a1`

Part 3

한국어 전문 번역

개요

X-NUCLEO-IKS4A1 shield를 Sensor Hub mode, 즉 SHUB2(Mode 2)로 구성해 시험하는 sample입니다. Mode 2의 jumper·routing configuration은 shield 문서를 참조합니다.

LSM6DSO16IS IMU를 sensor-hub mode로 활성화하고 LIS2MDL magnetometer와 LPS22DF pressure·temperature sensor를 external sensor로 연결합니다.

  • LSM6DSO16IS 자체의 6-axis acceleration과 angular velocity
  • LIS2MDL에서 LSM6DSO16IS를 거쳐 읽는 3-axis magnetic field intensity
  • LPS22DF에서 LSM6DSO16IS를 거쳐 읽는 ambient temperature와 atmospheric pressure

요구 사항

Arduino connector가 있는 board에 X-NUCLEO-IKS4A1 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/sensorhub2/
west flash

출력 예

X-NUCLEO-IKS01A4 sensor dashboard

LSM6DSO16IS: Accel (m.s-2): x: 0.081, y: -0.177, z: 9.945
LSM6DSO16IS: GYro (dps): x: 0.001, y: -0.000, z: 0.004
LSM6DSO16IS: Magn (gauss): x: 0.217, y: 0.015, z: -0.415
LSM6DSO16IS: Temperature: 20.8 C
LSM6DSO16IS: Pressure:99.756 kpa
736:: lsm6dso16is acc trig 314944

<updated endlessly every 2 seconds>

LSM6DSO16IS가 자체 acceleration·gyroscope와 두 external sensor의 magnetic field·temperature·pressure를 한 dashboard에 표시하며 2초마다 갱신합니다. 공식 output title의 IKS01A4와 GYro 표기는 문서명과 다르지만 exact source 보존 원칙에 따라 유지했습니다.

참고 자료

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

Source

출처

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