cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

DHT11 not working?

Thu Feb 06, 2014 8:36 am

[img]
control.png
control.png (54.58 KiB) Viewed 4601 times
[/img]Hi, i wired up the sensor power on pin 1, data on gpio4 (pin 7) and ground to pin 6 with jump wires,
installed the code following the adafruit tutorial (http://learn.adafruit.com/dht-humidity- ... re-install)
, but i am already stuck by trying to get the test temerature in the command line; all i get is : using pin4
and then everything hangs... any ideas?
I would appreciate any help, i am totally new at these things.
got stuck here:
contorl.gif
contorl.gif (14.07 KiB) Viewed 4601 times
all i get is using pin 4
and everything hangs...

Greets
Elly

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: DHT11 not working?

Thu Feb 06, 2014 9:20 am

try another pin
Cogito ergo sum

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Thu Feb 06, 2014 2:09 pm

Tried pin 11 (gpio 17) but same result .. or no result. Is there another way besides the adafruit tutorial to check for eadings out of the sensor?

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Sun Feb 09, 2014 8:58 am

Nobody any idea?

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: DHT11 not working?

Sun Feb 09, 2014 3:22 pm

have you made all necesarry setup needed?
Cogito ergo sum

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Sun Feb 09, 2014 4:09 pm

DSC_0106aa.jpg
DSC_0106aa.jpg (57.71 KiB) Viewed 4512 times
what do you mean by the setup? i followed the tutorial of adafruit.
greets

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: DHT11 not working?

Sun Feb 09, 2014 5:53 pm

I ment all modules needed to be loaded and all the software needed to be installed.
Cogito ergo sum

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Sun Feb 09, 2014 5:59 pm

I followed this link exactly :
http://learn.adafruit.com/dht-humidity- ... re-install
"$ git clone git://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git
$ cd Adafruit-Raspberry-Pi-Python-Code
$ cd Adafruit_DHT_Driver
Then run
sudo ./Adafruit_DHT type pin#
For example, we'll have an AM2302 connected to GPIO #4 so we'll run
sudo ./Adafruit_DHT 2302 4"
the program is starting, and writes using pin #4 then it hangs..

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Wed Feb 12, 2014 4:24 pm

I tried with installing the wiringPi module and program and all i get is
Data not good, skip
Is it possible a new sensor is broke?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: DHT11 not working?

Thu Feb 13, 2014 1:12 am

Check the wiring.

Image

Red wire to physical PIN #1 (3V3)
Green wire to physical PIN #11 (GPIO #17)
Black wire to physical PIN #6 (GND)

Run your Adafruit python program with
sudo ./Adafruit_DHT 2302 17
if that doesn't work try
sudo ./Adafruit_DHT 2302 11
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

cobronc
Posts: 11
Joined: Thu Feb 06, 2014 8:32 am

Re: DHT11 not working?

Thu Feb 13, 2014 3:33 pm

I tried different pin numbering as you suggested, it is working now. Thanks everyone! :D

mahem
Posts: 2
Joined: Thu Mar 17, 2016 5:31 am

Re: DHT11 not working?

Thu Mar 17, 2016 5:35 am

I'm also having the same problem, But the above mentioned solution not working for me. Is anybody there to help??

Return to “Troubleshooting”