Part 1
요약·해설
IBI reset 주의 사항, 4개 J18 pin, address 0x5D와 build·출력을 설명합니다.
I3C + IBI
J18
0x5D
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
C6B45ED05A51FE7ECB3F3C9C70BE49FF08F35F67DADDA24528D977146D592D8F
.. _lps22hh_i3c:
LPS22HH: Temperature and Pressure Monitor (I3C)
###############################################
Overview
********
This sample periodically reads pressure from the LPS22HH MEMS pressure
sensor and displays it on the console.
Requirements
************
This sample uses the LPS22HH sensor controlled using the I3C interface.
It has been tested using the LPS22HH on the evaluation board
STEVALMKI192-V1 connected to the I3C header on :ref:`mimxrt685_evk`.
References
**********
- LPS22HH: https://www.st.com/en/mems-and-sensors/lps22hh.html
Building and Running
********************
This project outputs sensor data to the console. It requires an LPS22HH
sensor (for example, the one on evaluation board STEVALMKI192-V1).
.. note::
If ``CONFIG_LPS22HH_TRIGGER`` is enabled, the trigger is using
I3C In-Band Interrupt (IBI) to signal new data being available.
Since IBI is initiated by the sensor, it will take over the I3C
bus. Therefore, when flashing a new image, a power cycle is needed
to reset the sensor so that it will not generate IBIs anymore.
Or else the I3C controller will not be able to be initialized,
resulting in the sample not being able to communicate with
the sensor.
Building on mimxrt685_evk board
====================================
.. zephyr-app-commands::
:zephyr-app: samples/sensor/lps22hh_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
LPS22HH
^^^^^^^
A LPS22HH sensor needs to be connected to this header. For example,
the evaluation board STEVAL-MKI192V1 can be used. This needs to be
prepared so that the LPS22HH sensor has address 0x5D (i.e. 0xBA,
left-shifed).
Sample Output
=============
.. code-block:: console
Configured for triggered collection at 1 Hz
Observation: 1
Pressure: 97.474 kPa
Temperature: 22.19 C
Observation: 2
Pressure: 97.466 kPa
Temperature: 22.21 C
Observation: 3
Pressure: 97.473 kPa
Temperature: 22.21 C
Observation: 4
Pressure: 97.455 kPa
Temperature: 22.21 C
<repeats endlessly every second>
Part 3
한국어 전문 번역
개요
이 sample은 LPS22HH MEMS pressure sensor에서 pressure를 주기적으로 읽어 console에 표시합니다.
요구 사항
이 sample은 I3C interface로 제어하는 LPS22HH sensor를 사용합니다. mimxrt685_evk의 I3C header에 연결한 STEVALMKI192-V1 evaluation board의 LPS22HH로 시험되었습니다.
참고 자료
빌드 및 실행
이 project는 sensor data를 console에 출력합니다. STEVALMKI192-V1 evaluation board에 장착된 것과 같은 LPS22HH sensor가 필요합니다.
mimxrt685_evk board에서 빌드
west build -b mimxrt685_evk/mimxrt685s/cm33 samples/sensor/lps22hh_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
LPS22HH
LPS22HH sensor를 이 header에 연결해야 합니다. 예를 들어 STEVAL-MKI192V1 evaluation board를 사용할 수 있습니다. LPS22HH sensor address가 0x5D, 즉 왼쪽으로 shift한 값으로는 0xBA가 되도록 board를 준비하십시오.
출력 예
Configured for triggered collection at 1 Hz
Observation: 1
Pressure: 97.474 kPa
Temperature: 22.19 C
Observation: 2
Pressure: 97.466 kPa
Temperature: 22.21 C
Observation: 3
Pressure: 97.473 kPa
Temperature: 22.21 C
Observation: 4
Pressure: 97.455 kPa
Temperature: 22.21 C
<repeats endlessly every second>
Triggered collection은 1 Hz로 동작하며, 각 observation의 pressure와 temperature를 매초 계속 출력합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.