Community
cancel
Showing results for 
Search instead for 
Did you mean: 
skaka
Novice
923 Views

DHT22 code is not working for Edison and working for Arduino Uno

Jump to solution

Hi ,

 

 

DHT22 not working on Edison and it is working on Arduino Uno.

I know one reason for above problem is as follows.

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.

Is there any software solution instead of using diode(hardware). I don't want work around solution.

Please do need full.

1 Solution
idata
Community Manager
54 Views

Hi sreenu28,

 

 

Unfortunately, there isn't a software solution for this. I've seen some users that have tried to use this sensor before, but they had to use an external diode as workaround to make it work. The following thread describes another hardware solution that might be interesting for you: /message/256523# 256523 https://communities.intel.com/message/256523# 256523. It's an approach posted by another user in order to set up an interface for the DHT22 sensor.

 

 

Regards,

 

Diego

View solution in original post

2 Replies
skaka
Novice
54 Views

idata
Community Manager
55 Views

Hi sreenu28,

 

 

Unfortunately, there isn't a software solution for this. I've seen some users that have tried to use this sensor before, but they had to use an external diode as workaround to make it work. The following thread describes another hardware solution that might be interesting for you: /message/256523# 256523 https://communities.intel.com/message/256523# 256523. It's an approach posted by another user in order to set up an interface for the DHT22 sensor.

 

 

Regards,

 

Diego

View solution in original post

Reply