Part 1
요약·해설
Data rate, board 요구 사항과 trigger-mode 반복 출력을 보존합니다.
LSM6DSO
12.5 Hz
Data-ready trigger
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
253F042FE5D6276B8C693D204DCE5141CD73BD6D82C07EE5CC421A553B09ED6F
.. _lsm6dso:
LSM6DSO: IMU Sensor Monitor
###########################
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.
It has been tested on the :ref:`stm32l562e_dk_board`.
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, which is present on the :ref:`stm32l562e_dk_board`.
Building on stm32l562e_dk board
===============================
.. zephyr-app-commands::
:zephyr-app: samples/sensor/lsm6dso
:host-os: unix
:board: stm32l562e_dk
:goals: build
:compact:
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은 I2C interface로 제어하는 LSM6DSO sensor를 사용합니다. stm32l562e_dk board에서 시험되었습니다.
참고 자료
빌드 및 실행
이 project는 sensor data를 console에 출력합니다. stm32l562e_dk board에 장착된 LSM6DSO sensor가 필요합니다.
stm32l562e_dk board에서 빌드
west build -b stm32l562e_dk samples/sensor/lsm6dso
출력 예
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>
Trigger mode에서 각 event의 x·y·z acceleration, angular velocity와 증가하는 trig_cnt를 끝없이 출력합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.