The WiringPi is required to interact with Raspberry Pi’s GPIO pins, it plays very important part to control zoned heating system, In this post i will show you how to install WiringPi on your Raspberry Pi. With WiringPi we can control multi zone heating system and your boiler relay that is connected directly on your Raspberry pi GPIO pin. if you want to build wireless zoned heating system then follow Wireless Arduino Multi Zone Controller Relay with nRF24L01. 

Install WiringPi on Raspberry Pi

The WiringPi is maintained under GIT, If you do not have GIT installed, then under any of the Debian releases (e.g. Raspbian), you can install it.

If you get any errors here, make sure your raspberry pi is up to date with the latest versions of raspbian or you can do so with following commands:

To obtain WiringPi using GIT:

Fetch an updated version

Compile and Install WiringPi, The new build script will compile and install it all for you.

Now check installed version of WiringPi with gpio -v and then you can see all GPIO list with gpio readall

Wiringpi Installation

Wiringpi Installation

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. 

See below for wiring pi installed version and GPIO status and other relevant information.

If you have all zone valve and boiler relay module or either connected directly to Raspberry Pi GPIO then you can run test to make sure everything works as it should, also make sure all wiring completed correctly you can wire all zone and boiler as per this Raspberry pi Multi Zone Heating Control System Relay.