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

Zephyr 3.7.0 · Samples · Sensor · Motion

LSM303DLHC eCompass monitor

I2C eCompass module에서 magnetometer와 accelerometer의 세 축 값을 함께 읽습니다.

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

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

Part 1

요약·해설

통합 sensor 구성, STM32F3 Discovery build와 2초 출력 형식을 보존합니다.

Module

LSM303DLHC

Sensors

Magn · Accel

Bus

I2C

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 B716E6420D6347CC26A93A54ED9CD09DF41B41838B90BF43A1D896CBDE3647D7
.. _lsm303dlhc:

LSM303DLHC: Magnetometer and Accelerometer data Monitor
#######################################################

Overview
********
This sample application periodically reads magnetometer and accelerometer data
from the LSM303DLHC eCompass module's sensors, and displays the sensor data
on the console.

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

This sample uses the LSM303DLHC, ST MEMS system-in-package featuring a
3D digital linear acceleration sensor and a 3D digital magnetic sensor,
controlled using the I2C interface.

References
**********

For more information about the LSM303DLHC eCompass module, see
https://www.st.com/en/mems-and-sensors/lsm303dlhc.html

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

This project outputs sensor data to the console. It requires a LSM303DLHC
system-in-package, which is present on the stm32f3_disco board

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/lsm303dlhc
   :board: stm32f3_disco
   :goals: build
   :compact:

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

.. code-block:: console

   Magnetometer data:
   ( x y z ) = ( 0.531818  -0.435454  -0.089090 )
   Accelerometer data:
   ( x y z ) = ( -0.078127  -0.347666  1.105502 )
   Magnetometer data:
   ( x y z ) = ( -0.003636  0.297272  -0.255454 )
   Accelerometer data:
   ( x y z ) = ( 0.074221  -0.304696  0.972685 )

   <repeats endlessly every 2 seconds>

Part 3

한국어 전문 번역

개요

이 sample application은 LSM303DLHC eCompass module의 sensor에서 magnetometer와 accelerometer data를 주기적으로 읽어 console에 표시합니다.

요구 사항

이 sample은 3D digital linear-acceleration sensor와 3D digital magnetic sensor를 통합한 ST MEMS system-in-package인 LSM303DLHC를 사용하며, I2C interface로 제어합니다.

참고 자료

LSM303DLHC eCompass module에 관한 자세한 내용은 ST LSM303DLHC 제품 페이지를 참조하십시오.

빌드 및 실행

이 project는 sensor data를 console에 출력합니다. LSM303DLHC system-in-package가 필요하며, 이 device는 stm32f3_disco board에 장착되어 있습니다.

west build -b stm32f3_disco samples/sensor/lsm303dlhc

출력 예

Magnetometer data:
( x y z ) = ( 0.531818  -0.435454  -0.089090 )
Accelerometer data:
( x y z ) = ( -0.078127  -0.347666  1.105502 )
Magnetometer data:
( x y z ) = ( -0.003636  0.297272  -0.255454 )
Accelerometer data:
( x y z ) = ( 0.074221  -0.304696  0.972685 )

<repeats endlessly every 2 seconds>

Magnetometer와 accelerometer의 x·y·z 세 축 값을 한 쌍으로 출력하며, 이 측정은 2초마다 끝없이 반복됩니다.

Source

출처

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