Search This Blog

Showing posts with label data. Show all posts
Showing posts with label data. Show all posts

Wednesday, May 5, 2010

First Data

So...it's almost been a month since my last post.  Too bad I haven't done a month's worth of work on this project. I recently found my soldering iron.  And that means I could hook up the sensors I have and get them working.  It didn't take long.  I spent some time looking over data sheets and looking through the Arduino forum to figure out how to properly hook up the sensor and write the program.  Although I have no way to confirm the output I am getting, the data taken from some testing I did appears to be consistent with what I expected.

The first sensor I have is a HIH-4030 Humidity Sensor.  This sensor is analog, which makes it very simple to extract data.  The tricky part is computing the correct humidity from the raw data.  From the data sheet, the raw analog signal has to be converted to a "sensor" relative humidity.  Then this value has to be corrected depending on the temperature.

The temperature is read from a TMP102 digital sensor.  This sensor communicates using a two-wire system and allows multiple sensors to be connected to the same two wires.  This two-wire system, called I2C, makes the communication more complicated, but there is an Arduino library that makes it almost as simple as reading an analog sensor.  This sensor has different wiring schemes to address them separately.  I read the data sheet to determine which address I wanted to make the sensor respond.  Then it was a matter of calling the specific address in my code, then the sensor responds with the temperature.  Easy as pie.

Enough talk, more doing.  DATA!!!!!  I made some cool charts. This first chart shows the overnight living room data. Fairly constant temperature and humidity.  The spike in humidity towards the end is from my morning shower.


The following chart is data taken from a full day inside of Mojo's habitat.  The red data is from the warm side of the habitat and the blue is from the cool side. The heating lamp was turned on at 7 AM and off at 10 PM. The small drop in temperature around midnight on the cool side could be explained through a number of means.  I found the sensor not laying in same place that I had placed them, meaning Mojo moved them.  Or the air conditioning came on at that time and caused the drop, which wouldn't have been seen on the warm side because it is controlled more strongly through the heating pad.  From this data, I have determined that I do need to create more distinct cool and warm sides.  The temperature differences are not great enough for the habitat.

This chart shows the relative humidity during the current normal cycle for both the hot and cool sides of the habitat.  I sprayed the habitat at 7 AM and again at 10 PM.  This is the area that I knew beforehand that needed to be better controlled.  This fact is very obvious from the data.  Once the project is finished, the humidity will never drop below 60% on either side.  But I do have a humid box with wet paper towels inside for Mojo to use when he is shedding, which he does crawl into whenever he likes to soak up some extra moisture.


That's all for now.  Until next time, continue being creative.