Set Up Raspberry Pi
Download Raspbian NOOBS to a micro SD card
Before powering on your Raspberry Pi, you must download an operating system (OS) and copy it to an SD Card — you do this with your Linux, MacOS, or Windows PC. This tutorial uses Raspbian NOOBS OS version 2.9.0.
- On your computer, download NOOBS_v2_9_0.zip, and unzip it locally.
- Open the unzipped NOOBS_v2_9_0 folder and drag the entire folder contents onto an empty 8/16/32 GB microSD card.
Connect hardware to your Raspberry Pi
Make sure you're not missing any required hardware — otherwise, you get stuck at some point. For example, the sample app doesn't run without a USB microphone plugged in.
- Insert your micro SD card into the card reader on the Pi. The SD card contacts should face up.
- Plug in a USB microphone.
- Plug in earbuds — or a speaker — into the 3.5 mm audio jack on the Pi.
- Connect a USB keyboard and mouse. Make sure you don't cover the USB mic.
- Connect a monitor using the HDMI port.
- Connect an Ethernet Cable — if your not using Wi-Fi.
- Plug the micro USB power supply into the Pi.
Your set up should look similar to the following images.
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 Raspbian that's available.
- Check the box next to Raspbian [RECOMMENDED].
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.
Click Install in the upper-left corner of the pop-up box.
The install process takes about 15 minutes to complete. After it's done, you see a success message.
- Click OK and the desktop loads — feel free to close the window when it asks you to change your password.
Configure OS settings
Configure the following OS settings before building the AVS Device SDK.
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 the globe icon in the top-left toolbar and navigate to a website.
A Raspberry Pi can output sound through two different channels, an HDMI port or a 3.5 mm 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.5 mm audio jack.
- Right-click the speaker graphic in the upper-right hand corner of your Pi.
- Select Analog.
You should also turn up the volume the microphone.
- Open Audio Device Settings.
- Select Change Sound Card.
- In the drop down select USB PNP (ASLA mixer).
- Select Controls.
- Click the microphone and change the volume to max.
You can change your keyboard settings.
- Click the Raspberry icon in the top right of your desktop.
- Select Mouse and Keyboard settings from the Preferences menu.
- Click Keyboard Layout from the Keyboard tab.
- Select the appropriate configuration. Make sure whatever you pick, you can write characters such as "quotes" and @ symbols.
Update your Raspberry Pi packages list
Now that you connected to a network, you must verify that your OS uses the latest packages — otherwise, SDK might not run properly.
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
/home/pi. If you choose to use different folder names, update the commands throughout this guide accordingly.
Next, register an AVS product and create a security profile for your device.