Is your home energy efficient? Bluemix can figure it out.

Share this post:

pubnublogo2014_hero-e1470329965179 There are quite a few things we take for granted in our day-to-day lives. Public utilities are one such example. We assume that the electricity and water supply will be at our disposal 24/7. This leads to wastage, and excessive wastage and malpractice lead to further deterioration of the environment.

Thanks to the awareness around climate change and the advancements in renewable energy sources, we are in a better position to safeguard our future generations by ensuring a sustainable supply of energy for our day-to-day needs. Still, a lot needs to be done toward achieving self-sustained living and this is where technology can help us.

Below, I present yet another amalgamation of things that can be managed using that game-changer, the “Internet of Things.” In this case, it’s a project for tracking public utilities using IoT, specifically the electricity supply system.


Smart energy grids are already in place, and we see a boom in this space with innovative business models like energy credits which can immensely benefit the consumers. But for a homeowner, this comes with the added complexity of having to install more components. For starters, there needs to be a renewable source of energy—either a solar panel or a wind turbine—along with an energy storage system. We also need a net metering system, which is a special kind of electricity meter that tracks both the energy consumption as well as the generation from a household, and rolls back the meter in case of excess generation given back to the grid.

A lot of data gets generated by these systems, and this is where IoT can help in harnessing it for our best interests. If we accumulate this per household data and combine with a smart grid, then there is potential to offer insights at the town or city level, which can help in framing benevolent policies for energy security.



Project Overview

For this project, we have tried to replicate the electricity distribution of a household by using a solar panel, a few appliances, and a battery, which acts as the electricity supply from the grid. A web-based dashboard tracks the whole system via IBM Bluemix hosted portal.

Below is a block diagram for this replicated setup for a single household.



There are two loads, “LOAD 1” and “LOAD 2,” representing a light point and a fan point in the house. Also, there are three sensors, labeled as “CURRENT SENSOR 1,” “CURRENT SENSOR 2” and “CURRENT SENSOR 3.” These are current sensors used for sensing the magnitude of current through the various paths of household electricity distribution.

  • CURRENT SENSOR 1 measures the excess energy given back from the solar panel to the grid in case of underutilization.
  • CURRENT SENSOR 2 measures the total energy consumed from the solar panels
  • CURRENT SENSOR 3 measures the total energy consumed from the grid.

The data captured in these sensors is in the form of Amperes, which is the unit for measuring electric current passing through the wire. The sensor readings are accumulated in a controller (Arduino YUN) and sent to the Bluemix cloud where they can be analyzed via a dashboard.

Note: For the sake of simplicity, this setup is based on the Direct Current (DC) system, as opposed to the Alternating Current (AC) system deployed all over the world for commercial electricity distribution.

Measurement Parameters

Using the current sensors, we can sense a few meaningful parameters such as

  • Power Consumption/Generation: Amount of current consumed by the household and generated by the renewable sources in the household. This is also known as the Watts (or Wattage).
  • Energy Consumption/Generation: Amount of energy consumed or generated by the household. This is a function of power consumption over a period of time. The standard unit of measuring this is KiloWatt/Hour (kWh). By measuring the kWh of consumption vis-a-vis generation, we can find how energy efficient the household truly is.

Data Push and Cloud Storage

All the sensors are connected to Arduino YUN controller, which also acts as an energy monitor. It takes a sample of the sensor readings at periodic intervals and then pushes them to the cloud. To do this reliably, we have used PubNub. PubNub provides a data streaming service for sending data across the internet in real-time, with the utmost reliability and security.

Data storage on the cloud is facilitated by the IBM DashDB data warehousing technology.


Both PubNub and DashDB are available as services within the IBM Bluemix catalog of services.

What’s next

In part two of this post, we will show you how to build this prototype system with the help of a few inexpensive components to deploy it on the Bluemix cloud, and most importantly, what insights can we derive from the captured data.

See you soon!

Add Comment
One Comment

Leave a Reply

Your email address will not be published.Required fields are marked *

Narayana Rao SVN

A very good concept. Yes we need a system where based on one’s electricity budget for a month it should intelligently decide the possible consumption map for all appliances in a house. If any particular load is taking more than what is budgeted then there must be an action to be triggered. But the question is measuring consumption at each load mean we need a sensor connected to each load (like a smart socket which can measure consumption and also can switch off power to a load if required). How innovatively we can address this design without requiring any changes to existing wiring system in a house will be an interesting solution. If we have such solution it might be useful to many people in India.

More Internet of Things Stories

Keeping up-to-date with Kubernetes

Kubernetes development and adoption continues to grow at a rapid pace, and keeping current can be difficult without the right process and tools. For example, IBM Cloud Container Service launched with support for Kubernetes v1.5.6 earlier this year. Since that initial launch, the Kubernetes community provided 3 minor releases (v1.6, v1.7, and v1.8) and over 25 patch releases. By year's end there's likely to be another minor release and numerous patches. So with all this change, what's the best way to keep your cluster and apps up-to-date and secure?

Continue reading

Home automation powered by Cloud Functions, Raspberry Pi, Twilio and Watson

Over the past few years, we’ve seen a significant rise in popularity for intelligent personal assistants, such as Apple’s Siri, Amazon Alexa, and Google Assistant. Though they initially appeared to be little more than a novelty, they’ve evolved to become rather useful as a convenient interface to interact with service APIs and IoT connected devices.

Continue reading

Interpreting Spring Social Twitter Data with Watson Tone Analyzer

In this post, I'll show you how to build a basic Spring app with Twitter login using Spring Social. Then we'll use Watson Tone Analyzer to determine the dominant emotion from each of the tweets on the time of the logged-in user. The project we will create will be similar to the Accessing Twitter Data Spring guide, but with a few modifications.

Continue reading