samples/shields/x_nucleo_iks01a2/standard/README.html · samples/shields/x_nucleo_iks01a2/standard/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Shields · Sensors

X-NUCLEO-IKS01A2 Standard Mode

Standard mode에서 네 sensor를 독립적으로 읽어 하나의 dashboard로 표시합니다.

Official pathsamples/shields/x_nucleo_iks01a2/standard/README.html
Source filesamples/shields/x_nucleo_iks01a2/standard/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Devicetree source path, sensor multiple-instance 제한과 2초 output을 보존합니다.

Environment

HTS221 · LPS22HB

Motion

LSM6DSL · LSM303AGR

Mode

Standard

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 1B412B32085CB5221BEB6016CDC05F3945B7C901DDE959FB517405FCCEC13E3C
.. zephyr:code-sample:: x-nucleo-iks01a2-std
   :name: X-NUCLEO-IKS01A2 shield - Standard (Mode 1)
   :relevant-api: sensor_interface

   Interact with all the sensors of an X-NUCLEO-IKS01A2 shield using Standard Mode.

Overview
********
This sample enables all sensors of a X-NUCLEO-IKS01A2 shield, and then
periodically reads and displays data from the shield sensors:

- HTS221: Ambient temperature and relative humidity
- LPS22HB: Atmospheric pressure and ambient temperature
- LSM6DSL: 3-Axis Acceleration and 3-Axis Angular Velocity
- LSM303AGR 3-Axis Acceleration and 3-axis Magnetic field intensity

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

This sample communicates over I2C with the X-NUCLEO-IKS01A2 shield
stacked on a board with an Arduino connector. The board's I2C must be
configured for the I2C Arduino connector in the devicetree. See for
example the :ref:`nucleo_f401re_board` board source code:

- :zephyr_file:`boards/st/nucleo_f401re/nucleo_f401re.dts`
- :zephyr_file:`boards/st/nucleo_f401re/arduino_r3_connector.dtsi`

Please note that this sample can't be used with boards already supporting
one of the sensors available on the shield (such as disco_l475_iot1) as zephyr
does not yet support sensors multiple instances.

References
**********

-X-NUCLEO-IKS01A2: https://www.st.com/en/ecosystems/x-nucleo-iks01a2.html

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

This sample runs with X-NUCLEO-IKS01A2 stacked on any board with a matching
Arduino connector. For this example, we use a :ref:`nucleo_f401re_board` board.

.. zephyr-app-commands::
   :zephyr-app: samples/shields/x_nucleo_iks01a2/standard
   :board: nucleo_f401re
   :goals: build
   :compact:

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

 .. code-block:: console

    X-NUCLEO-IKS01A2 sensor dashboard

    HTS221: Temperature: 26.3 C
    HTS221: Relative Humidity: 44.5%
    LPS22HB: Pressure:99.220 kpa
    LPS22HB: Temperature: 26.1 C
    LSM6DSL: Accel (m.s-2): x: -0.0, y: -0.1, z: 10.0
    LSM6DSL: Gyro (dps): x: 0.028, y: -0.025, z: 0.014
    LSM303AGR: Accel (m.s-2): x: 0.3, y: -0.1, z: 9.7
    LSM303AGR: Magn (gauss): x: -0.221, y: -0.042, z: -0.458

    <updated endlessly every 2 seconds>

Part 3

한국어 전문 번역

개요

X-NUCLEO-IKS01A2 shield의 모든 sensor를 독립적으로 활성화한 뒤 주기적으로 읽어 표시하는 Standard mode sample입니다.

  • HTS221: ambient temperature와 relative humidity
  • LPS22HB: atmospheric pressure와 ambient temperature
  • LSM6DSL: 3-axis acceleration과 3-axis angular velocity
  • LSM303AGR: 3-axis acceleration과 3-axis magnetic field intensity

요구 사항

Arduino connector가 있는 board에 shield를 쌓고 I2C로 통신합니다. Board devicetree에서 Arduino connector용 I2C를 구성해야 합니다. 공식 예제 source path는 boards/st/nucleo_f401re/nucleo_f401re.dts와 boards/st/nucleo_f401re/arduino_r3_connector.dtsi입니다.

Zephyr 3.7.0은 sensor multiple instance를 지원하지 않으므로 disco_l475_iot1처럼 같은 sensor가 이미 있는 board에서는 이 sample을 사용할 수 없습니다.

참고 자료

빌드 및 실행

Matching Arduino connector가 있는 board에서 실행할 수 있으며, 아래 예제는 nucleo_f401re용입니다.

west build -b nucleo_f401re samples/shields/x_nucleo_iks01a2/standard

출력 예

X-NUCLEO-IKS01A2 sensor dashboard

HTS221: Temperature: 26.3 C
HTS221: Relative Humidity: 44.5%
LPS22HB: Pressure:99.220 kpa
LPS22HB: Temperature: 26.1 C
LSM6DSL: Accel (m.s-2): x: -0.0, y: -0.1, z: 10.0
LSM6DSL: Gyro (dps): x: 0.028, y: -0.025, z: 0.014
LSM303AGR: Accel (m.s-2): x: 0.3, y: -0.1, z: 9.7
LSM303AGR: Magn (gauss): x: -0.221, y: -0.042, z: -0.458

<updated endlessly every 2 seconds>

Temperature·humidity·pressure와 두 motion sensor의 acceleration, angular velocity, magnetic field 값을 한 dashboard에 표시하며 2초마다 계속 갱신합니다.

Source

출처

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