Matrix - UNO Dock for NanoPi NEO

From FriendlyELEC WiKi
Revision as of 06:53, 21 January 2017 by Yftan (Talk | contribs) (Introduction)

Jump to: navigation, search

查看中文

1 Introduction

Matrix - UNO Dock for NanoPi NEO
  • The Matrix - UNO Dock for NanoPi NEO is a NanoHat Hub alike extension board.
  • It is an Arduino board compatible with Arduino UNO and works with Arduino programs.
  • The UNO Dock communicates with NanoPi NEO with I2C. The MEGA328P on the board acts as an interface between an external module connected to the board and the NanoPi NEO that is mounted on the board.When a NanoPi NEO and an Arduino module are connected to the UNO DOCK users can easily access the Arduino module from the NanoPi NEO.
  • It has an onboard USB to Serial port chip which allows users to set the serial port as either Arduino serial port or NanoPi NEO's debug port with a jumper
  • It has 12V power input to 5V/2A output.
  • NanoPi NEO can be directly mounted on the UNO Dock.

2 特性

  • 兼容arduino UNO接口
  • USB转串口
  • 12V电压输入,板载电压转换。
  • 1个2.0mm 4Pin NEO-UART接口
  • 2个2.0mm 4Pin NEO-I2C接口
  • PCB尺寸(mm):110.2x53.3

Matrix - UNO Dock for NanoPi NEO_PCB.PCB

  • 引脚说明:

3 如何在NEO上使用UNO Dock for NanoPi NEO

3.1 连接NanoPi NEO

目前支持的开发板有NanoPi NEO。
连接方法是倒扣NanoPi NEO到你的UNO Dock for NanoPi NEO上即可,参考下图连接模块:
Matrix-UNO_Dock_NEO

3.2 安装BakeBit软件包

  • 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
cd  ~
git clone https://github.com/friendlyarm/BakeBit.git
  • 第2步 - 使用如下命令在开发板上安装BakeBit包:
cd BakeBit/Script
chmod +x install.sh
./install.sh
  • 第3步 - 重启开发板:
reboot
  • 第4步 - 验证UNO Dock是否正常工作:

将LED配件的SIG信号用杜邦线连接到UNO Dock for NanoPi NEO上的D3引脚,在命令行执行以下命令操作LED:

python ~/BakeBit/Software/Python/grove_led_blink.py

看到LED闪烁,恭喜你,UNO Dock for NanoPi NEO已经为你准备好了!

4 如何在UNO Dock for NanoPi NEO上使用Arduino

  • 第一步,将UNO Dock for NanoPi NEO板的串口跳线帽装在UNO-UART侧,使用USB线连接电脑,使用12V直流电源给板子供电。
  • 第二步,电脑的计算机管理查看板子的串口号,例如本机的串口号是COM1.

Matrix - UNO Dock for NanoPi COM

请如下配置环境:
选择工具->开发板->Arduino Nano
Matrix - UNO Dock for NanoPi 环境配置
选择工具->端口->COM1(选择对应的计算机端口)
Matrix - UNO Dock for NanoPi 环境配置

  • 第四步,点击上传按钮,测试环境。

如果Arduino IDE软件提示“上传完成”,恭喜你,可以充分发挥你的想象,开始你的UNO Dock之旅了!

5 注意

使用Arduino IDE软件下载程序后,如果回到NanoPi NEO上使用UNO Dock for NanoPi NEO,需要给UNO Dock for NanoPi NEO下载固件,固件源码已上传到github。
固件源码下载地址

6 相关资料