Raspberry pi Multi Zone Heating Control System Relay: If your house have Multi Zone Heating then you can control each zone heating independently with raspberry pi and this will save you lot on your heating cost considering that you don’t have to heat all the house all the time. In this post i will show you how to build wired multi zone heating control system relay and control it from raspberry pi gpio so we can open and close zone valve to circulate water in each zone as needed.

Firstly we will connect the raspberry pi and the 4 relay module and test it from command line, but before we do that can you make sure you have WiringPi installed on your raspberry pi otherwise this wouldn’t work at all.

Note: WiringPi Pin number and Raspberry Pi GPIO numbers are not the same and make sure you have correct WiringPi GPIO saved int MySQL/MariaDB table otherwise you will have problems, see below image for Raspberry Pi GPIO pins and WiringPi Pins. 

Wiringpi All Pins

Wiringpi All Pins

Raspberry Pi Relay Module Wiring connection for zoned heating system.

Raspberry pi Multi Zone Heating Control System Relay

Raspberry pi Multi Zone Heating Control System Relay

MySQL/MariaDB Zone Table

PHP Script to Run Test for Zone/Boiler Relay

You can download this script from PiHome github or you can copy below and save it as php file.