• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/04-Jan-2025-1513

src/04-Jan-2025-5338

CMakeLists.txtD04-Jan-2025223 96

README.rstD04-Jan-20251.3 KiB5438

prj.confD04-Jan-2025153 87

sample.yamlD04-Jan-2025204 1110

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