Lets Build

How to Build Smart Heating with Raspberry Pi

RaspberryPi

Raspberry Pi

IOT (Internet of things) is common notion these days but what really you can do with it? what first thing you want to connect? how you can make something smart if it isn’t smart?  i.e Smart Heating, what are the pros and cons?

You only have two options, one buy off-the-shelf commercially available product (there are tons and tons of comparison between all commercially available solution so i m not going to go through any of that), second you could spend less and have fun building things yourself.

Fancy second option? then Let Get Started!!!

This Project is based on credit card size single board computer called Raspberry Pi, whole systems is presented using Apache web server, all information is stored in MySQL database. Python script is used to log temperature sensor data using One wire DS1820 temperature sensor, most of the code is written in PHP.

Before we deep dive into this project something very important: PiHome comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. DO NOT MAKE ANY CHANGES TO YOUR HEATING SYSTEM UNTIL UNLESS YOU KNOW WHAT YOU ARE DOING, contents provided here are for information and education purpose only, I take no responsibility for any loss or damage to you or your property.”

Following posts aren’t in sequence, if you want to follow all step by step please check this link.

Wireless Arduino Multi Zone Controller Relay with nRF24L01

Wireless Arduino Multi Zone Controller Relay with nRF24L01: 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. For this purpose you need to build wireless relay switch as Multi Zone Controller so we can open and close zone valve to circulate water in each zone as needed. Check…

8
Read More

Wireless Arduino Boiler Controller Relay with nRF24L01

Wireless Arduino Boiler Controller Relay with nRF24L01: Control gas boiler with relay by connecting it to room thermostat connection on gas boiler without passing any current to gas boiler or at least this is how i did it and not to worry about buildup pressure inside heating pipes as gas boiler controller takes care of that itself. You can control High Voltage electronic devices using relays modules that are readily available in the market. I am using the HL-52S 2…

16
Read More

Connect Arduino with nRF24L01 Radio

The nRF24L01+ transceiver module uses the 2.4GHz band and it can operate with baud rates from 250kbps up-to 2Mbps true ultra low power and low cost transceiver. nRF24L01+ communicate with Arduino via SPI interface and it consumes around 12mA with operating voltage from 1.9v to 3.3v. nRF24L01+ can communicate with other nRF transceiver modules and it can reach 100m in clear line of sight with lower baud rate. In this article I will explain you how to connect nRF24L01 with…

1
Read More

Python Script for MySensors WiFi/Ethernet Gateway

Python Script for MySensors WiFi/Ethernet Gateway: To communicate with MySensors WiFi/Ethernet gateway I’m using Python script which run as cron job on my controller (Raspberry pi). Python script is used to receive all incoming and sending all out going commands through serial gateway to all MySensors nodes. You can start python script to check all communication is working fine and script can communicate with MySensors WiFi/Ethernet Gateway. Installing Dependencies Login to your raspberry pi via ssh and issue following commands…

0
Read More

Python Script to Communicate with Serial Gateway

To communicate with mysensors serial gateway I’m using Python script which run as cron job on my controller (Raspberry pi). Python script is used to receive all incoming and sending all out going commands through serial gateway to all mysensors nodes. MySQL Table to For  Incoming Messages First you need to create table in MySQL database so we can save all incoming messages from wireless sensors to MySQL database. Simply create table or copy and past this script to create…

1
Read More

One Wire Temperature Sensor – DS18B20 to MySQL/MariaDB Database

If you followed instructions on how to connect One Wire DS18B20 to Raspberry pi gpio then next step would be how to take temperature readings from DS18B20 One Wire digital temperature sensor and store these readings to MySQL/MariaDB database. As you may know that each DS18B20  One Wire digital temperature sensor has a unique 64-bit serial number wonderful part that we can have more then one DS18B20 One Wire digital temperature sensor connected to same 1-Wire bus. Check out PiHome…

44
Read More

Install Apache, PHP 7.0 and MySQL/MariaDB on a Raspberry Pi (LAMP) with phpMyAdmin

LAMP is an acronym that stands for Linux Apache, MySQL/MariaDB and PHP. i have LAMP installation post for PiHome but i see lots and lots of people are looking for setting up php 7 with phpMyAdmin and MariaDB on raspberry pi and there isn’t any comprehensive set of instruction that covers this all for PHP 7, MariaDB on raspberry pi. If you are looking for Raspberry pi SD card image for LAMP (Apache, PHP 7.0 and MySQL/MariaDB on a Raspberry…

23
Read More

Auto Reconnect WiFi on Raspberry Pi

My Raspberry Pi 3 Wi-Fi isn’t very reliable even after disabling power management my RPI still manages to lose connection to  my Wi-Fi router and i don’t have any keyboard or screen connected to it and its not advisable to do hard reset i.e unplug the power as it may corrupt your SD card. I’m going to cover writing a short script that Auto Reconnect WiFi on Raspberry Pi to a Wi-Fi network. The script will run as cron job…

21
Read More

How to setup OpenVPN on Raspberry Pi

Raspberry Pi OpenVPN is a great way to access a home network from a remote location. In addition it can be used to secure network communications when connecting to public Wi-Fi. Since the RPi is very low-powered single board computer it is ideal for setup your own Raspberry VPN server with OpenVPN. OpenVPN comes with Easy_RSA, a simple package for using the RSA encryption. Let’s find out how you can how to setup OpenVPN on Raspberry Pi device. Why VPN?…

4
Read More

WiringPi Installation

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…

5
Read More