Non-blocking DHT11, DHT21, DHT22 library


i wanted use dht22 measure temperature , humidity, , library find 1 adafruit. unfortunately library blocks execution 300 ms, not acceptable application.

so, whipped library based on adafruit's code reads temperature , humidity dht11, dht21, or dht22 sensor without blocking execution, except during actual data acquisition timing critical.

it isn't tested, seems work me. find at: https://github.com/olewolf/dht_nonblocking.

thanks sharing!

please check - http://playground.arduino.cc/main/dhtlib -

there @ least 1 interrupt driven library mentioned there, - http://forum.arduino.cc/index.php/topic,155800.0.html - , has been around time.


Arduino Forum > Using Arduino > Sensors > Non-blocking DHT11, DHT21, DHT22 library


arduino

Comments