Getting Robogaia Raspberry Pi Temperature Controller to work

I recently got a Robogaia Raspberry Pi Temperature Controller and tried to fire it up.  Their website has the configuration steps as well as sample code.

However, after running through the install steps and attempting to run the samples, I received the following error:

Traceback (most recent call last):
File "", line 9, in
bus = smbus.SMBus(0)
IOError: [Errno 2] No such file or directory

Thankfully, the answer was found on the raspberry pi forums, though about a different device. you simply need to enable i2c via raspi-config -> Advanced

After a reboot, it works great!

Thanks to the Robogaia guys for saving me some work with their handy plate!

Setting up Bose Companion Speakers on Ubuntu 14.04

I love my Bose Companion 5 speakers, but had a bit of trouble getting them to work on a Toshiba Portege I recently rebuilt with Ubuntu.  Here are the steps to get it working:

  1. Plug the speakers into a USB port
  2. Reboot
  3. Go to sound settings, the speakers should now appear.  Select them.
  4. Open terminal and run sudo gedit /etc/modprobe.d/alsa-base.conf
    1. Change last line that reads: options snd-usb-audio index=-2 to options snd-usb-audio index=-1
  5. In terminal run alsamixer
    1. Select the Bose sound card (F6)
    2. Use the arrow keys to increase the volume
  6. Fire up Pandora and rock out!