Pages: 1 ... 3 4 [5]   Go Down
Author Topic: [LIB] Interrupt driven DHTLib (DHT11 & DHT22 = idDHTLib)  (Read 7241 times)
0 Members and 1 Guest are viewing this topic.
Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

With delta > 100 I seem to be receiving entirely correct data:

http://paste.ee/p/KeGJr

So it looks like everything is good now? Please check it over just to be sure smiley-grin

Edit: it's also working perfectly in my 'big' app where I switched over to the interrupt version of the lib initially, it has LCD output smiley There are no CPU holdups.
« Last Edit: July 31, 2013, 02:27:06 pm by Dessimat0r » Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

SO NICE!!!!! Now I need to try it with my DH11 sensors, reorder the code to b pretty (not messy and for test purpose) and if my DHT11 is still working, we can say that the entire lib is working, really good news!!!!

you just change the 95 for a 100?
This means that the sensor is taking between 90 and 100 us to send a 0. With all the ping pong conversation that we had, I thing the DHT22 (or maybe just yours) is taking like 10us more in signaling.
really strange behavior and against the datasheet, but Arduino and a cheap sensor doesn't guaranties accurate in timing, so I suppose is a expected behavior.

if you use github, you can push the code with the last mods you make to get it working, so in the history will be your effort!
Logged

Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok smiley Will do!
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Before you do it, let me make a branch for that, so is clean and not with all the not making difference commits
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally is ready. Thanks All for the testig
Logged

Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry it took so long to get the changes in there smiley
Logged

Liverpool, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 43
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it worth implementing more robustness if the sensors are removed (i.e., some interrupt timeouts) -- experiment with disconnecting/reconnecting sensors and you'll see what I mean -- the Arduino seems to freeze. Could be my code though.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 47
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you report on github please, with the structure:
  • How to reproduce
  • What do you espect
  • What really happens
Logged

Pages: 1 ... 3 4 [5]   Go Up
Jump to: