RHT03 + Raspberry Pi

Well… the DHT22 it’s not a RHT03!! DAMN

To make a Sparkfun RHT03 work on a Raspberry Pi I’ve found 2 solutions:

1

http://rpidude.blogspot.de/2012/11/temp-sensor-and-wiringpi.html

 ~ $ git clone git://git.drogon.net/wiringPi
$ cd wiringPi/
~/wiringPi $ git pull origin
~/wiringPi $ ./build
~/wiringPi $ cd examples/
~/wiringPi/examples $ gcc rht03.c -o rht -lwiringPi -lwiringPiDev
~/wiringPi/examples $ sudo ./rht 11 #GPIO17
Temp:  20.8, RH:  57.8%
Temp:  20.8, RH:  59.1%
Temp:  20.7, RH:  59.1%

2

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=49628&p=387971#p387971
$ git clone git://github.com/technion/lol_dht22.git
$ cd lol_dht22/
~/lol_dht22 $ ./configure
~/lol_dht22 $ make
~/lol_dht22 $ sudo ./loldht 
Raspberry Pi wiringPi DHT22 reader
www.lolware.net
Data not good, skip
Humidity = 59.40 % Temperature = 21.20 *C

Next steps… try to improve results with a Logic Level Converter

Advertisements

2 thoughts on “RHT03 + Raspberry Pi

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s