Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
boards/ | 04-Jan-2025 | - | 15 | 13 | ||
src/ | 04-Jan-2025 | - | 53 | 38 | ||
CMakeLists.txt | D | 04-Jan-2025 | 223 | 9 | 6 | |
README.rst | D | 04-Jan-2025 | 1.3 KiB | 54 | 38 | |
prj.conf | D | 04-Jan-2025 | 153 | 8 | 7 | |
sample.yaml | D | 04-Jan-2025 | 204 | 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 Preview development kit`_ 17- MS5837 sensor 18 19Wiring 20****** 21 22The nrf52840 Preview 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 :ref:`nrf52840dk_nrf52840` 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 Preview development kit: http://www.nordicsemi.com/eng/Products/nRF52840-Preview-DK 54