Community
cancel
Showing results for 
Search instead for 
Did you mean: 
HSing22
New Contributor I
1,700 Views

DHT22 on edison arudino expansion board

Jump to solution

Hi

Has the DHT22 library been ported to edison arduino expansion IDE?


Accepted Solutions
Sergio_A_Intel
Employee
98 Views

Hi hanumant,

The DHT library has not officially been ported to the Edison IDE. However, in other posts in the community such as /thread/53869 https://communities.intel.com/thread/53869 , other users have created their own DHT libraries for the Galileo board. I tried one of the examples in my Edison and it compiled, but was not able to test it because I don't have the DHT22. You can try porting them on the Edison board and post your results in the community.

Regards

Sergio

View solution in original post

7 Replies
Sergio_A_Intel
Employee
99 Views

Hi hanumant,

The DHT library has not officially been ported to the Edison IDE. However, in other posts in the community such as /thread/53869 https://communities.intel.com/thread/53869 , other users have created their own DHT libraries for the Galileo board. I tried one of the examples in my Edison and it compiled, but was not able to test it because I don't have the DHT22. You can try porting them on the Edison board and post your results in the community.

Regards

Sergio

View solution in original post

BAFWA
Innovator
98 Views

You can use Adafruits DHT 11 and 22 library with Edison it has worked for me download it from here

https://github.com/adafruit/DHT-sensor-library adafruit/DHT-sensor-library · GitHub

Download and unzip it then rename it ie DHT it works

put it in the /Arduino/Libraries folder/DHT

BAFWA
Innovator
98 Views

The Adafruits Library works with Arduino >>>>https://github.com/adafruit/DHT-sensor-library adafruit/DHT-sensor-library · GitHub

idata
Community Manager
98 Views

Hello,

Been trying to use this lib, buy I get an error compiling, seems tg function is missing: microsecondsToClockCycles

Are you using an specific version?

IPani
Beginner
98 Views

Adafruits Library for DHT22 wont work on Edison because of the following reasons:

1. microsecondsToClockCycles can't be rewritten for Edison because it is running Linux and it is not really "Real-time" operating system, so it may take different time to execute the same function (depends on many factors).

2. Switching ports from 'Output' to 'Input' is to slow on Intel Edison. When I tested it I was able to receive only last 10-12 bits out of 40 bits from the DHT22 due to slow transition of the pin from Output to Input.

So I resolved the issue by using 2-pin solution (connecting diode between pins 7 and 8).

 

skaka
Novice
98 Views

Hi ,

Is there any solution for DHT 22( temperature and humidity for Edison Arduino expansion board with out extra hardware Like diode.

My Question is is there any software solution with out hardware.

skaka
Novice
98 Views

Hi ,

I want to use DHT 22 for Edison.

can you provide diode details for above thread.

Reply