Note: If you already have a BeagleBone Black, the instructions below will help you get Hobson running on it. However, if you are planning to buy one, consider the Raspberry Pi 3 as a better alternative for running Hobson as it has a number of advantages including built-in Wi-Fi, more USB ports and simpler software installation.

 

One of Hobson's goals is to maintain a small enough footprint to run on resource-limited devices. For those that don't want to incur the cost of running full PC or Mac all the time, the Beaglebone Black (BBB) shown above is an alternative.

There are some nice advantages to the BBB:

However, it does have some drawbacks:

Even with its drawbacks, BBB is a compelling platform for home automation and Hobson runs well on it.

Hardware

  1. A Beaglebone Black revision C (note that other revisions may work but this is the one that has been tested). As of this writing, Microcenter is selling them for $39.95.
  2. A 5v DC 2A power supply like this one. Although you can technically power the BBB via its mini USB port, the recommended approach is to use the 5v barrel connector.
  3. An 8 GB micro SD card like this one.
  4. An enclosure to keep the BBB safe. There are a lot of options here but I've been very happy with this all metal one from Logic Supply.

So, depending on what and where you buy, there's no reason you can't assemble a fully capable Hobson hardware hub for between $60 and $70.

Software

Jessie for BeagleBone

The recommended distribution for BeagleBone Black devices is Debian (Jessie as of this writing):

http://beagleboard.org/latest-images

There are five main steps necessary to get Hobson running on BBB using Debian:

1. Download the latest Debian image and flash it to an SD card

See the Getting Started section on beagleboard.org for details. Here are a couple of helpful hints:

2. Boot the BBB

Insert your newly flashed SD card into BBB and power it up. Make sure BBB is connected to the same network as your PC.

Note: It is highly recommended that you verify that the date and time are set correctly on the BBB. See the Hints & Troubleshooting section below.

3. Resize the SD card

The BBB's operating system image is sized by default to be small enough to fit in its internal flash (eMMC). If your SD card is larger than 3GB or so, you'll need to do some work to make full use of the card's space. There are a lot of web pages out there (this one for example) explaining how to do this, but none of them seem to be up to date (they keep talking about a partition 2 which doesn't seem to exist).

The primary goal here is to delete the main partition on the SD card and create a new one of the appropriate size. The counterintuitive part (at least for me) was that this does not delete the data on the partition. Once you re-create the partition with fdisk, you reboot the BBB and use the resize2fs command to actually perform the resizing.

Here are the sequence of commands I used to perform this step on Debian Jessie:

  1. sudo fdisk /dev/mmcblk0
  2. d
  3. n
  4. p
  5. 1
  6. press ENTER key to take the default recommendation
  7. press ENTER key to take the default recommendation
  8. w
  9. sudo reboot

Once the system has rebooted, you can resize the partition via the following command:

sudo resize2fs /dev/mmcblk0p1

Then reboot the system again and you should be done.

4. Install Java

Unfortunately, the BeagleBone Debian distribution does not include Java. You will need to install it using the following command:

sudo apt-get update && sudo apt-get install oracle-java8-installer

This step will take a little while and requires accepting some Oracle license agreements.

5. Download & Install Hobson DEB

You can get a link to the latest Hobson DEB package on the downloads page. The filename will be in the form of "hobson-hub-x.x.x.deb" (where x.x.x is the version number).

Download the package using the following command (make sure you replace the URL with the latest one from the downloads page):

wget -O hobson.deb https://bintray.com/whizzosoftware/maven/download_file?file_path=com%2Fwhizzosoftware%2Fhobson%2Fhobson-hub-deb%2F0.9.0%2Fhobson-hub-deb-0.9.0.deb

Then, install the package by running the following command:

sudo dpkg -i ./hobson.deb

You can then start the Hobson service by running:

sudo systemctl start hobson.service

Using Hobson

You can get started using Hobson by using a web browser to connect to the following URL:

http://BEAGLEBONE_IP_ADDRESS:8182/setup/index.html

(make sure to replace BEAGLEBONE_IP_ADDRESS with the IP address assigned to the BBB)