Sunday, April 18, 2010

My circuit board pics

Here are some pics of my circuit as it currently stands.


This is the overall circuit with the Arduino Diecimila on the left (underneath) with the NKC Electronics Terminal Block Shield attached and my Radio Shack PC board on the right. The boards are "attached" to some white foam-core board with some bits of yellow HandiTak (a non-permanent putty that just barely holds these things together).

A large view of just my PC board.

The terminal blocks along the top of the PC board are for the Dallas Semiconductor DS18B20 temperature probe hookups (using the 1-wire/one-wire protocol). I have two buses for the DS18B20s because I was having trouble keeping them reliable with just one. I'm using parasite power and could have probably overcome that issue by directly powering them but I wanted to keep the wire count down since I was piggy-backing on my home network wiring.

The terminal block on the bottom of the PC board is the output from the relay that basically tricks my existing solar pool water heater controller (a HelioMatic - Model HM4000C) to turning on or off by switching one of the two resistors inline. So the HelioMatic thinks it just got really hot or really cold depending on which resistor has been switched inline. There's a fixed 10k resistor inside the HelioMatic to compare against. Normally these terminals would be hooked up to the thermistor embedded in an aluminum block and glued to the roof where the solar heat tubes are, and the other would be on the intake water thermistor which is inline with the pump.

To mock my soldering job you can see the back side of my board:


And here's my Photoshop created schematic view. It's not perfect and I'm not sure if I have the symbols correct (especially the diode directions). Click the photo for a larger version.


I hope this is clear and correct. Feel free to ask questions or correct me.

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.