Part 1
요약·해설
VIN·GND·SDA·SCL wiring, Arduino Due build와 QEMU 제한을 설명합니다.
Sensor
MPRLS0025PA00001A
Bus
I2C
Rate
1 Hz
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
0D2D5F6C3F996F3473F29934C770B8ACC6AC40F02016515564B02D981A955FDA
.. _mpr-sample:
MPR Pressure Sensor
###################
Overview
********
This sample application periodically (1Hz) measures atmospheric pressure in
kilopascal. The result is written to the console.
References
**********
- MPR: https://sensing.honeywell.com/micropressure-mpr-series
Wiring
******
This sample uses an MPRLS0025PA00001A sensor controlled using the i2c
interface. Connect **VIN**, **GND** and Interface: **SDA**, **SCL**.
Building and Running
********************
This project outputs sensor data to the console. It requires a sensor from the
MPR series.
It does not work on QEMU.
In the sample below the :ref:`arduino_due` board is used.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/mpr
:board: arduino_due
:goals: build flash
Sample Output
*************
.. code-block:: console
pressure value: 101.976303 kPa
pressure value: 101.986024 kPa
pressure value: 101.989736 kPa
pressure value: 101.987424 kPa
pressure value: 101.992099 kPa
pressure value: 101.989171 kPa
pressure value: 101.984226 kPa
<repeats endlessly>
Part 3
한국어 전문 번역
개요
이 sample application은 atmospheric pressure를 1 Hz로 주기적으로 측정해 kPa 단위로 console에 기록합니다.
참고 자료
배선
이 sample은 I2C interface로 제어하는 MPRLS0025PA00001A sensor를 사용합니다. VIN, GND와 interface pin인 SDA, SCL을 연결하십시오.
빌드 및 실행
이 project는 sensor data를 console에 출력하며 MPR series sensor가 필요합니다. QEMU에서는 동작하지 않습니다. 아래 sample에서는 arduino_due board를 사용합니다.
# From the root of the zephyr repository
west build -b arduino_due samples/sensor/mpr
west flash
출력 예
pressure value: 101.976303 kPa
pressure value: 101.986024 kPa
pressure value: 101.989736 kPa
pressure value: 101.987424 kPa
pressure value: 101.992099 kPa
pressure value: 101.989171 kPa
pressure value: 101.984226 kPa
<repeats endlessly>
Atmospheric pressure를 약 101.98 kPa로 계속 측정하며, sample의 설정 주기는 1 Hz입니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.