Cental Heating Control via Windows Phone and Raspberry Pi

Share this

Monday 10 June 2013

I have now finished working on the mobile app for the Raspberry Pi controlled central heating controller. This is following from the www.briandorey.com/post/XBee-Central-Heating-Control-via-Raspberry-Pi blog post which detailed how the central heating controller was controlled via an xbee module to the Raspberry Pi.

Heating controller

The phone app connects to the raspberry pi via the apache server and loads data from a mysql database which is saved from the solar logging system.

The phone app formats this onto the screen to show hot water and solar PV outputs. The app also controls the central heating controller via the raspberry pi and a pair of xbee modules.

The Raspberry pi is using a PHP Serial class to communicate with the xbee module and this sends the commands to the heating controller to turn on and off the hot water and heating circuits.

Initially I couldn’t get the PHP Serial class http://code.google.com/p/php-serial/ to run and then found a blog post on http://www.fritz-hut.com/php-serial-class/ which shows the extra steps needed to add the apache user to have dialout permissions. After a quick reboot everything worked without any problems.

Overview of communication between the devices:

Mobile Phone App
WiFi network
XBee Module
Raspberry Pi
XBee Wireless
Xbee - PIC Processor
Central Heating Controller

The video shots below show the mobile phone app screens to show the hot water, solar pv and boiler control status being used with the central heating controller.

The code for this project including the Windows 8 phone app and PHP scripts is available to download from https://github.com/briandorey/RaspberryPi-Boiler-Ctrl