Tales along the way in my quest to Integrate Everything.

edison_lamp

Venturii is going to be featured at the Metal Minds booth in this year’s Maker Faire at Telus Spark! I am very excited to be able to show off what we’ve created so far, and hopefully we can generate some interest in the idea, maybe even get some more testers and contributors to the project!  We’ll be demonstrating some of the integration possibilities between various off the shelf products and devices people can make on their own. Venturii’s modular system allows virtually unlimited integration between both disparate and similar systems in mutually beneficial ways. With only one booth and practically no time to prepare, I know we won’t be able to fit everything in, but here are some of the things we are currently doing with Venturii:

  • Energy Consumption Monitoring:
    • Water
    • Gas
    • Electricity
  • Environmental monitoring:
    • Temperature
    • Relative Humidity
    • Light levels
    • Soil Moisture Levels
    • Water Presence / Levels
  • Controlling Things:
    • Lights
    • Appliances
    • HVAC Equipment (Furnaces, Air Conditioners, Etc.)
    • Fans
    • Dampers
    • Electric Locks
    • Underground Sprinklers
    • Electric Valves
    • Strobes and Sirens

In addition to the hardware side where we are receiving data from and controlling devices, we have also taken great strides on our Web Interface, allowing virtual interaction with anything Venturii touches, along with a whole range of reporting and graphing engines, making the information collected both accessible and useful.

I hope to see you there!

Some quick Links:

Honeywell Gas Valve
Honeywell WV8840A1000 Gas Valve Removed From A 5 Year Old Bradford White Hot Water Heater That Burst.

honeywell_gas_valve_with_cover_offhoneywell_gas_valve_with_pcb_and_cover_offhoneywell_gas_valve_back

 

Sometimes calamity strikes

A few weeks ago my family and I went camping for the weekend. When we came home, we discovered that our hot water tank had burst over 14 hours before we arrived home. About five years ago the same thing had happened, only we caught it within minutes of springing the leak, had the whole event on camera and were able to prevent any damage to the house whatsoever. That tank, itself barely 5 years old, carried a 10 year warranty and was replaced by the manufacturer, Bradford White, but the new tank had often made suspicious creaking, crackling and groaning sounds to the point that I not only suspected it would burst some day, I expected it to. To that end I had installed water sensors beneath it and an electric ball valve on the main water line coming into the house, so when it too did burst and we weren’t home, Venturii immediately shut off the water and sent me an email. Ironically, I had decided that I would not check my phone that evening, reasoning that nothing is so important tonight that it cannot wait until tomorrow. In retrospect that was a good call, as I’d have only been stressing the whole next morning as we packed up and prepared to come home.

Opportunity Presents Itself

Although itself still carrying ~2 year warranty, I opted not to replace like with like since both previous likes had burst and instead went to a different brand of hot water tank. However, this left me with a relatively new hot water tank, with all the trimmings. As I began to dismantle it, determined to determine where the leak actually occurred from, (since the hot water tank was packed in spray foam, it was not immediately apparent while still connected to the water lines where the water was actually leaking out of the metal tank from since it poured out of every crack, crevice and cranny in the outer jacket), I removed the burner assembly and gas valve to provide another hole through which to peer into the mysterious chasm that held much rusty hot water. I won’t go into detail on how much the tank had rusted, the sliver that was left of the sacrificial anode rod or the quantity of brown sludge that lay in the bottom of the tank, stubbornly refusing to leave despite my regular efforts at flushing the tank. What caught my eye was three letters above an inconspicuous hole on the Honeywell gas valve that I’d just removed. Those three letters piqued my curiosity and wound up the wheels of wonder as I pondered the possibility of a direct link into the very brain of the hot water heater’s mind.

Testing Theories

Gas Valve Test Setup

Test rig setup – Flame from a candle will heat a thermopile to power the gas valve.

The first thing I need to do is figure out a way to power the gas valve so that I can interact with it. Originally, it was powered by the pilot light. The tiny flame that remains lit at all times to light the main burner in the hot water tank is directed onto a cluster of thermocouples combined together to create what is called a thermopile. The heat from the pilot light is converted into a tiny electric current by the thermopile, which in turn is converted into the correct voltage by circuitry on the gas valve’s control circuit board. A tiny capacitor stores enough charge to handle the inrush demands of both the pilot and main burner gas valve activations, as directed by an ultra low-power micro-controller from Texas Instrument’s M430 family, in this case the M430F2254.

Honeywell Gas Valve Powered by a Tea Light

Using a Tea Light, I was able to energize the Micro Controller on this Honeywell Gas Valve.

