Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Temp and Humidity Sensors

Fri Jun 21, 2013 4:47 pm

I want to get a temp. and humidity sensor for my Pi but i am not sure if i should get a DHT11 or a DHT22?

User avatar
mmiller
Posts: 22
Joined: Wed Nov 16, 2011 8:38 pm
Contact: Website

Re: Temp and Humidity Sensors

Sun Jun 23, 2013 12:35 pm

http://learn.adafruit.com/dht
decide based on the cost and the range over which you wish to sense and required accuracy.
  • Slowly spreading the joy the RaspberryPi way!
    http://raspberrytorte.com/ http://wiki.raspberrytorte.com https://github.com/raspberrytorte

Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Re: Temp and Humidity Sensors

Mon Jun 24, 2013 3:25 am

Thanks I got the DHT 11 it is cheap and will work for my project. :D

User avatar
yv1hx
Posts: 372
Joined: Sat Jul 21, 2012 10:09 pm
Location: Zulia, Venezuela
Contact: Website

Re: Temp and Humidity Sensors

Tue Jun 25, 2013 7:39 pm

Aaron Richard wrote:I want to get a temp. and humidity sensor for my Pi but i am not sure if i should get a DHT11 or a DHT22?
Have a look here: http://www.raspberrypi.org/phpBB3/viewt ... 63&t=47391

Good luck! :D
Marco-Luis
Telecom Specialist (Now Available for Hire!)

http://www.meteoven.org
http://yv1hx.ddns.net
http://twitter.com/yv1hx

anthropophage
Posts: 2
Joined: Wed Jun 26, 2013 7:21 pm

Re: Temp and Humidity Sensors

Wed Jun 26, 2013 7:30 pm

I took an AM2315 on the i2c bus.
http://www.adafruit.com/datasheets/AM2315.pdf
Had to write the python3 class myself and cope with the pingeon english description.
https://code.google.com/p/am2315-python-api/

ammellema
Posts: 4
Joined: Fri Aug 09, 2013 4:09 am

Re: Temp and Humidity Sensors

Fri Aug 09, 2013 4:27 am

How did you wire this to your pi? I have seen a couple ways none of which i know are safe. So now im almost scared to wire it up. Dont wanna mess up my school project.

Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Re: Temp and Humidity Sensors

Sat Aug 10, 2013 2:55 am

ammellema wrote:How did you wire this to your pi? I have seen a couple ways none of which i know are safe. So now im almost scared to wire it up. Dont wanna mess up my school project.
I used this Adafruit tutorial below:
http://learn.adafruit.com/dht-humidity- ... g/overview
Good luck on your school project!
Last edited by Aaron Richard on Sun Aug 11, 2013 2:34 am, edited 1 time in total.

ammellema
Posts: 4
Joined: Fri Aug 09, 2013 4:09 am

Re: Temp and Humidity Sensors

Sat Aug 10, 2013 4:48 am

I appreciate the help but.... that wasnt any. If anything it confused me more. Those wires are all going off into space... thats not the right sensor... I am trying to learn the concept but it seems like that just added to "another way to wire" it. Wires arent right colors and what pin is what???? There are 4 wires on a AM2315 I know where the red and black wires go.... There is a yellow SDA and white SCL.... Where do these go :) From what i understand..... Use 5v power thats what it recommends for accuracy. and that is why i am using that particular sensor. Ground to well ground.. arent the GPIO pins under the 5v power ones supposedly 5v resistant or some good stuff like that. I have seen people straight wire these things :/ Not really what i wanna do though. Do i just pick two random pins that are not rx or tx?? and assign them as theI2C SDA and SCL. are there two that are preset for that... why use 3v3 if there are 5v power and resistand GPIO pins? Still confused. Im just trying to get this up in fritzing before i get the board in the mail.

User avatar
richiepp
Posts: 129
Joined: Wed Dec 19, 2012 4:56 pm

Re: Temp and Humidity Sensors

