Set Up Raspberry Pi

Download Raspbian NOOB to a Micro SD Card

Before powering on your Raspberry Pi, you must download an operating system (OS) — using your Linux, MacOS or Windows PC — and copy it to an SD Card. For this tutorial, we're using Raspbian NOOBS OS version 2.9.0.

  1. With your PC, download NOOBS_v2_9_0.zip, and unzip it locally.
  2. Open the unzipped NOOBS_v2_9_0 folder and drag and drop the entire folder contents onto an empty 8/16/32gb microSD card.
DragAndDrop

Connect Hardware to your Raspberry Pi

Make sure you're not missing any required hardware — otherwise, you'll get stuck at some point. For example, the sample app doesn't run without a USB microphone plugged in.

  1. Insert your micro SD card into the card reader on the Pi. The SD card contacts should face up.
  2. Plug in a USB microphone.
  3. Plug in earbuds — or a speaker — into the 3.5mm audio jack on the Pi.
  4. Connect a USB keyboard and mouse. Make sure you don't cover the USB mic.
  5. Connect a monitor using the HDMI port.
  6. Connect an Ethernet Cable — if your not using Wi-Fi.
  7. Plug the micro USB power supply into the Pi.

Your setup should look similar to the following images.

Setup
FullSetup

Power on your Raspberry Pi

Connect the Pi to a power source. A loading screen automatically launches and walks you through some steps before booting to desktop. If you run into any errors, try booting from a different pre-imaged micro SD card. If nothing happens after that, make sure that your micro SD card is facing the correct direction with the contacts facing up.

Install the Raspbian OS

Upon successful startup, you're prompted to select an operating system and locale. NOOB always retrieves the latest version of Rasbian that is avaialble.

  1. Check the box next to Raspbian [RECOMMENDED].
  2. Select your language and keyboard preferences at the bottom of the screen.
    • Make sure you select the correct locale/keyboard layout for your region, otherwise you might have problems with pre-existing passwords that contain special characters. Some keyboard layouts don't support special characters. To test your layout, enter a special character and confirm that it appears on the screen, before proceeding to the next step.
  3. Click Install in the upper left corner of the pop-up box.

It should take around 15 minutes to fully install. After it's done, you'll see a success message. Click OK and the desktop loads — feel free to close the window when it asks you to change your password or do any other setup steps.

noobsInstall

Configure OS Settings

Configure the following OS settings before building the AVS Device SDK.

PiDesktop

Network

Connect your Pi to a network. You can choose either option.

  • Ethernet: Plug an ethernet cable into the Pi. The OS automatically connects to your network.
  • 2.4 GHz Wi-Fi: Click the connectivity icon in the top-right corner of the toolbar, select an SSID, and enter your credentials.

Verify that you're connected to a network by opening a web browser — click on the globe icon in the top-left toolbar and navigate to a website.

Audio

A Raspberry Pi can output sound through two different channels, an HDMI port or a 3.5mm audio jack. HDMI is the default selection when you install a fresh OS. To output sound to your speaker, change the output channel on your Pi to 3.5mm audio jack.

  1. Right-click on the speaker graphic in the upper-right hand corner of your Pi.
  2. Select Analog.

You should also turn up the volume the microphone.

  1. Go to Audio Device Settings.
  2. Select Change Sound Card.
  3. Select the drop down and select USB PNP (Asla mixer).
  4. Select Controls.
  5. Click the microphone and change the volume to max.

Keyboard

You can change your keyboard settings.

  1. Click on the Raspberry icon in the top right of your desktop.
  2. Select Mouse and Keyboard settings from the Preferences menu.
  3. Click Keyboard Layout from the Keyboard tab.
  4. Select the appropriate configuration. Make sure whatever you pick, you can write characters such as "quotes" and @ symbols.

Update Pi Packages List

Now that you're connected to a network, check if your Pi needs updating — the SDK might not run properly with outdated packages.

Open a terminal by clicking on the black window logo near the top left corner of your toolbar. You should be in the /home/pi directory. Enter the following command.

cd /home/pi/
sudo apt-get upgrade

Next, register an AVS product and create a security profile for your device.