Wednesday, April 7, 2010

Welcome to my Arduinomation blog!

I started this blog to document my journey with the Arduino and my desire to automate my home, and to give back to the community that has helped me so much in my efforts to do so.

I've already been working on this project for several months so much of this will be catching up to reality but I'll start by summarizing where I am now. I mostly started this project to help me learn Arduino programming and to make something useful. I learned about the Dallas Semiconductor DS18B20 temperature sensor on Sparkfun, bought two and got hooked. I later found a source on eBay that cut the price down to just over $2 each (rather than $4.50 each + shipping from most places on the internet). So I bought 13 of them and have been installing them around my house. In addition to the DS18B20 sensors I currently have 3 thermistors outside that relate to my swimming pool and its solar heater, plus a relay to turn that solar heater on and off. All of this is connected to my Arduino Diecimila with a small prototyping board in between with simple electronics on it. The Arduino is powered and talks to my old Mac server via USB. I wrote a sketch in Processing that listens to the incoming data from the Arduino, formats it, uploads it to Pachube, saves local log files, graphs the data, and saves the graph image to my server. Older versions of my software also served the data to a client program I wrote in Processing that graphed data too, which I'll be recreating again soon.

My initial versions of the software for Processing and the Arduino were starting to become too difficult to maintain and improve upon lately so I've started version 2.0 this last week. I'm hoping to improve code readability (lots more commenting), improve my coding practices which are still fairly beginner level, and improve functionality and expandability.

Hardware-wise I'm also planning on expanding. Even though I call this automation it's really only automating one thing at the moment - whether or not to turn on the solar heater for the pool. In a rough order I'm hoping to first add more sensors:
  • A shaded DS18B20 temperature sensor outdoors
  • A thermistor a couple feet under the surface of the pool in the water (so I can get an accurate temperature reading without the pool pump needing to be on)
  • A couple more DS18B20 sensors indoors in rooms I don't currently have sensors in
  • Something to track wind speed and direction
  • A rain detector and/or gauge
Further beyond that I also hope to actually automate things.
  • Turning the pool pump on and off
  • HVAC
  • Sprinklers
Lastly, I hope to be able to get wiring run to my meters outside - at least power and hopefully gas, so I can monitor my usage in real time. I know my power meter has an infrared LED that blinks once per (unknown kilowatts), and my gas meter is a PG&E "Smart Meter" that phones home but I don't know if I can intercept it.

So there's my not-so-brief opener. Hopefully this blog will eventually help others interested in this type of stuff. Photos and code to come soon.

No comments:

Post a Comment