Re-vamp in the works

The planned re-vamp of this site is still in the works. Open source code will be available on GitHub soon. In addition to this sections covering InfoSec, VR and Creative Computing will be included.

In other news Raspberry Pi Home Automation with Arduino is now available in Chinese under the title Raspberry Pi + Arduino.


A hiatus


The blog has been on a hiatus for the best part of a year. This has allowed me to concentrate on wrapping up my current degree and finish up my fourth Raspberry Pi book.

Internet Of Things @ Home will be re-launched this spring with a new look, new feel and a lot more articles.

Watch this space for more details.

Raspberry Pi Home Automation with Arduino 2nd Edition


I am happy to announce the 2nd edition of Raspberry Pi Home Automation with Arduino is now released.


2nd Edition cover


Raspberry Pi Home Automation with Arduino 2nd edition It’s available from all good bookstores and Amazon of course. After much editing and refinement here is a taster of what the book covers:

  • Arduino Uno
  • Raspberry Pi
  • Cooking Hacks Arduino to Pi bridge shield
  • Relays
  • Temperature sensors
  • Water sensors
  • Motor shields
  • Humidity sensors
  • Pressure sensors (FRS)
  • Networking
  • Python
  • C++ and Arduino sketches

Sadly we didn’t end up with space to cover the YUN this time round.

2nd edition of Raspberry Pi Home Automation with Arduino


I’m glad to announce that a second edition of Raspberry Pi Home Automation with Arduino is being planned for release next year.

There will be a major overhaul of some chapters. Based upon the excellent feedback I received you can expect to see:

1.) More home automation projects

2.) Inclusion of projects using the Arduino Uno shield

3.) A look at the Arduino YUN

4.) Revised content on the Raspberry Pi 

5.) An update to the code based upon Cooking Hacks latest ArduPi library 

Keep your eyes on this space for updates on progress!



A brief introduction to BreakfastSerial


In my post on Y-Hack I touched upon a Python based technology called BreakfastSerial. Some of you Arduino fans out there may already be familiar with it, but for those who are not I have provided  short guide below.

BreakfastSerial is a Python based library that allows you to write Python code that can be run on the Ardunio.

The technology

The library runs on top of a technology called Firmata.

Firmata is a generic protocol for communicating with Microcontrollers from software running on a host computer.

You can read more about the Arduino implementation of Firmata at the website:

BreakfastSerial works by allowing you to interact with Firmata loaded onto your Arduino by writing Python code.

You simply upload Firmata to your Arduino board, and then can start writing Python applications that use it.

We will look at an example next.

Setting up Firmata

In this post I will only be covering the steps for the older boards such as the Uno. There is a separate post in the works for the YUN. I will also be assuming you are using a Linux like environment (Ubuntu, Mac terminal window, Cygwin etc.)

To start with you will need to open up the Arduino IDE sketch pad, if you haven’t download it already you can find it at:

Note, that depending on your Arduino model (e.g. Uno versus YUN) there are different versions of the IDE.

Once you have the IDE installed, you can find the Firmata software under:

File -> Examples -> Firmata -> StandardFirmata

Next connect your board up to your computers USB port and upload the sketch.

Once uploaded you can then move onto the testing out BreakfastSerial.

Installing BreakfastSerial

Open a terminal window on your machine and using pip grab the latest version of BreakfastSerial from PyPi
pip install BreakfastSerial
I tend to work in a virtual environment when using Python. If you wish to do the same, you can create a virtual environment as follows
virtualenv --system-site-packages Ardunio
This will create a new directory called Arduino with a Python virtual environment in. From within this, you can activate it using

If you don’t have virtualenv on your machine you can grab it using pip:

pip install virtualenv

Next we can create a test project using Python. Before we do this though, take an LED and attach it to digital Pin 13 and Ground on your Arduino – yes you guessed it we are going to make the LED blink.

Once you have your hardware hooked up, create a new Python file called for example:


Inside this file we are going to add the following code:
from BreakfastSerial import Arduino, Led
Here we are importing Arduino and Led from the BreakfastSerial library.

Next let’s add the following code:
board = Arduino()
pin = 13
led = Led(board, pin)

This sets up a variable board with an instantiation of Arduino and a
pin variable set to 13 (where you attached your LED). Finally the
led variable is declared with a copy of Led(), which we pass board
and pin to as arguments.

Once you have added the above, we can include the final piece of code that creates the blinking action:
the above is pretty self explanatory. The led is switched on, we wait two seconds and then it is switch off.

Save the file and exit.

We can now test our application. From the command line run:


You should now see your LED blink.

And that’s all there is too it really.

There are a host of examples you can try located on the BreakfastSerial site:

have fun!


Robots for home automation – The Mint

The Mint

While visiting Best Buy one day we noticed they had a sale on in the vacuum cleaner area. It was here I spotted an Evolution Robotics Mint for sale (the box had been damaged).

Since the price had been reduced by a a decent amount (it is normally around $240.00 USD) we decided to purchase it and give it a try.

The Mint is a robotic floor sweeping and washing device that uses either Swiffer pads or Microfiber cleaning clothes. You hook the pad up to the front of the device, and using a North Star GPS system the robot will then navigate around your floor cleaning as it goes.

There are two cleaning options to choose from, either dry or wet (to mop the floor). These can be selected via button on the top of the device.

Mint floor sweeper

Mint floor sweeper

The robot has sensors built in as well so that when it reaches a ledge it knows there is a drop and pulls back.

The Mint comes with a rechargeable battery and wall wart so you simply plug it into the wall when finished so it is charged and ready for your next use.

You can see an example here including the device specs on Amazon:


So what do I think of it?

Unlike regular swiffering the device is pretty slow, however if you plan to just turn it on and leave it in a room while you do something else, this shouldn’t be a problem.

Obviously due to its shape it can have problems reaching certain areas, so you may need to still manually clean them. One nice benefit though is that it is small device so can fit under couches and tables far easier than a regular vacuum cleaner or mop. This saves having to move furniture around which is nice.

The battery life seems to be pretty good so far. It takes a rechargeable AA style battery pack so theoretically should be easy to replace if the batteries stop holding a charge.

An issue many people may find annoying is that it ‘bangs’ into things. So if it is attempting to clean under your dining room table, you can expect it to hit a lot of chair legs as it goes.

How would I rate it?

Useful! If you have an areas of the house where you can just put it down and leave it to go, it is a great benefit. The price tag though is a little steep compared to just using a regular Swiffer.

If you can get it on discount I would recommend it though.


Since purchasing the Mint it looks like iRobot have bought the brand out and now sell it under the iRobot Braava name:

iRobot already offer a number of other robotic home cleaning devices, including pool cleaners, gutter cleaners and vacuums.

Devices such as these are starting to show that there is a market for home automation with regards to cleaning. I believe this market will continue to grow and we should start to see some real innovation emerge over the coming years.