Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new sensors samples #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions doc/thing/samples/sensor-samples/dht.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dht
===

Overview
--------

The dht example reads ambient temperature and relative humidity measured by a
DHT11 or DHT22 sensor. The purpose of this sample is to show how to use a
sensor that is already covered by Zephyr sensors library.

-------------------------------------------------------------------------------

Requirements
------------

The demo assumes that sensor data pin is connected to the 1.15 pin.
Make sure to use VDD OUT as the positive reference and GND as the negative
reference.
DHT11/22 datasheet recommends the use of a 10k resistor between VCC and data
pin.

-------------------------------------------------------------------------------

.. include:: ../thing-sample-body.rst
24 changes: 24 additions & 0 deletions doc/thing/samples/sensor-samples/dht11.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dht
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is duplicated. Please, remove it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

===

Overview
--------

The dht example reads ambient temperature and relative humidity measured by a
DHT11 or DHT22 sensor. The purpose of this sample is to show how to use a
sensor that is already covered by Zephyr sensors library.

-------------------------------------------------------------------------------

Requirements
------------

The demo assumes that sensor data pin is connected to the 1.15 pin.
Make sure to use VDD OUT as the positive reference and GND as the negative
reference.
DHT11/22 datasheet recommends the use of a 10k resistor between VCC and data
pin.

-------------------------------------------------------------------------------

.. include:: ../thing-sample-body.rst