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

Zephyr 3.7.0 · Samples · Sensor · I3C

I3C bus의 I2C LSM6DSO monitor

MIMXRT685-EVK J18에 I2C-mode IMU를 연결해 12.5 Hz data-ready trigger를 실행합니다.

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

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

Part 1

요약·해설

J18 pin, address 0x6B, evaluation board와 trigger output을 설명합니다.

Mode

I2C on I3C

Header

J18

Address

0x6B

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 F59503A8C620554072A4370A1D0B75E4BD1176AE1CD996CC0FB086FE55EE43AE
.. _lsm6dso_i2c_on_i3c:

LSM6DSO: IMU Sensor Monitor (I2C on I3C bus)
############################################

Overview
********
This sample sets the date rate of LSM6DSO accelerometer and gyroscope to
12.5Hz and enables a trigger on data ready. It displays on the console
the values for accelerometer and gyroscope.

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

This sample uses the LSM6DSO sensor controlled using the I2C interface
exposed by the I3C controller. It has been tested using the LSM6DSO on
the evaluation board STEVAL-MKI196V1 connected to the I3C header
on :ref:`mimxrt685_evk`.

References
**********

- LSM6DSO https://www.st.com/en/mems-and-sensors/lsm6dso.html

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

This project outputs sensor data to the console. It requires an LSM6DSO
sensor (for example, the one on evaluation board STEVAL-MKI196V1).

Building on mimxrt685_evk board
====================================

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lsm6dso_i2c_on_i3c
   :host-os: unix
   :board: mimxrt685_evk/mimxrt685s/cm33
   :goals: build
   :compact:

Board Preparations
==================

mimxrt685_evk
------------------

On the board :ref:`mimxrt685_evk`, the I3C pins are exposed on the J18
header, where:

  * SCL is on pin 1
  * SDA is on pin 2
  * Internal pull-up is on pin 3 (which is connected to pin 2 already)
  * Ground is on pin4

LSM6DSO
^^^^^^^

A LSM6DSO sensor needs to be connected to this header. For example,
the evaluation board STEVAL-MKI196V1 can be used. This needs to be
prepared so that the LSM6DSO sensor has address 0x6B (i.e. 0xD6,
left-shifed).

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

.. code-block:: console

    Testing LSM6DSO sensor in trigger mode.

    accel x:-0.650847 ms/2 y:-5.300102 ms/2 z:-8.163114 ms/2
    gyro x:-0.167835 dps y:-0.063377 dps z:0.002367 dps
    trig_cnt:1

    accel x:0.341575 ms/2 y:5.209773 ms/2 z:-7.938787 ms/2
    gyro x:-0.034284 dps y:-0.004428 dps z:-0.003512 dps
    trig_cnt:2

    <repeats endlessly>

Part 3

한국어 전문 번역

개요

이 sample은 LSM6DSO accelerometer와 gyroscope의 data rate를 12.5 Hz로 설정하고 data-ready trigger를 활성화합니다. Accelerometer와 gyroscope 값을 console에 표시합니다.

요구 사항

이 sample은 I3C controller가 노출하는 I2C interface로 LSM6DSO sensor를 제어합니다. mimxrt685_evk의 I3C header에 연결한 STEVAL-MKI196V1 evaluation board의 LSM6DSO로 시험되었습니다.

참고 자료

빌드 및 실행

이 project는 sensor data를 console에 출력합니다. STEVAL-MKI196V1 evaluation board에 장착된 것과 같은 LSM6DSO sensor가 필요합니다.

mimxrt685_evk board에서 빌드

west build -b mimxrt685_evk/mimxrt685s/cm33 samples/sensor/lsm6dso_i2c_on_i3c

Board 준비

mimxrt685_evk

mimxrt685_evk board의 I3C pin은 J18 header에 노출됩니다.

  • SCL: pin 1
  • SDA: pin 2
  • Internal pull-up: pin 3, 이미 pin 2에 연결됨
  • Ground: pin 4
LSM6DSO

LSM6DSO sensor를 이 header에 연결해야 합니다. 예를 들어 STEVAL-MKI196V1 evaluation board를 사용할 수 있습니다. LSM6DSO sensor address가 0x6B, 즉 왼쪽으로 shift한 값으로는 0xD6가 되도록 board를 준비하십시오.

출력 예

Testing LSM6DSO sensor in trigger mode.

accel x:-0.650847 ms/2 y:-5.300102 ms/2 z:-8.163114 ms/2
gyro x:-0.167835 dps y:-0.063377 dps z:0.002367 dps
trig_cnt:1

accel x:0.341575 ms/2 y:5.209773 ms/2 z:-7.938787 ms/2
gyro x:-0.034284 dps y:-0.004428 dps z:-0.003512 dps
trig_cnt:2

<repeats endlessly>

I2C device를 I3C controller에 연결한 trigger mode에서 x·y·z acceleration, angular velocity와 증가하는 trig_cnt를 계속 출력합니다.

Source

출처

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