Positive results were obtained shortly after lighting the candle. After a few moments under the thermopile the thermostat clicked on the gas to the pilot light, and the LED began to flash once every couple of seconds, indicating that all is well. A well timed shot caught the LED mid-flash as you can see above. (Note the glowing LED on the bottom left-hand corner of the circuit board.) Measuring the inline voltage (voltage read with the gas valve connected) brought the output of the thermopile minus the demand of the PCB to about 300 mV. This is definitely on the low end of where it should be, a fact that was quite evident when the gas valve powered off as soon as I tried to fire up the main burner valve. It seemed that pushed it over the edge and it browned out. Changing the candle for a blow torch set on very low resolved this issue, and testing was soon to progress.

With a functional gas valve on the workbench, the next order of business was connecting to the communication lines on it. Since the MCU was kind enough to pull the RX pin high, measuring the voltage between Rx and GND read 3.3v. I assume this is the operating voltage of the MCU which should make communicating with it, at least electrically, less complicated. I had read about Honeywell gas valves supporting a different COM bus, wherein two 24VAC lines were supplied to the gas valve and a single data pin, which was clock-synchronized to the AC waveform. With this model of valve having clearly marked GND / Tx / Rx pins, I am all but certain that it uses an entirely different means of communication. First up, determine what that method of communication is.

We hooked up the TX and RX lines to an oscilloscope and see that the RX pin goes high once the micro-controller has powered up. That said, it does not broadcast any information out when the set-point is changed or the main burner kicks on. This seems to coincide with everything I’ve read about the EnviraCom protocol, which I suspect this device speaks, which is a query/response protocol; you have to ask it a question before it will reply. It would seem that in this case, as with any diplomatic engagement, getting the answer you desire depends on the question that you ask. Now the mystery: What question do I ask it?

Most EnviraCom documentation I’ve encountered used an interface module that translated signals from the 3-wire com bus used on previous generations of gas valves to the RS-232 standard. I don’t know if that module is translating both command set AND electrical signaling, or if the protocol that it is exposing is the actual protocol used by the devices internally and it is merely doing a physical layer translation. Obviously that would be the preferred method, as it would potentially mean that the protocol needed to talk to the valve is already [at least somewhat] documented and available on the Internet. For me the big breakthrough will be marked by sending the gas valve a message and having it respond in a sane fashion. Once that happens, the rest (should be) downhill.

I own a compact disc containing a number of Monty Python sketches made for radio / audio only. One of those sketches depicts a conversation between a man who has inherited 122,000 miles of string and an advertisement executive bent on selling said string. The only problem, says the man, is that due to bad planning, the 122,000 miles of string is in three inch lengths. Undaunted, the advertiser announces proudly, Well that’s our selling point! Pre-cut, easy-to-handle, individual stringette’s. He then goes on to praise the many (unreasonable) uses of such a product, culminating their imaginary uses with the title of flood preventers!

As it turns out, Venturii has proven itself to be a much more effective flood preventer than 3″ lengths of string, regardless of the quantity. Two real world cases in the past week have seen considerable costs of flood damage averted by homeowners who have deployed Venturii in their houses. In the interest of full disclosure, I am one of those homeowners. Even so, the results were no less impressive and the savings were no less real when my hot water tank burst while I was away on vacation and Venturii immediately shut off the water to my house, changing the outcome of a hot water tank bursting with 80 PSI of water pressure behind it for 14 hours to about 4 gallons of water from residual pressure and gravity trickling out of the new hole in the water tank and onto the floor.

 

When I was a wee lad of a mere nineteen or so, I used to go camping at the lake every weekend. I had a seasonal tent site, the only one in the 50 year history of the campground. As my home away from home, I had a little solar powered light that I would put out to mark my camp site. It would cycle between red, green and yellow – and although it broke many years ago I have not seen another quite like it since.

A few months ago, in the dead of winter, I came across a solar powered LED device. I think it was supposed to have some sort of decoration on the LED, a clear plastic butterfly or some other such diffuser and it was of the style one might see in a very busy garden. I set it outside and stuck it on the back deck where it would get as much sun as one could get in the dead of winter, though I really did not have any hopes it would work. It likely had sat, dead, for months if not years,  which  combined with sub-zero temperatures is in all but the rarest of cases a death sentence for any rechargeable battery. I don’t think it lit up at all the first few nights, and I forgot about it outside in the cold. Then one day I noticed a strange light through yonder window – the little LED on it was glowing. Watching it for a while I noticed that it changed color as it glowed, and was a full RGB type with an integrated controller making it produce all sorts of colors. It barely lasted a few hours at first, but as time went on and more sunlight hit the solar cell, it stayed on longer, eventually lasting the entire night! This morning I noticed it still alit as the sun was coming over the horizon and it got me thinking – could I power all my outdoor lights from the sun?