Cental Heating Control via Windows Phone and Raspberry Pi

Published on Monday 10 June 2013
Categories: Home Automation | Projects | Radio and RF | Raspberry Pi | Solar Power |

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/ 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 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



Leave a comment

About Me

Brian Dorey

Welcome to my blog, here you will find my projects and other things.
I make websites and manufacturer and sell expansion boards for the Raspberry Pi range of computers.

AB Electronics Raspberry Pi shop

Social Media

Popular Posts

Small image for Raspberry Pi Zero W external antenna mod

Raspberry Pi Zero W external antenna mod
04 MARCH 2017

Small image for Ford Sync 3 USB Drive Music Playlists

Ford Sync 3 USB Drive Music Playlists
22 OCTOBER 2016

Small image for Echo Dot 3rd Gen Smart speaker Teardown

Echo Dot 3rd Gen Smart speaker Teardown
21 JULY 2019

Small image for DIY Pick and Place V2 Project Complete

DIY Pick and Place V2 Project Complete
23 NOVEMBER 2013