Page 1 of 2

Module for DHT22 temperature/humidity sensor

Posted: Fri Aug 08, 2014 12:51 pm
by honza.kurik
Hi,

I made a module for DHT22 temperature and humidity sensor.
For those who are interested, follow the link: https://github.com/kurik/uPython-DHT22

Re: Module for DHT22 temperature/humidity sensor

Posted: Wed Nov 05, 2014 10:04 am
by cooper
That's just what I needed, thanks!

Re: Module for DHT22 temperature/humidity sensor

Posted: Wed Nov 05, 2014 11:27 pm
by Damien
Perhaps we should make a page linking to all the user-contributed drivers? Or, better still, merge them into micropython-lib (assuming they have a suitable license)?

Re: Module for DHT22 temperature/humidity sensor

Posted: Thu Nov 06, 2014 6:05 am
by honza.kurik

Re: Module for DHT22 temperature/humidity sensor

Posted: Thu Nov 06, 2014 8:32 am
by Turbinenreiter
@damien

There is a page in the user forum, but having a repo would be nice. Maybe micropython-dev-lib? I kinda think it should be separated from the stdlib ports in micropython-lib, especially given the fact that dev-lib wouldn't care about *nix at all, while lib does that. Though I guess it would also work that way.

Re: Module for DHT22 temperature/humidity sensor

Posted: Thu Nov 06, 2014 10:06 am
by Damien
Thanks for link to the wiki. I will link it from the docs.

I think we are intending to put all libraries in the micropython-lib repo and have a way for multiple platforms to coexist. But we still need to work out the details of this.

Re: Module for DHT22 temperature/humidity sensor

Posted: Tue Dec 30, 2014 1:30 am
by polygontwist
Hello,

i fork the script for DHT11 and DHT22 Sensor:
https://github.com/polygontwist/uPython-DHT22

have fun

Re: Module for DHT22 temperature/humidity sensor

Posted: Tue Dec 05, 2017 1:37 pm
by br0t
I am having trouble making this work. I have a pyboard lite v1.0 and a DHT22: Running the DHT22.py will always give me "Data transfer failed: 0 falling edges only". I am sure the DHT22 is connected correctly. How would I go and debug this now? How could I make sure the sensor actually works? Sorry, very new to this stuff.

Re: Module for DHT22 temperature/humidity sensor

Posted: Wed Dec 06, 2017 3:37 am
by mcauser
All of my drivers are tagged with "micropython" topic on github:
https://github.com/topics/micropython

The polished ones submitted to pypi and tagged with "Programming Language :: Python :: Implementation :: MicroPython"
https://pypi.python.org/pypi?:action=browse&c=639
https://pypi.python.org/pypi?%3Aaction= ... icropython

Re: Module for DHT22 temperature/humidity sensor

Posted: Wed Dec 06, 2017 3:50 am
by mcauser
IMHO, swap the DHT22 for a AM2320.
It's a newer version of the DHT22 with dual interface 1-wire + I2C.

I even wrote a library for it:
https://github.com/mcauser/micropython-am2320

The AM2320 is around $1 cheaper than the DHT22 on AliExpress.