1.. _ms5837-sample:
2
3MS5837 Sensor Sample
4####################
5
6Overview
7********
8
9This sample application retrieves the pressure and temperature from a MS5837
10sensor every 10 seconds, and prints this information to the UART console.
11
12Requirements
13************
14
15- `nRF52840 Preview development kit`_
16- MS5837 sensor
17
18Wiring
19******
20
21The nrf52840 Preview development kit should be connected as follows to the
22MS5837 sensor.
23
24+-------------+----------+
25| | nrf52840  | | MS5837 |
26| | Pin       | | Pin    |
27+=============+==========+
28| P0.3        | SCL      |
29+-------------+----------+
30| P0.31       | SDA      |
31+-------------+----------+
32
33Building and Running
34********************
35
36Build this sample using the following commands:
37
38.. zephyr-app-commands::
39   :zephyr-app: samples/sensor/ms5837
40   :board: nrf52840dk_nrf52840
41   :goals: build
42   :compact:
43
44See :ref:`nrf52840dk_nrf52840` on how to flash the build.
45
46References
47**********
48
49.. target-notes::
50
51.. _MS5837 Sensor: http://www.te.com/usa-en/product-CAT-BLPS0017.html?q=&type=products&samples=N&q2=ms5837
52.. _nRF52840 Preview development kit: http://www.nordicsemi.com/eng/Products/nRF52840-Preview-DK
53