README.rst
1.. _dps310:
2
3DPS310 Temperature and Pressure Sensor
4######################################
5
6Overview
7********
8
9This sample application periodically reads temperature and pressure data from
10the first available device that implements SENSOR_CHAN_AMBIENT_TEMP and
11SENSOR_CHAN_PRESS. This sample checks the sensor in polling mode (without
12interrupt trigger).
13
14Building and Running
15********************
16
17This sample application uses an DPS310 sensor connected to a board via I2C.
18Connect the sensor pins according to the connection diagram given in the
19`dps310 datasheet`_ at page 18 figure 7.
20
21Build and flash this sample (for example, for the nrf52840dk_nrf52840 board)
22using these commands:
23
24.. zephyr-app-commands::
25 :zephyr-app: samples/sensors/dps310
26 :board: nrf52840dk_nrf52840
27 :goals: flash
28 :compact:
29
30Sample Output
31=============
32To check output of this sample, any serial console program can be used.
33This example uses ``picocom`` on the serial port ``/dev/ttyUSB0``:
34
35.. code-block:: console
36
37 $ sudo picocom -D /dev/ttyUSB0
38
39.. code-block:: console
40
41 temp: 23.774363; press: 97.354728
42 temp: 23.777492; press: 97.353904
43 temp: 23.784646; press: 97.354064
44
45.. _dps310 datasheet: https://www.infineon.com/dgdl/Infineon-DPS310-DataSheet-v01_01-EN.pdf?fileId=5546d462576f34750157750826c42242
46