https://github.com/rigtorp/spark-dht11
Spark app to read a DHT11 sensor and publish humidity and temperature as Spark variables
https://github.com/rigtorp/spark-dht11
Last synced: about 2 months ago
JSON representation
Spark app to read a DHT11 sensor and publish humidity and temperature as Spark variables
- Host: GitHub
- URL: https://github.com/rigtorp/spark-dht11
- Owner: rigtorp
- License: mit
- Created: 2014-03-04T00:36:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-24T06:12:37.000Z (over 10 years ago)
- Last Synced: 2025-03-24T00:31:29.221Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 3.05 MB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
spark-dht11
===========Spark app to read a [DHT11
sensor](http://www.adafruit.com/products/386) and publish humidity and
temperature as Spark variables.I got the [Spark Core device](https://www.spark.io/) from the
[Kickstarter project](https://www.kickstarter.com/projects/sparkdevices/spark-core-wi-fi-for-everything-arduino-compatible)
and this is my first project.[The circuit is a DHT11 connected to 3v3, GND and a data
pin](https://raw.github.com/rigtorp/spark-dht11/master/hardware.jpg). I
use the internal pullup on the data pin:
I noticed a lot of people had issues with the DHT sensors and I could
not get the Adafruit library working myself. The [Adafruit
code](https://github.com/adafruit/DHT-sensor-library) is pretty iffy,
requires higher timing resolution than necessary and doesn't support
the internal pullup resistor. So I wrote my own simple version that
uses the internal pullup resistor. It reads the relative humidity and
temperature from a DHT11 sensor every 10 seconds and stores them in
the Spark variables `rh` and `temp` respectively.There's also a Python script that reads the values every minute and
uploads them to [Xively](https://xively.com/).