-
Notifications
You must be signed in to change notification settings - Fork 981
Raspberry Pi 3 and Adafruit_Python_DHT #44
Comments
I have the same problem. Any plans to support pi 3? |
Hrm I can't repro any issues on the Pi 3, just tried reading an AM2302 and it works great with the current lib and the latest Raspbian Jessie. Try installing a fresh SD card image and the library again to check there isn't something else going on. Also make sure you don't have a lot of CPU intensive things running in the background. The library works by trying to very quickly read the output of the sensor but it can get tripped up if the kernel is interrupting it to let processor intensive tasks run. And one last little thing to check is how you're powering the device. Give it 3.3V power from the Pi instead of 5V power--the signal line has a pull-up resistor so you don't want to have it pull up to 5V and then feed that into an input on the Pi. |
I'm getting on raspberry pi 3:
|
In fact it just my low knowlegde on python.. some related to folders and files locations... :( |
@TiagoGouvea How did you manage to resolve this? I am also getting the exact same error. |
@TiagoGouvea i also have similar issue, how to solve it? |
For anyone else facing the same issue that @TiagoGouvea mentioned. |
I got the same error in my R Pi 3 and I found a fix for it after some research. So for those getting an error such as this one: Here is the fix(as per a comment by Mr Bogd):
|
How exactly do I do this @Cartmanishere ? |
Thank you! This worked for me.
|
Greetings.
I'm having a problem with the Adafruit DHT Python code.
sudo ./AdafruitDHT.py 11 4
and (after a few seconds) got:
Failed to get reading. Try again!
The DHT11 sensor is working with C and the WiringPi library.
This is a Raspberry Pi 3, fresh Raspbian install, and all the latest software updates.
Linux PI3 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
Thanks.
The text was updated successfully, but these errors were encountered: