zephyr/samples/sensor/sht3xd
Andrzej Głąbek 4253eae005 boards: nrf52840_pca10056: Rename board to nrf52840dk_nrf52840
The nRF52840 DK board target, so far known as nrf52840_pca10056,
is renamed to nrf52840dk_nrf52840.
Its documentation and all references to its name in the tree are
updated accordingly. Overlay and configuration files specific to
this board are also renamed, to match the new board name.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-03-27 09:14:08 +01:00
..
src drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00
CMakeLists.txt
README.rst global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
efr32mg_sltb004a.overlay drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00
frdm_k64f.overlay drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00
nrf51_ble400.overlay drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00
nrf52840dk_nrf52840.overlay boards: nrf52840_pca10056: Rename board to nrf52840dk_nrf52840 2020-03-27 09:14:08 +01:00
nucleo_l476rg.overlay drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00
prj.conf
sample.yaml boards: nrf52840_pca10056: Rename board to nrf52840dk_nrf52840 2020-03-27 09:14:08 +01:00
trigger.conf drivers: sensor: sht3xd: convert to new GPIO APIO 2020-02-05 12:00:36 +01:00

README.rst

.. _sht3xd:

SHT3XD: High accuracy digital I2C humidity sensor
#################################################

Description
***********

This sample application periodically (2 Hz) measures the ambient
temperature and humidity. The result is written to the console.
Optionally, it also shows how to use the upper threshold triggers.

References
**********

 - `SHT3X-DIS sensor <https://www.sensirion.com/en/environmental-sensors/humidity-sensors/digital-humidity-sensors-for-various-applications/>`_

Wiring
*******

This sample uses the SHT3X_DIS sensor controlled using the I2C interface.
Connect Supply: **VDD**, **GND** and Interface: **SDA**, **SCL**
and optionally connect the **ALERT** to a interrupt capable GPIO.
The supply voltage can be in the 2.15V to 5.5V range.
Depending on the baseboard used, the **SDA** and **SCL** lines require Pull-Up
resistors.

Building and Running
********************

This project outputs sensor data to the console. It requires a SHT3XD
sensor. It should work with any platform featuring a I2C peripheral
interface.  It does not work on QEMU.  In this example below the
:ref:`nrf51_ble400` board is used.


.. zephyr-app-commands::
   :zephyr-app: samples/sensor/sht3xd
   :board: nrf51_ble400
   :goals: build flash

Sample Output
=============

.. code-block:: console

   SHT3XD: 19.64 Cel ; 41.96 %RH
   SHT3XD: 19.74 Cel ; 42.06 %RH
   SHT3XD: 19.75 Cel ; 42.08 %RH

<repeats endlessly>