XBee Central Heating Control via Raspberry Pi

Published on Friday 10 August 2012
Categories: Projects | Radio and RF | Raspberry Pi |

XBee Central Heating Control via Raspberry Pi

Following from the previous post detailing the plans to build an XBee & Raspberry Pi central heating controller we have now built the control board and written the Microchip Pic code to connect to the Drayton Lifestyle LP522 central heating programmer.

The circuit was mocked up on a breadboard (photo below) and then a custom PCB was designed using Diptrace and etched to build the new control board.

Development board mockup

The code (available on github) gives us the following commands when sent via the XBee serial port.

  • h = Hot water on
  • i = hot water off
  • j = hot water status check
  • c = central heating on
  • d = central heating off
  • e = central heating check

Each of these commands is read by the Pic processor and then switch opto isolators which in turn activate the relay(s) in the LP522 programmer.

The new PCB had to be milled to fit a spare ABS plastic box and was then drilled ready to have the surface mount components added to the base.

PCB drilled

Once the components had been fitted the tracks where tinned to improve connectivity.

PCB drilled

The top view of the board shows the mains fuse, power supply, opto-isolators, smoothing caps and the XBee module.

PCB drilled

The Mikro C code for the PIC processor and PCB layout can be downloaded from my project page on github.

Permalink


0 Comments



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
89,358 views

Small image for Ford Sync 3 USB Drive Music Playlists

Ford Sync 3 USB Drive Music Playlists
22 OCTOBER 2016
60,330 views

Small image for Echo Dot 3rd Gen Smart speaker Teardown

Echo Dot 3rd Gen Smart speaker Teardown
21 JULY 2019
57,552 views

Small image for DIY Pick and Place V2 Project Complete

DIY Pick and Place V2 Project Complete
23 NOVEMBER 2013
35,175 views