Archive for July, 2012

Setting up Wifi on Wheezy

| July 29th, 2012

Plug in your USB wifi adaptor and then type this command

$lsusb

You should see a output of the listings such as this

Bus 001 Device 005: ID 0ace:1215 ZyDAS ZD1211B 802.11g

Now check the reposotiry to see if there is a driver for this chipset

$apt-cache search zd1211

zd1211-firmware - Firmware images for the zd1211rw wireless driver

Install the driver

$sudo apt-get install zd1211-firmware

Now you can install a wireless tool

$sudo apt-get install wicd-curses

Once this has installed you can then run the configuration tool which, and connect to your wifi network.

$wicd-curses

And you will see a interface like the one shown below

From here you can setup your wifi network

I’ve now upgraded the Raspberry Pi to use Raspbian “wheezy” you can download the image and writing tool at http://www.raspberrypi.org/downloads it’s well worth upgrading as there have been a lot of tweaks and changes that will improve performance

Pi Case

| July 3rd, 2012

Just got my Pi Case in the post, really fast delivery, second case for my extra Raspberry Pi, this will be a media Pi, the other one with the breadboard slot will be for my GPIO projects.

Now to find the time to play about with it! 🙂

Raspberry Pi arrived

| July 2nd, 2012

My Raspberry Pi finally arrived, after every day I kept asking ‘Has it been delivered yet?’ and thankfully it has to much relief of my partner. Got it un-boxed and put into the case that I ordered from skpang.co.uk

The Debian “squeeze” image I created on my 32Gb mirco sd card worked, and it also had the correct resized partition. I resized the partition using gpart on my netbook with Ubuntu installed. As I found this was to be the easiest.

Raspbmc

I also had a 8Gb micro sd card that was in my mp3 player, and after about 5hours of installing (mainly copying the root file system or the slow server…) I managed to install Raspbmc. The interface seems nice and smooth, and only a bit of lag between menus. Have not managed to wait for a video to copy across yet, but tested out some music  via streaming it from my ubuntu server, but this was laggy and kept on buffering, so think wifi is the way to go here, at least then you will get about 54Mbps rather than the 10Mbps the wired Ethernet port gives you.

LEDS

After buying a breadboard from Maplins and some led’s and resisters from tandyonline I was able to play about with some GPIO stuff. I would say theMagPi magazine is very good for introduciton to the Raspberry Pi, also Gordon @ Dragon has a few projects and nice blog about the Raspberry Pi and has written a Arduino like program to controll the GPIO on the Raspberry Pi.

After compiling the wirePi library I was able to control the GPIO pins very easily, now thinking of a few projects to do.

RPi.GPIO Python

Also managed to get the RPi.GPIO Python installed and wrote a little script which controlled the led.

http://pypi.python.org/pypi/RPi.GPIO

To install, type the following on the command line.

$ wget http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.1.0.tar.gz
$ tar zxf RPi.GPIO-0.1.0.tar.gz
$ cd RPi.GPIO-0.1.0
$ sudo python setup.py install

OMXPlayer

Neat little command line player that allows you to use the Raspberry Pi’s GPU and CPU the way it should be.. This comes preinstalled on the Wheezy image. Or if like me you are using the squeesy image then you need to install it via these commands at the command line.

$ wget http://seyrsnys.myzen.co.uk/rpi/omxplayer_0.0.1-arm.deb
$ sudo dpkg -i omxplayer_0.0.1-arm.deb
$ sudo apt-get install -f

The web media player also seems quite good http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=7987&p=113346