Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Aug-2025 | - | ||||
boards/ | 22-Aug-2025 | - | ||||
src/ | 22-Aug-2025 | - | ||||
CMakeLists.txt | A D | 22-Aug-2025 | 231 | 9 | 6 | |
README.rst | A D | 22-Aug-2025 | 1.3 KiB | 54 | 38 | |
prj.conf | A D | 22-Aug-2025 | 160 | 8 | 7 | |
sample.yaml | A D | 22-Aug-2025 | 214 | 11 | 10 |
README.rst
1.. zephyr:code-sample:: ms5837 2 :name: MS5837 Digital Pressure Sensor 3 :relevant-api: sensor_interface 4 5 Get pressure and temperature data from an MS5837 sensor (polling mode). 6 7Overview 8******** 9 10This sample application retrieves the pressure and temperature from a MS5837 11sensor every 10 seconds, and prints this information to the UART console. 12 13Requirements 14************ 15 16- `nRF52840 Development kit`_ 17- MS5837 sensor 18 19Wiring 20****** 21 22The nrf52840 Development kit should be connected as follows to the 23MS5837 sensor. 24 25+-------------+----------+ 26| | nrf52840 | | MS5837 | 27| | Pin | | Pin | 28+=============+==========+ 29| P0.3 | SCL | 30+-------------+----------+ 31| P0.31 | SDA | 32+-------------+----------+ 33 34Building and Running 35******************** 36 37Build this sample using the following commands: 38 39.. zephyr-app-commands:: 40 :zephyr-app: samples/sensor/ms5837 41 :board: nrf52840dk/nrf52840 42 :goals: build 43 :compact: 44 45See :zephyr:board:`nrf52840dk` on how to flash the build. 46 47References 48********** 49 50.. target-notes:: 51 52.. _MS5837 Sensor: http://www.te.com/usa-en/product-CAT-BLPS0017.html?q=&type=products&samples=N&q2=ms5837 53.. _nRF52840 Development kit: https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK 54