Setting up SHT11 Humidity and Temperature Sensor


8 posts
by mangels09 » Wed Mar 27, 2013 12:51 am
Hello,

I recently received the sht11 breakout board from Adafruit (this one >> http://adafruit.com/products/246 ). I would like to use the rpiSht1x python package (found here >> https://pypi.python.org/pypi/rpiSht1x/1.2 ) to interface with it.

The issue is that I really don't know how to connect the sensor to my Raspberry Pi. I have seen the datasheet (found here >> http://www.parallax.com/Portals/0/Downl ... onDocs.pdf ). Unfortunately, I am still confused as to which pins I should use on the Pi.

I have been successful connecting other better-documented sensors (BMP085, DHT11, DS18B) to the Pi, but honestly that is the only experience with low-level peripherals that I have.

Thank you in advance for any help that you can provide.
Aaron
Posts: 5
Joined: Fri Feb 17, 2012 5:03 am
by mangels09 » Wed Mar 27, 2013 3:41 am
So I did some fiddling around with the sensor tonight and it looks like I got it working after all. I should've looked at the example rpiSht1x code more thoroughly first. So, I'm sorry that I made a somewhat useless thread, but I'm glad I learned what I needed.

Overall, I'm pretty impressed with the sensor so far. Much better than the DHT sensors anway...

I'll stay subscribed to this thread so I can offer (limited) help to anyone else that runs into trouble.
Posts: 5
Joined: Fri Feb 17, 2012 5:03 am
by annirak » Wed Mar 27, 2013 1:00 pm
The SHT1x series is a truly excellent set of sensors. I've used the SHT15 for monitoring air temperature/humidity in an arctic remote sensing application. If you contact Sensirion, they will give you the equations to improve the accuracy beyond what the basic app-note gives you. One problem I did have was that I could never get the CRC to work correctly. Let me know if you figure that out!
Posts: 9
Joined: Tue Nov 08, 2011 5:06 pm
by Rupz007 » Thu Jun 26, 2014 6:51 am
Hi, I know this is an old post but I would be so grateful if you could enlighten me with the way you got the SHT11 sensor to work with the code? I seem to be getting an NACK on the readings? Do you happen to have a basic circuit to share? Thanks in advance! :)
Posts: 4
Joined: Thu Jun 26, 2014 6:48 am
by mangels09 » Sat Jun 28, 2014 5:20 pm
I wired the sensor up just as suggested on here => http://www.parallax.com/sites/default/f ... n-v1.0.pdf

Make sure to specify whatever pins you are using in your code. There is more information here => http://www.john.geek.nz/2012/08/reading ... pberry-pi/

Let me know if you need more help. I don't have that sensor with me anymore so I can't test it, but I'll help you out as much as I can.
Posts: 5
Joined: Fri Feb 17, 2012 5:03 am
by Rupz007 » Thu Jul 03, 2014 9:05 am
Hi mangels09

Thanks for this, really helpful!

I shall give it a try and get back to you if I have any issues.

;)
Posts: 4
Joined: Thu Jun 26, 2014 6:48 am
by Rupz007 » Thu Jul 03, 2014 2:28 pm
Great news!

Managed to get a reading and it was due to the code for the Rpi_SHTx1 having the DATA and CLK pins incorrectly mixed up!

Thanks again Mangels09! :)
Posts: 4
Joined: Thu Jun 26, 2014 6:48 am
by Rupz007 » Mon Jul 28, 2014 11:46 am
Hello again!

After successfully implementing the SHTx11 sensor with the raspberry Pi, my next challenge is to use multiple sensors to monitor different areas in the room. I know that it is possible to utilise the CLK pin multiple times and then allocating a data pin for each SHT11 sensor.

My issue is that for some reason I cannot perform this easily as the RPiShtx.h library really only caters for one.

I'm trying to set up multiple #defines for the various sensors within the RPiSHt1x.h library but wanted to know if there is an easier way to do this?

Any help or info would be greatly appreciated! :)

Thanks
Posts: 4
Joined: Thu Jun 26, 2014 6:48 am