本教程中,以Pico Pro Maker Kit(不包含彩虹帽Rainbow HAT)为例介绍。
Pico Pro Maker Kit

所含套件

  • ① Pico i.MX7 双核开发板
  • ④ USB-C线
  • ⑤ Wifi天线
  • ⑥ 天线延长线
  • ⑦ 摄像头
  • ⑧ 摄像头视频线
  • ⑨ 5寸多点触控显示屏
  • ⑩ 显示屏6线电缆

components

注: 我的不包含彩虹帽想关部件。

连接部件

Wifi天线

  1. 连接Wifi天线和天线延长线
    connect wifi antenna

  2. 将延长线另一端的小圆帽扣到图中制定位置上。
    fixed antenna cable to board

摄像头

  1. 手握主板,旋转右侧中间黑色固定边框,边框旋转起来后,右手将将视频线一端插入里面,最后将黑色边框再旋转下来,压紧视频线。
    Camera connect 1

  2. 左手握视频线另一端,右手握蛇形头模块,并旋转起黑色边框,将视频线另一端插入,同样最后将黑色边框再旋转下来,压紧视频线。
    Camera connect 2

多点触控屏

  1. 将主板背面朝上,并将黑色边框旋转起来。
    Display connect 1

  2. 将显示屏背面朝上,然后将视频线另一端插入卡槽,然后将黑色边框再旋转下来,压紧视频线。
    Display connect 2

  3. 将6线电缆一端插入图中的位置。
    Display connect 3

  4. 将主板和显示屏都调整为正面朝上,然后将6线电缆另一端插入图中位置
    Display connect 4

最终谍照

final result

如果你的开发板包含彩虹帽,可参考官方连接教程

安装 Android Things

NXP i.MX7D 介绍

The i.MX 7Dual delivers high-performance processing for low-power requirements with a high degree of functional integration. The i.MX 7Dual features an advanced implementation of two ARM®Cortex®-A7 cores, which operate at speeds of up to 1.2 GHz, as well as the ARM® Cortex®-M4 core. The Pico variant is pin-compatible with the Intel® Edison for sensors and low-speed I/O, but also adds additional expansion possibilities for multimedia and connectivity, giving you cutting edge technology that can easily be expanded and implemented for IoT designs.

NXP i.MX7D Board

刷入镜像

(1). 硬件连接

  1. 通过Type-C线,给主板上电
    power on

  2. 网络连接
    这里强烈建议你将主板接入互联网,这样你的设备crash信息将会自动上报,同时也可以收到更新提示。

    • 通过网线上网
    • 通过Wi-Fi上网,这里需要你将Wifi天线接入主板
      wifi antenna

(2). 刷入Android Things

  1. Android Things Console下载Android Things启动工具。这里需要你登录Google账号,并接受服务条款。(注:自备梯子)
    console
  2. 解压下载的zip包
  3. 启动设置工具
    • Windows 双击可执行文件
    • Mac/Linux 在终端执行命令
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$ ~/Downloads/android-things-setup-utility/android-things-setup-utility-macos

Android Things Setup Utility (version 1.0.16)
============================
This tool will help you install Android Things on your board and set up Wi-Fi.

What do you want to do?
1 - Install Android Things and optionally set up Wi-Fi
2 - Set up Wi-Fi on an existing Android Things device
1
What hardware are you using?
1 - Raspberry Pi 3
2 - NXP Pico i.MX7D
3 - NXP Pico i.MX6UL
2
You chose NXP Pico i.MX7D.

Setting up required tools...
Fetching additional configuration...
Downloading platform tools...
File already downloaded.
Unzipping platform tools...
Finished setting up required tools.

Do you want to use the default image or a custom image?
1 - Default image: Used for development purposes. No access to the Android
Things Console features such as metrics, crash reports, and OTA updates.
2 - Custom image: Provide your own image, enter the path to an image generated
and from the Android Things Console.
2
Please enter the absolute path to the zip file containing your image:
/Users/wangsheng/Downloads/Victor_NXP Pico i.MX7D_1_userdebug_build.zip

Connect your device to this computer:
The USB cable should plug into your board's USB-C port. If your computer also
has USB-C ports like the more recent MacBooks, you will need to use a USB hub.
Otherwise the board won't power on correctly.

Once connected, press [Enter] to install Android Things on the device...

Looking for devices... This can take up to 3 minutes.
found device
Unzipping image...
Flashing Android Things. This will take a few minutes...
*Do not disconnect or interrupt!*

target reported max download size of 419430400 bytes
sending 'bootloader' (559 KB)...
OKAY [ 0.018s]
......
rebooting...

finished. total time: 134.454s
Creating filesystem with parameters:
Size: 1930952704
Block size: 4096
Blocks per group: 32768
Inodes per group: 7872
Inode size: 256
Journal blocks: 7366
Label:
Blocks: 471424
Block groups: 15
Reserved block group size: 119
Created filesystem with 11/118080 inodes and 15505/471424 blocks

Successfully flashed your imx7d.
Successfully flashed Android Things...
Would you like to set up Wi-Fi on this device? (y/n)

这里可以选择n,完成Android Things刷入。然后通过屏幕UI界面,来设计Wi-Fi网络。

效果图

Android Things run1
Android Things run2
Android Things run3
Android Things run4
Android Things run5
Android Things run6
Android Things run7
Android Things run8