Posted on Tuesday, January 31, 2017 at 12:00 AM, 28049 views
From my point of view, home central heating system is one of the first thing, that should be managed by home automation system. Which allows you to create comfortable climate in your home regardless the outdoor weather, decrease usage of gas or electricity, save your money, and control your home heating whether you're out or on the sofa via laptop, smartphone or tablet.
The main part of each heating system is boiler. Most of the boilers can be controlled by simple on/off thermostat. However, newer boilers support power modulation and allow thermostats to adjust their heating water temperature. The boiler will use more or less gas(electricity), as appropriate, to reach the water temperature set by the thermostat. Using a simple on/off control device would greatly reduce the efficiency of the system compared to a modulating thermostat.
OpenTherm (OT) is a standard communications protocol used in central heating systems for the communication between a central heating boiler and a thermostatic controller. Official web site www.opentherm.eu. Using OpenTherm protocol you can control both your boiler’s domestic hot water temperature, as well as the temperature of the water used to heat your home. There are quite a lot manufacturers which make OpenTherm compatible boilers. Protocol specification version 2.2 you can find here. The boiler and the thermostat should be connected using two wires regardless of polarity. Voltage levels: Low level 7V, High level - 15..18V.
So to control boiler via arduino we should make OpenTherm to TTL levels adapter. I found schematic of DIY Opentherm Gateway, based on PIC controller, which allows to send OpenTherm commands to boiler via serial port. I was curious to understand OpenTherm protocol and features which it provides, so I decided to implement only adapter part of that schematic, and control boiler directly by arduino.
P MGS-TYPE SPARE DATA-ID DATA-VALUE 0 000 0000 00000000 00000000 00000000Where P is parity bit, you should set it to 1 if there are odd number of 1 bits in request.