Pandora's Box - An Internet Radio player made with a Raspberry Pi!

FeaturedContest WinnerContest Winner

Step 2: Setting up the Pi

Picture of Setting up the Pi
After getting Raspbian Wheezy up and running on the Pi, the OS will need to be configured. Four changes need to be made.

1) In LXTerminal, run the following:

sudo raspi-config  

The SD partition should be expanded to fit the entire SD card, and the boot_behavior option should be set to boot to the desktop on startup. Also, enabling the SSH server will let us work on the Pi on a separate computer, without a keyboard and mouse plugged into the Pi.

2) Next, follow the instructions here to stop the OS from writing to the UART, which we will use to drive the LCD:

3) Adding Serial Communication to Python:
The OS comes with Python installed. We need to add the serial module in order to drive our LCD module. Run the following in LXTerminal:

sudo apt-get install python-serial

Documentation for the Pyserial module can be found at:

4) Enhancing BASH's GPIO Capabilities:
Now, in order to access the GPIO pins in a more user-friendly manner, we will install the wiringPi library. Instructions are available here:

However, to simplify these instructions, we only need to run:

sudo apt-get install git-core
git clone git://
cd wiringPi
git pull origin

Now simply wait for the build to finish, and the operating system is ready to install Pianobar, an open-source program running Pandora Radio.

Important warning: All of the work in this Instructable assumes you are working as the "pi" user. If not, the file locations used later on will need to be altered. Either work as the "pi" user, or be prepared to alter some scripts later.

Remove these adsRemove these ads by Signing Up

could you connect this to iheartradio or spotify?