Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
boards/ | 18-Mar-2025 | - | 13 | 11 | ||
src/ | 18-Mar-2025 | - | 43 | 29 | ||
CMakeLists.txt | D | 18-Mar-2025 | 220 | 9 | 6 | |
README.rst | D | 18-Mar-2025 | 1.2 KiB | 51 | 36 | |
prj.conf | D | 18-Mar-2025 | 53 | 4 | 3 | |
sample.yaml | D | 18-Mar-2025 | 181 | 10 | 9 |
README.rst
1.. zephyr:code-sample:: mpr 2 :name: MPR Pressure Sensor 3 :relevant-api: sensor_interface 4 5 Get atmospheric pressure data from an MPR pressure sensor. 6 7Overview 8******** 9 10This sample application periodically (1Hz) measures atmospheric pressure in 11kilopascal. The result is written to the console. 12 13References 14********** 15 16- MPR: https://sensing.honeywell.com/micropressure-mpr-series 17 18Wiring 19****** 20 21This sample uses an MPRLS0025PA00001A sensor controlled using the i2c 22interface. Connect **VIN**, **GND** and Interface: **SDA**, **SCL**. 23 24Building and Running 25******************** 26 27This project outputs sensor data to the console. It requires a sensor from the 28MPR series. 29It does not work on QEMU. 30In the sample below the :zephyr:board:`arduino_due` board is used. 31 32.. zephyr-app-commands:: 33 :zephyr-app: samples/sensor/mpr 34 :board: arduino_due 35 :goals: build flash 36 37Sample Output 38************* 39 40.. code-block:: console 41 42 pressure value: 101.976303 kPa 43 pressure value: 101.986024 kPa 44 pressure value: 101.989736 kPa 45 pressure value: 101.987424 kPa 46 pressure value: 101.992099 kPa 47 pressure value: 101.989171 kPa 48 pressure value: 101.984226 kPa 49 50 <repeats endlessly> 51