User Tools

Site Tools


projects:temperatureandhumiditylogger

This is an old revision of the document!


Environmental Sensors

It gets really hot and really cold (depending on the time of year) in my home office, so I wanted something to log the temperature.

I used an Arduino along with a DHT22 temperature-humidity sensor from Adafruit to capture the temperature and humidity, and a bit of code (first written in Perl, and later ported to Processing) to do the logging.

For a while I had it tweeting the data every few hours, but I turned that off. Eventually I'd like to look at getting the data online, either using Pachube, another service, or something I write myself.

I'll also be adding other sensors, probably a PIR sensor to check for humans (or cats) and a photocell to see which lights are on.

There's a few blogs posts with details:

Project members: Pete Prodoehl

Below I'll post updates to this project as they happen.

Update: 2011-11-14

I've started digging into Pachube a bit.

There is now a feed here: https://pachube.com/feeds/39584

And an iPhone (mobile) view is here: http://apps.pachube.com/i/39584

The code is still janky and needs a lot of cleanup, but I'm going to let it run for a while and see what happens.

Note: Code needs some sanity checks… Every now and then we get a blank value, or it goes from '53' to '3' so something is getting lost.

Update: 2011-11-13

I've picked up this project again, and I've been playing with the Processing code to display data. It's caused two solid lockups on the Mac it's running on, which seems really odd. I'm running it now with the Perl code again, just to make sure it's not the Arduino or serial communication causing it. (I did switch from an Uno to a Seeeduino, but that shouldn't matter.)

I probably need to dig into the graphing code again, or find an elegant data presentation solution, or just try using Pachube (since it's free now.) For now, you may be able to see the data here: http://twitter.com/2xlnetworks

projects/temperatureandhumiditylogger.1321398615.txt.gz · Last modified: 2011/11/15 23:10 by raster