zephyr/samples/sensor/sht3xd
Peter A. Bigot 12836d9280 drivers: sensors: sht3xd: support multiple devices and DT bindings
Add a configuration structure to sht3xd that holds instance-specific
parameters, implemented in a immutable statically allocated object
initialized with material from device tree binding aliases.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-18 09:43:14 -06:00
..
src drivers: sensors: sht3xd: support multiple devices and DT bindings 2019-01-18 09:43:14 -06:00
CMakeLists.txt cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
README.rst samples: sensor: add sample for SHT3XD sensor 2018-11-30 08:30:13 -08:00
nrf51_ble400.overlay drivers: sensors: sht3xd: support multiple devices and DT bindings 2019-01-18 09:43:14 -06:00
prj.conf samples: sensor: add sample for SHT3XD sensor 2018-11-30 08:30:13 -08:00
sample.yaml boards: arm: nrf51_ble400: add I2C and SPI configuration 2019-01-16 12:12:54 -05: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/sensors/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>