Introduction: HomeBot

HomeBot is a project that make your home smart using Intel Edison. Our goals are:

- automate many devices, like lights, shades and appliances

- checking power consumptions and water consumpions

- monitor the indoor air quality

- measuring the outdoor weather parameters and air pollution

HomeBot can be remotely controlled using Telegram, to send commands and retrieve informations, and also from a web interface that allows you to have an overall view of your Smart Home.

Step 1: Functions

There are 4 key functions in this home automation system:

  • Indoor air quality:

In recent years it has been recognized that the indoor air quality is much more important than outdoor air pollution. The explanation is very simple: people spend much more time at home or in the office, rather than in the open air.

  • Climate analysis:

An external module is useful for monitoring the climate and air pollution. The goals are twofold: to monitor from home or from outside the current weather conditions and at the same time send information to the cloud, for a shared weather service.

  • Home automation:

Check all the electronic devices that we have at home (lights, shades, appliances...) can be used to control them remotely, or sitting comfortably on the sofa. At the same time it is possible to check in real time the electrical and flowing water consumption.

These informations can be shared anonymously on the cloud to build some interesting statistics.

  • Security:

Safety is one of the most important factors. The wifi security modules, connected to the network modules, send instant notifications in case of unwanted intrusions in the house.

Step 2: Modules

We have developed 3 modules, using the Intel Edison boards.

The first is the central module, indoor. This includes the following sensors:

  • Temperature
  • Light
  • Air quality (harmful gases, as carbon monoxide, alcohol, acetone, thinner, formaldehyde and so on)
  • MQ2 (H2, LPG, CH4, CO, Alcohol, Smoke or Propane)
  • Air dust

The second one is the outdoor module, the weather station. Is composed by:

  • GPS (for geolocalize the weather informations)
  • Temperature and Relative Humidity
  • Light
  • Air quality (harmful gases, as carbon monoxide, alcohol, acetone, thinner, formaldehyde and so on)

  • Air dust
  • MQ2 *(H2, LPG, CH4, CO, Alcohol, Smoke or Propane)
  • MQ5 (LPG, natural gas , town gas)
  • Rain sensor
  • UV index

The third module is an example of automation and security module. There is:

  • Relay (for turn on/off a device, such a lamp)
  • Current sensor (for measure the power consumption)
  • Water flow sensor (for measure the home water consumption)
  • Accelerometer (for sensing door or window opening or breaking attempt
  • PIR (for sensing human presence in the room)

Obviously all of the functions shown in this last module can be separated and replicated in more modules, located in the house.
Little modules, could also be done by using a simple microcontroller with wifi module, instead of many Edison boards.

Step 3: Programming...

Intel Edison modules with NodeJS instance and MQTT protocol based library to communicate with our backend.

The backend is hosted on Microsoft Azure and uses NodeJS and MongoDB to store all sensors informations. For the UI we have used Freeboard.io service.

References:

https://software.intel.com/intel-xdk

https://azure.microsoft.com

http://mqtt.org/

https://nodejs.org/en/

https://www.mongodb.org/

https://core.telegram.org/bots/api