Raspberry Pi 3 Model B is the latest iteration of the world's most popular single board computer. It provides a quad-core 64-bit ARM Cortex-A53 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.
Flashing the image
Before you begin flashing, you will need the following items in addition to your Raspberry Pi:
- HDMI cable
- HDMI-enabled display
- Micro-USB cable
- Ethernet cable
- SD card reader
To flash Android Things onto your Raspberry Pi, download the latest preview image and follow these steps:
- Insert an 8 GB or larger SD card into your development computer.
Unzip the downloaded image archive on your development computer. Navigate to the unzipped image file.
Follow the official Raspberry Pi instructions for writing the image to the SD card:
Insert the flashed SD card into your board.
Make the following connections to your board:
- Connect a USB cable to J1 for power.
Connect an Ethernet cable to your local network.
Connect an HDMI cable to an external display.
Verify that Android is running on the device. The Android Things Launcher shows information about the board on the display, including the IP address.
Connect to this IP address using the adb tool:
$ adb connect <ip-address> connected to <ip-address>:5555
After flashing your board, it is strongly recommended to connect it to the internet. This allows your device to deliver crash reports and receive updates.
To connect your board to Wi-Fi using
Send an intent to the Wi-Fi service that includes the SSID and passcode of your local network:
$ adb shell am startservice \ -n com.google.wifisetup/.WifiSetupService \ -a WifiSetupService.Connect \ -e ssid <Network_SSID> \ -e passphrase <Network_Passcode>
Verify that the connection was successful through
$ adb logcat -d | grep Wifi ... V WifiWatcher: Network state changed to CONNECTED V WifiWatcher: SSID changed: ... I WifiConfigurator: Successfully connected to ...
Test that you can access a remote IP address:
$ adb shell ping 220.127.116.11 PING 18.104.22.168 (22.214.171.124) 56(84) bytes of data. 64 bytes from 126.96.36.199: icmp_seq=1 ttl=57 time=6.67 ms 64 bytes from 188.8.131.52: icmp_seq=2 ttl=57 time=55.5 ms 64 bytes from 184.108.40.206: icmp_seq=3 ttl=57 time=23.0 ms 64 bytes from 220.127.116.11: icmp_seq=4 ttl=57 time=245 ms