You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mm
600c71caa6
|
3 years ago | |
---|---|---|
.. | ||
examples | 3 years ago | |
.DS_Store | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
SimpleDHT.cpp | 3 years ago | |
SimpleDHT.h | 3 years ago | |
keywords.txt | 3 years ago | |
library.properties | 3 years ago |
README.md
SimpleDHT
Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 etc.
- Simple: Simple C++ code with lots of comments.
- Stable: Strictly follow the standard DHT protocol.
- Fast: Support 0.5HZ or 1HZ sampling rate.
Usage
To use this library:
- Download the zip from specified version: https://github.com/winlinvip/SimpleDHT/releases
- Import to Arduino: Arduino => Sketch => Include Library => Add .ZIP Library...
- Open example: Arduino => File => Examples => Simple DHT sensor library => DHT11Default
- Connect the DHT11 and Upload program to Arduino.
- Open the Serial Window of Arduino IDE, we got the result as following.
=================================
Sample DHT11...
Sample OK: 19 *C, 31 %
=================================
Sample DHT11...
Sample OK: 19 *C, 31 %
=================================
Remark: For DHT11, no more than 1 Hz sampling rate (once every second).
Examples
This library including the following examples:
- DHT11Default: To sample the temperature and humidity.
- DHT11WithRawBits: To sample the temperature and humidity, output the 40 raw bits.
Links
Winlin 2016.1