You are on page 1of 6
Raspberry Pi 3 Raspberry Pi 3 Model B isthe latest iteration of the world’s most popular single board computer. provides a quad-core 64-bit ARM Cortex-ASS CPU running at 1.2GHz, four USB 2.0 ports, wired and wireless networking, HDMI and composite video output, and a 40-pin GPIO connector for physical interfacing projects. See Raspberry Pi VO (https/ developer android.convthings/hardware/raspberryptio.htmi) for more details on the Peripheral VO (hitps/developer android comythings/sck/pio/index html) signals on this board. Flashing the image Before you begin flashing, you will need the following items in addition to your Raspberry Pi: + Micro-USB cable + Ethemet cable + MicroSD card reader * 8 GB or larger microSD card Optional items: + HOMIcable + HDMLenabled display Step 1: Flash Android Things Follow these steps to flash the Android Things image onto the microSD card 1. Download the Android Things Setup Utility from the Android Things Console (hetpsi/partner android.com/things/console/#/tool). You will need to sign in to your Google account and accept the licensing agreement and terms of service. 2. Unzip the downloaded archive 3, Start the setup utility. “fe Note: You must runthe setup utity as an administrator. + On Windows, right-lick on the executable file and select Run as administrator. + On Mac or Linux, start the utility from the terminal. For example: $ sudo ~/Downloads/android-things-setup-utility/android-things-setup-utili 4, Select the option to install Android Things and optionally set up Wii a, Select Raspberry Pi 3 as the hardware board, b. Choose either a generic image or your own custom image of Android Things for flashing the board, “He Note: A generic image is a quick way to get started using Android Things, specifically for early prototyping. You willnot have access to other Console features, such as metres, crash reports, and overthe alr (OTA) updates. Acustom image's for developers in theater stages of development beyond early prototyping Itean be downloaded from the Android Things Console (https:/develope” andl. com/things/console/index htm) after ereating a product. ¢. Follow the rest of the utility prompts to write the image. When the utility has finished writing the image, eject the external drive and remove the microSD card, 5, Insert the mictoSD card into the microSO slot on the underside of the Raspberry Pi, If you don't want to use the setup utility, you can: + Download an image from the Android Things Console (htipsi/develope: android. com/things/console/index.html) and write itto the microSD card: + Linux (hips:mwwraspberryp.org/decumentation/installation/instaling images/Inux md) ‘+ Mac (htipsiywww.raspberrypiorg/documentatior/installaton/in ingmages/mac md) ‘+ Windows (ntps:iwwwraspberryp.org/documentation/installation/instaling-images/windows.md) Step 2: Connect the hardware Make the following connections to your board: 1. Connect a USB cable to J1 for power. 2. Connect an Ethemet cable to your local network. “fe Not: fyou donot have wed acess to yourlocalnetwork you can do ether af the folowing + Connect the Ethernet cable to your development computer and assign the Raspberry Pi an IP address using DHCP. + Connect a serial cable (#serial debug console) from the Raspberry Pi to your development computer. Use a serial console to connect to Wi (connecting we) 3, (Optional) Connect an HDMI cable to an external display. 4, Verify that Android is running on the device, To do this, you need to find the IP address of the device: ‘+ Ifyou connected a display, the Android Things Launcher will use itto show information about the board, including the IP address. + Ifyou assigned an IP address to the device using DHCP, find this address in the network settings of your router of development computer. 5. Connect to the IP address using the adb tool (ttps:/developer androié.com/tools/help/ad htm) § add connect connected to :5555 “He Note: Raspberry Pi broadcast the hostname Andros! 2081 over Mulleast ONS. Iyour host platform supprts MONS, you can also cnneet othe boarding the folowing command: $ adb connect Android. local Connect Wi-Fi After lashing your board, itis strongly recommended to connect it tothe internet. This allows your device to deliver crash reports and receive updates. Note: The device doesst need tobe onthe samenetwork as your computer To connect to Wii, do one of the following + Run the setup ullliy (#fash-at) and select the WiFi setup option, + Connect a display and configure WHFI though the launcher app. + Connect to WEF with adb (nttos:/developer android comythings/ardware/wif-acb. tr), Serial debug console The serial console is @ helpful tool for debugging your board and reviewing system log information. The console is the default output location for kerel log messages (Le. énesg), and it also provides access to a full shell prompt that you can use to access commands such as logcal (hitps/developer android comy/tools/hely/lageat htm). This is helpful if you are unable to access ADB on your board through other means and have not yet enabled a network connection, To access the serial console, connect a USB to TTL Serial Cable (httpsi/wwww.adafruit com/products/954) to the device UART pins as shown below. fritzing Open a connection to the USB serial device on your development computer using a terminal program, such as PUTTY (ntipitwmw.puttyorg/) (Windows) Serial (hitpsu/uww.decisvetactics.com/products/seral) (Mac OS), or Minicom (https/fen.wikipedia.org/wiki Minicom) (Linux). The serial port parameters for the console are as follows: + Baud Rate: 115200 + Data Bits: 8 * Parity: None + Stop Bits: 1 Pin multiplexing The Raspberry Pi has pins that are multiplexed between various board functions, Some board functions cannot be used simultaneously (For example, enabling Bluetooth and using the UART@ port for peripheral /0). For more information, see the function mode matrix (httpsi/developer android. com/things/hardware/raspberryptmade-matrichtm), Except as otherwise noted the content of tis pagel censed under the Ceatve Commons Attbution 20 License (htps:/erestivecommons.org/licenses/by/3.0/), and code samples are iensed under the Apache 2.01 scence (htipsiwww.apache,orgilcenses/lICENSE-2.0), For details, see ou Site Paes (hitpsiidevelopers.google.convterms/sitepoicies) Java i registered rademark of Oracle anders affitates Last pated Moy 24 2078 wv @ a Twitter Sooglet YouTube Follow @AndroldDev on Follow Android Developerson Check aut Android Developers wi Googler ‘on YouTube

You might also like