Friday, 11 March 2016

Running the RPi Wobbulator under Raspbian Jessie

It has been a while since my last post, and the world has moved on in the meantime....

Raspbian "Wheezy" has been superceeded by "Jessie", which has extra bells and whistles and is, in many ways, easier to setup. Also, the Raspberry Pi Wobbulator has evolved thanks to the efforts of Gray Remlin, who has rewritten and developed the code. In this post I'm going to assume you are starting off with a fresh Raspian Jessie image and I'm going to go through what you need to do to run the latest vesrion of the Raspberry Pi Wobbulator software.

When Jessie first boots up, it will boot straight to the GUI, and you should see something very similar to the following screenshot.


The first thing to do is to expand the file system on your newly created SD card. This can be done by clicking on Menu -> Preferences -> Raspberry Pi Configuration as shown in the following screenshot.



The Raspberry Pi Configuration window will open up. Click on "Expand Filesystem"



After a short delay, you'll see the following message. Click on "OK"



Click "OK" again on the Raspberry Pi Configuration window and you will see the following message. Click "Yes" to reboot your Pi.


Wait for your Pi to reboot...

Now, if (like me) you are used to having the task bar (or menu bar) at the bottom of the screen, this can be done by clicking on Menu -> Preferences -> Appearance Settings as shown below


When the Appearance Settings window appears, click on the "Position" attribute and change it from "Top" to "Bottom"



This will give you a more conventional screen layout



Now you need to enable the I2C bus. Click on Menu -> Preferences -> Raspberry Pi Configuration as shown below


When the Raspberry Pi Configuration window appears, click on the "Interfaces" tab and enable the I2C bus by clicking "Enabled"


When you click on "OK" you will be asked if you want to reboot now.  Click "Yes" to reboot your Pi.


Wait for your Pi to reboot...

Open a terminal window by clicking on the "Terminal" icon on the task bar.



Now you need to install the “i2c-tools” package. Type the following at the command prompt and press Enter:

pi@raspberrypi ~ $ sudo apt-get install i2c-tools_

Go and make a cup of tea or coffee.....this will take a few minutes to complete.

When you get back to the command line,  install the “python3-smbus” package by typing the following at the command prompt and pressing Enter:

pi@raspberrypi ~ $ sudo apt-get install python3-smbus_

Now you're ready to download the RPi Wobbulator software from GitHub. Type the following at the command prompt and press Enter:

pi@raspberrypi ~ $ git clone https://github.com/mi0iou/RPi_Wobbulator.git_

When this has finished, close the Terminal window and launch IDLE by clicking on on Menu -> Programming -> Python 3 (IDLE) as shown below


When the "Python 3.4.2 Shell" window appears, click on File -> Open as shown below


...and when the "Open" dialogue appears, double click on the "RPi_Wobbulator" folder...


...and then click on the file "rpi_wobulator.py" and click "Open"


This will load the program and display the code in a separate window. To run the software, click on Run -> Run Module at the top of the code window


This will launch the main RPi Wobbulator window


The following screenshot shows the Wobbulator being used to examine the characteristics of a 30m Low Pass Filter built from a kit supplied by Language Spy.


Full details of the LPF kit from Language Spy are available here, and they supply a range of Raspberry Pi related kits in their shop, which is well worth a visit.