Sat Aug 10, 2013 1:04 pm

I tried in vain to get the DHT22 working with the Raspberry Pi a few months ago. I followed the tutorial at Adafruit and could never read from the sensor. I've successfully used the same sensor on an Arduino which took about 15 mins to set up. Has anyone out there successfully used the DHT22 with a Pi?

Ride On!
Rich

Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Re: Temp and Humidity Sensors

Sun Aug 11, 2013 1:52 am

richiepp wrote:I tried in vain to get the DHT22 working with the Raspberry Pi a few months ago. I followed the tutorial at Adafruit and could never read from the sensor. I've successfully used the same sensor on an Arduino which took about 15 mins to set up. Has anyone out there successfully used the DHT22 with a Pi?

Ride On!
Rich

I got it to work with the pi but then it stopped working and it melted the sensor. Im not sure why. :(
Last edited by Aaron Richard on Sun Aug 11, 2013 6:50 pm, edited 1 time in total.

Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Re: Temp and Humidity Sensors

Sun Aug 11, 2013 1:54 am

ammellema wrote:I appreciate the help but.... that wasnt any. If anything it confused me more. Those wires are all going off into space... thats not the right sensor... I am trying to learn the concept but it seems like that just added to "another way to wire" it. Wires arent right colors and what pin is what???? There are 4 wires on a AM2315 I know where the red and black wires go.... There is a yellow SDA and white SCL.... Where do these go :) From what i understand..... Use 5v power thats what it recommends for accuracy. and that is why i am using that particular sensor. Ground to well ground.. arent the GPIO pins under the 5v power ones supposedly 5v resistant or some good stuff like that. I have seen people straight wire these things :/ Not really what i wanna do though. Do i just pick two random pins that are not rx or tx?? and assign them as theI2C SDA and SCL. are there two that are preset for that... why use 3v3 if there are 5v power and resistand GPIO pins? Still confused. Im just trying to get this up in fritzing before i get the board in the mail.
It is not the same sensor but all the pins are the same. here this should work. btw im sorry if it melted your sensor cause i melted mine. USE 3V3 not 5v!! If you do not want to use pin 4 you could use pins 17,18,21,22,23,24,25. just change the pin name in your code.
Attachments
cfgdit.png
cfgdit.png (32.39 KiB) Viewed 51851 times

peewee2
Posts: 61
Joined: Sun Apr 14, 2013 7:04 pm

Re: Temp and Humidity Sensors

Sun Aug 11, 2013 7:34 pm

There is a USB device available for around £20, TemperHUM

the how to is at https://github.com/asmuelle/node-temperNTC

No screwing about with bits of wire and prototype boards.

Pete

ammellema
Posts: 4
Joined: Fri Aug 09, 2013 4:09 am

Re: Temp and Humidity Sensors

Tue Aug 13, 2013 12:53 am

Thank you that diagram is easy to follow, the sensor is in the mail. Just got the pi and got it connected to my comp via usb gpio. This thing is tiny! I need a accurate humidity reading^^^^ or i would have taken a dif route already. Let you guys know how it goes:)

Aaron Richard
Posts: 8
Joined: Fri Jun 21, 2013 4:40 pm

Re: Temp and Humidity Sensors

Wed Aug 14, 2013 3:02 am

ammellema wrote:Thank you that diagram is easy to follow, the sensor is in the mail. Just got the pi and got it connected to my comp via usb gpio. This thing is tiny! I need a accurate humidity reading^^^^ or i would have taken a dif route already. Let you guys know how it goes:)
Good luck!

sleepingdog
Posts: 2
Joined: Fri Jun 14, 2013 12:36 am

Re: Temp and Humidity Sensors

Mon Oct 21, 2013 11:46 pm

You might consider to use the newest sensor chip si7005 from silicon labs. Here is a module DSTH01http://www.dorji.com/pro/sensor-module/ ... odule.html based on it. Very small size...

Return to “Automation, sensing and robotics”