Lets Build

How to Build Smart Heating with Raspberry Pi

raspberrypi

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.”

Build a Web Connected Raspberry pi Thermostat

Build a Web connected raspberry pi thermostat and control your heating from any smart devices. , simply follow these steps and you will be up and running in no time. Step 1 OS (Raspbian Jessie) Installation and WiFi Configuration Step 2 Install Apache, PHP and MySQL on a Raspberry Pi (LAMP) Step 3 MySQL Access From Remote Computer Step 4 Import MySQL database from /MySQL Database folder and add all view tables. Step 5 Change Database Settings in st_inc/_config.inc.php Create…

12
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…

2
Read More

Raspberry Pi OpenVPN

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 it is ideal for setup your own VPN server with OpenVPN and OpenVPN comes with Easy_RSA, a simple package for using the RSA encryption. Let’s learn how to setup OpenVPN on Raspberry pi… Why VPN? One possible scenario for wanting your own VPN…

2
Read More

Building a Serial Gateway

Connect Arduino to Raspberry Pi There are few ways to connect Serial Gateway (Arduino) to Raspberry pi, the easiest one is to connect Serial Gateway (Arduino) via USB port to raspberry pi. This is be easiest way and saves hassle of all wiring on other hand we can use serial pins on raspberry pi to connect to Arduino which is little bit difficult but we are here to build everything our self so let’s build pcb board with all components…

0
Read More

Multi Zone Controller Relay – Sketch

Multi Zone Controller Relay: If your house have Multi Zone Heating then you can control each zone heating independently 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. MySensors Multi Zone Controller Relay – Sketch

0
Read More

Control Gas Boiler with Relay – Sketch

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 channel relay module, which has 2 relays.…

3
Read More

Raspberry Pi WiFi setup

I prefer to use WiFi on Raspberry Pi as it makes RPi portable and limits the numbers of cable attached to this small mighty computer lets do Raspberry Pi WiFi setup to have less cables attached to this might computer. Setup WiFi on Raspberry Pi Lets setup wifi on raspberry pi so we can go wireless, First you need to scan for wifi networks, use the command sudo iwlist scanning wlan0 scan to list all available wifi networks in your…

3
Read More

18650 Battery Powered Temperature Sensors

18650 battery powered temperature sensors would lots many years without to re-charge, for temperature sensors its best to use 3.3v Arduino Pro Mini with lower clock speed to conserve battery. To optimize further i have removed power LED, and status led connected to Arduino mini pin 13, then feed power to Arduino mini through raw pin with 18650 battery. i have these sensors running over 12 months now and battery is still 96%. Here is MySensors sketch i m using…

4
Read More

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. 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…

0
Read More
PiHome - Smart Heating Control