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.
- With your PC, download NOOBS_v2_9_0.zip, and unzip it locally.
- Open the unzipped NOOBS_v2_9_0 folder and drag and drop the entire folder contents onto an empty 8/16/32gb microSD card.
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.
- 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.5mm 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 setup 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 Rasbian that is avaialble.
- 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.
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.
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 on 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.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.
- Right-click on the speaker graphic in the upper-right hand corner of your Pi.
- Select Analog.
You should also turn up the volume the microphone.
- Go to Audio Device Settings.
- Select Change Sound Card.
- Select the drop down and select USB PNP (Asla mixer).
- Select Controls.
- Click the microphone and change the volume to max.
You can change your keyboard settings.
- Click on 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 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
/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.