Page 1 of 1

DHT11 not working?

Posted: Thu Feb 06, 2014 8:36 am
by cobronc
[img]
control.png
control.png (54.58 KiB) Viewed 4600 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 4600 times
all i get is using pin 4
and everything hangs...

Greets
Elly

Re: DHT11 not working?

Posted: Thu Feb 06, 2014 9:20 am
by Onira
try another pin

Re: DHT11 not working?

Posted: Thu Feb 06, 2014 2:09 pm
by cobronc
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?

Re: DHT11 not working?

Posted: Sun Feb 09, 2014 8:58 am
by cobronc
Nobody any idea?

Re: DHT11 not working?

Posted: Sun Feb 09, 2014 3:22 pm
by Onira
have you made all necesarry setup needed?

Re: DHT11 not working?

Posted: Sun Feb 09, 2014 4:09 pm
by cobronc
DSC_0106aa.jpg
DSC_0106aa.jpg (57.71 KiB) Viewed 4511 times
what do you mean by the setup? i followed the tutorial of adafruit.
greets

Re: DHT11 not working?

Posted: Sun Feb 09, 2014 5:53 pm
by Onira
I ment all modules needed to be loaded and all the software needed to be installed.

Re: DHT11 not working?

Posted: Sun Feb 09, 2014 5:59 pm
by cobronc
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..

Re: DHT11 not working?

Posted: Wed Feb 12, 2014 4:24 pm
by cobronc
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?

Re: DHT11 not working?

Posted: Thu Feb 13, 2014 1:12 am
by DougieLawson
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

Re: DHT11 not working?

Posted: Thu Feb 13, 2014 3:33 pm
by cobronc
I tried different pin numbering as you suggested, it is working now. Thanks everyone! :D

Re: DHT11 not working?

Posted: Thu Mar 17, 2016 5:35 am
by mahem
I'm also having the same problem, But the above mentioned solution not working for me. Is anybody there to help??