-->
Page 1 of 2

Interrupt driven DHT 11/21/22 sensor library for esp8266

PostPosted: Sat Feb 13, 2016 5:42 pm
by chaeplin
Supports reading DHT22/DHT21/DHT11 sensors without disabling interrupts
based on PietteTech_DHT for Spark

https://github.com/chaeplin/PietteTech_DHT-8266

no of err count:
large sketch(same sketch, different CPU frequency)
1) 80MHz --> too many, can't count
2) 160MHz --> report 5165, err 14

simple sketch
1) 80MHz --> report 14254, err 2

Re: Interrupt driven DHT 11/21/22 sensor library for esp8266

PostPosted: Sun Feb 14, 2016 2:44 am
by mianos
I wrote one of these, from scratch, in C, for the ESP8266, not spark.
https://github.com/mianos/micropython/b ... _esp_dht.c
Although it is written within the micropython framework, it would be trivial to use with the normal ESP SDK. You can even use an ESP SDK ops task to time the initial wakeup signal so it needs zero user space polling.

Re: Interrupt driven DHT 11/21/22 sensor library for esp8266

PostPosted: Sun Feb 14, 2016 6:41 am
by chaeplin
mianos wrote:I wrote one of these, from scratch, in C, for the ESP8266, not spark.
https://github.com/mianos/micropython/b ... _esp_dht.c
Although it is written within the micropython framework, it would be trivial to use with the normal ESP SDK. You can even use an ESP SDK ops task to time the initial wakeup signal so it needs zero user space polling.


I will try yours. Thank you

Re: Interrupt driven DHT 11/21/22 sensor library for esp8266

PostPosted: Sun Feb 14, 2016 6:45 am
by mianos
Any trouble and I'll try and help out. It is super reliable, 3 months, once a minute, no data missing.