how to run DHTXXX

Moderators: lily.li, violet, salmanfarisvp

Post Reply
back_kevin
Pre-kindergarten
Pre-kindergarten
Posts: 14
Joined: Sat Dec 06, 2014 7:07 am

how to run DHTXXX

Post by back_kevin » Thu Dec 11, 2014 11:04 pm

hi i have a new problem i want to use 2 dht 11 on my grove shield V2.0
what for a library i need to do this ?

i try with the grove library from wiki page
http://www.seeedstudio.com/wiki/Grove_- ... ity_Sensor
but i get errors when i compile it :


In file included from DHTtester.ino:4:
C:\Users\back\Documents\Linkit ONE\libraries\Humidity_Temperature_Sensor/DHT.h:16: error: #error "CPU SPEED NOT SUPPORTED"
C:\Users\back\Documents\Linkit ONE\libraries\Humidity_Temperature_Sensor/DHT.h:42: error: 'COUNT' was not declared in this scope
DHTtester:18: error: the default argument for parameter 2 of 'DHT::DHT(uint8_t, uint8_t, uint8_t)' has not yet been parsed

thx for help

User avatar
loovee
Elementary-3
Elementary-3
Posts: 352
Joined: Fri Nov 02, 2012 9:15 am

Re: how to run DHTXXX

Post by loovee » Mon Dec 15, 2014 4:14 pm

Hi, sorry for the delay reply, please try the code attached, I try it in DTH22, it works.

And please tell me if it's work, thanks.

back_kevin
Pre-kindergarten
Pre-kindergarten
Posts: 14
Joined: Sat Dec 06, 2014 7:07 am

Re: how to run DHTXXX

Post by back_kevin » Wed Dec 17, 2014 3:43 am

no it don`t work

the first problem is the sensor is digital and not analoge

i found now a lib that works fine i connect my sensors to grove shield D3 and D4

User avatar
loovee
Elementary-3
Elementary-3
Posts: 352
Joined: Fri Nov 02, 2012 9:15 am

Re: how to run DHTXXX

Post by loovee » Wed Dec 17, 2014 8:33 am

Thanks for share the lib~ :D

Post Reply