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

Zephyr 3.7.0 · Samples · Sensor · IMU

LSM6DSL IMU sensor monitor

I2C·SPI IMU의 accel·gyro와 선택적 magnetometer·pressure sensor를 data-ready trigger로 읽습니다.

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

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

Part 1

요약·해설

세 board 구성, 네 코드 블록과 ArgonKey 전용 magnetic row를 설명합니다.

IMU

Accel · Gyro

Rate

104 Hz

Optional

Sensor hub

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E9239BEB7F3EACF3CBA46BEF938CAF15FEDF1C73A4CCF175CAC798994F50D34D
.. _lsm6dsl:

LSM6DSL: IMU sensor Monitor
###########################

Overview
********
This sample sets the LSM6DSL accelerometer and gyroscope to 104Hz
and enable a trigger on data ready. It displays on the console the
values for accelerometer and gyroscope, plus optionally the values of
any magnetometer or pressure sensor attached to it (sensorhub function).


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

This sample uses the LSM6DSL sensor controlled using the I2C or SPI interface.
It has been tested on both :ref:`96b_argonkey` and disco_l475_iot1 board.

References
**********

- LSM6DSL https://www.st.com/en/mems-and-sensors/lsm6dsl.html

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

 This project outputs sensor data to the console. It requires an LSM6DSL
 sensor, which is present on both the :ref:`96b_argonkey` and disco_l475_iot1 board.

Building on ArgonKey board
==========================

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lsm6dsl
   :host-os: unix
   :board: 96b_argonkey
   :goals: build
   :compact:

Building on disco_l475_iot1 board
=================================

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lsm6dsl
   :host-os: unix
   :board: disco_l475_iot1
   :goals: build
   :compact:

Building on nrf52840dk/nrf52840 board with x-nucleo-iks01a2 shield
==================================================================

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lsm6dsl
   :host-os: unix
   :board: nrf52840dk/nrf52840
   :shield: x_nucleo_iks01a2
   :goals: build
   :compact:

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

.. code-block:: console

    LSM6DSL sensor samples:

    accel (-3.184000 -0.697000 9.207000) m/s2
    gyro (0.065000 -0.029000 0.002000) dps
    magn (-0.042000 0.294000 -0.408000) gauss
    - (0) (trig_cnt: 190474)

    <repeats endlessly every 2 seconds>

.. note:: The magn row is displayed only when running sample onto 96b_argonkey board, where a magnetometer is connected to LSM6DSL.

Part 3

한국어 전문 번역

개요

이 sample은 LSM6DSL accelerometer와 gyroscope를 104 Hz로 설정하고 data-ready trigger를 활성화합니다. Accelerometer와 gyroscope 값을 console에 표시하며, sensor-hub 기능으로 연결된 magnetometer 또는 pressure sensor가 있으면 그 값도 선택적으로 표시합니다.

요구 사항

이 sample은 I2C 또는 SPI interface로 제어하는 LSM6DSL sensor를 사용합니다. 96b_argonkey와 disco_l475_iot1 board에서 모두 시험되었습니다.

참고 자료

빌드 및 실행

이 project는 sensor data를 console에 출력합니다. 96b_argonkey와 disco_l475_iot1 board에 장착된 LSM6DSL sensor가 필요합니다.

ArgonKey board에서 빌드

west build -b 96b_argonkey samples/sensor/lsm6dsl

disco_l475_iot1 board에서 빌드

west build -b disco_l475_iot1 samples/sensor/lsm6dsl

x-nucleo-iks01a2 shield를 장착한 nrf52840dk/nrf52840에서 빌드

west build -b nrf52840dk/nrf52840 --shield x_nucleo_iks01a2 samples/sensor/lsm6dsl

출력 예

LSM6DSL sensor samples:

accel (-3.184000 -0.697000 9.207000) m/s2
gyro (0.065000 -0.029000 0.002000) dps
magn (-0.042000 0.294000 -0.408000) gauss
- (0) (trig_cnt: 190474)

<repeats endlessly every 2 seconds>

accel, gyro, magn 값과 trigger count를 2초마다 계속 출력합니다. magn 행은 LSM6DSL에 magnetometer가 연결된 96b_argonkey board에서 sample을 실행할 때만 나타납니다.

Source

출처

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