Raspberry Pi 3 Starter Kit for Android Things
Raspberry Pi 3 Android Things 新手套件
Follow these instructions to set up your Raspberry Pi 3 Starter Kit
根据以下指南设置您的 Raspberry Pi 3 Starter Kit
What’s in the box
开箱指南
Open the box and make sure you have all of the components in the kit.
打开包装盒确认所有配件齐全
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Connect the parts
拼装指南
Connect the parts in the following order.
按以下顺序拼装所有配件
Protective case
保护壳
The case encloses the Raspberry Pi and protects it.
此保护壳可以包装和保护整个 Raspberry Pi
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Rainbow HAT
Rainbow HAT
Connect the Rainbow HAT to the Raspberry Pi.
将 Rainbow HAT 连接到 Raspberry Pi 上
![]() |
![]() |
Power adapter
电源接头
The power adapter may not have the right outlet adapter for your location. Do the following to change the outlet adapter (if needed)
电源接头可能与您所在的地区不匹配。按照以下指南来更换接头。(如果有需要)
![]() |
![]() |
![]() |
![]() |
Final result
最终成果
Your kit is now assembled. You will insert the micro SD card and connect the power cable in the installation instructions below.
您的套件现在就拼装完了。您可以按照下面的安装指南插入 micro SD 卡和连接电源
Install Android Things
安装 Android Things
Follow the hardware setup instructions
to flash the latest version of Android Things on your Raspberry Pi development board.
按照硬件设置 指南
在您的 Raspberry Pi 开发板上来烧录最新版的 Android Things
Blink an LED
闪烁 LED
Follow these instructions to download and run a sample
that blinks one of the HAT’s LEDs.
按照以下指南来下载和运行一个可以闪烁 HAT 的 LED 的 示范程序
Download and unzip the sample-button
project to the directory of your choice.
下载并解压 sample-button 程序到您指定的文件地址
Run the project using either of the following: 用以下两种方法任选其一来运行程序
In Android Studio, select File > Open and select the directory where you unzipped the sample. Select Run > Run ‘app’.
在 Android Studio 里,选择 文件 > 打开 然后选择解压缩文件的文件地址。选择 运行 > 运行 ‘app’
From the command line:
cd sample-button-master./gradlew assembleDebugadb install -g -r app/build/outputs/apk/app-debug.apkadb shell am start com.example.androidthings.button/.ButtonActivity
通过命令行:
cd sample-button-master./gradlew assembleDebugadb install -g -r app/build/outputs/apk/app-debug.apkadb shell am start com.example.androidthings.button/.ButtonActivity
Press the “A” button on the Rainbow HAT and the red LED will light up.
按下 Rainbow HAT 上的 A 键来点亮红色的 LED
Next steps
下一步
- Try one of the other code samples
尝试 其他的示范程序
Remember to uninstall any existing samples from the development board before installing a new one, so that one does not interfere with the other. For example, to uninstall the previous sample from the command line:
adb uninstall com.example.androidthings.button
注意为了程序之间不互相干扰,请先卸载开发板上已有的程序,再安装新程序。比如您可以通过这段命令行来卸载之前的程序:
adb uninstall com.example.androidthings.button
Take a look at the Peripherals codelab or learn how to build your first device
Connect with the community at g.co/iotdev
加入官方讨论社区 g.co/iotdev
Feedback
用户反馈
You can report bugs
您可以 汇报 bugs
也可以 推荐新功能
with the Android Things issue tracker.
使用 Android Things 问题跟踪系统