-->
Page 2 of 9

Re: Going nutty trying to get a DHT11 to work

PostPosted: Sun Jul 26, 2015 3:34 am
by tytower
DHT dht(DHT_PIN,DHT22,15); for a DHT22 speed is 15

DHT::DHT(uint8_t pin, uint8_t type, uint8_t count) in your library DHT.cpp I think

Re: Going nutty trying to get a DHT11 to work

PostPosted: Sun Jul 26, 2015 4:28 pm
by Angelo Santagata
mmm I thought Id cracked it but im getting eratic readings ,sometimes it works, sometimes it doesnt.

tytower, do you know what the correct speed for a DH11 is? 15 doesnt make much difference

Re: Going nutty trying to get a DHT11 to work

PostPosted: Sun Jul 26, 2015 6:44 pm
by Angelo Santagata
OK. Im now stumped again...

For some reason I no longer get any readings.. and constantly get Failed to read from DHT Sensor in my code, not always but 80% of the time....

Code is trivial.. and Im now baffled again..
Ive set the 3rd param to 15.. baffling]

Re: Going nutty trying to get a DHT11 to work

PostPosted: Mon Jul 27, 2015 12:21 am
by tytower
Angelo Santagata wrote:tytower, do you know what the correct speed for a DH11 is? 15 doesnt make much difference

I don't it is trial and error at this stage . There is a default rate set in the code I think . You will have to look it up . There is also a thread with a few posts on DHT22 and speeds . If I find it I'll post back. From memory I tried from 6 to about 40 and settled on 15 as did someone else in that thread.