Difference between revisions of "UNO Dock V2.0 for NanoPi NEO"

From FriendlyELEC WiKi
Jump to: navigation, search
(如何在NanoPi NEO/Air/NEO2上使用UNO Dock V2.0 for NanoPi NEO)
Line 60: Line 60:
 
==Connect UNO Dock V2.0 for NanoPi NEO to NanoPi NEO/Air/NEO2==
 
==Connect UNO Dock V2.0 for NanoPi NEO to NanoPi NEO/Air/NEO2==
 
===Connect to NanoPi NEO/Air/NEO2===
 
===Connect to NanoPi NEO/Air/NEO2===
Currently the applicable boards are FriendlyElec's NanoPi NEO/Air/NEO2. The NanoPi NEO2 doesn't work with Bakebit<br>
+
Currently the applicable boards are FriendlyElec's NanoPi NEO/Air/NEO2.<br>
 
The module can be stacked on a NanoPi NEO/Air/NEO2. Here is a hardware setup:<br>
 
The module can be stacked on a NanoPi NEO/Air/NEO2. Here is a hardware setup:<br>
 
[[File:Matrix-UNO_Dock_v2.0_NanoPi-NEO.jpg|frameless|500px|UNO_Dock_NEO_v2.0]]
 
[[File:Matrix-UNO_Dock_v2.0_NanoPi-NEO.jpg|frameless|500px|UNO_Dock_NEO_v2.0]]
  
 
===Install BakeBit Software===
 
===Install BakeBit Software===
* 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
+
* Step 1 - SSH to a master device(NanoPi NEO/Air/NEO2) via ssh and download the BakeBit code from github:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd  ~
 
cd  ~
Line 71: Line 71:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第2步 - 使用如下命令在开发板上安装BakeBit包:
+
* Step 2 - Install BakeBit software packages by running the following commands:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd BakeBit/Script
 
cd BakeBit/Script
Line 78: Line 78:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第3步 - 重启开发板:
+
* Step 3 - Reboot:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
reboot
 
reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第4步 - 验证UNO Dock是否正常工作:
+
* Step 4 - Test UNO Dock V2.0 for NanoPi NEO:
将LED配件的SIG信号用杜邦线连接到UNO Dock V2.0 for NanoPi NEO上的D3引脚,在命令行执行以下命令操作LED: <br />
+
Connect a BakeBit LED module to a UNO Dock V2.0 for NanoPi NEO by linking the LED module's SIG pin to the Dock's D3 and run the following command: <br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
python ~/BakeBit/Software/Python/grove_led_blink.py
 
python ~/BakeBit/Software/Python/grove_led_blink.py
 
</syntaxhighlight>
 
</syntaxhighlight>
看到LED闪烁,恭喜你,UNO Dock V2.0 for NanoPi NEO已经为你准备好了!
+
If the LED blinks it means the UNO Dock V2.0 for NanoPi NEO works!
  
 
==如何在UNO Dock V2.0 for NanoPi NEO上使用Arduino==
 
==如何在UNO Dock V2.0 for NanoPi NEO上使用Arduino==
Line 112: Line 112:
 
[https://github.com/friendlyarm/BakeBit/tree/master/Firmware <br />固件源码下载地址]
 
[https://github.com/friendlyarm/BakeBit/tree/master/Firmware <br />固件源码下载地址]
  
==相关资料==
+
==Resources==
 
*[Schematic]([http://wiki.friendlyarm.com/wiki/images/1/1c/SCHEMATIC1_UNO_Dock_v2.0.pdf UNO Dock V2.0 for NanoPi NEO.pdf])
 
*[Schematic]([http://wiki.friendlyarm.com/wiki/images/1/1c/SCHEMATIC1_UNO_Dock_v2.0.pdf UNO Dock V2.0 for NanoPi NEO.pdf])
 
*[Dimension]([http://wiki.friendlyarm.com/wiki/index.php/File:Dimension_UNO_Dock_v2.0.rar UNO Dock V2.0 for NanoPi NEO Dimension.rar])
 
*[Dimension]([http://wiki.friendlyarm.com/wiki/index.php/File:Dimension_UNO_Dock_v2.0.rar UNO Dock V2.0 for NanoPi NEO Dimension.rar])

Revision as of 02:40, 28 April 2017

查看中文

1 Introduction

UNO Dock V2.0 for NanoPi NEO
  • The UNO Dock V2.0 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 V2.0 communicates with NanoPi NEO/Air/NEO2 with I2C. The MEGA328P on the board acts as an interface between an external module connected to the board and the NanoPi NEO/Air/NEO2 that is mounted on the board.When a NanoPi NEO/Air/NEO2 and an Arduino module are connected to the UNO DOCK users can easily access the Arduino module from the NanoPi NEO/Air/NEO2.
  • 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/Air/NEO2's debug port with a jumper
  • It has 12V power input to 5V/2A output.
  • The two USB ports on the NanoPi NEO/Air/NEO2 are populated to the module
  • The male connectors on the NanoPi NEO/Air/NEO2 are populated to the module and a NanoHat module can be stacked on it.
  • NEO's GPIO pins are populated to the module
  • NanoPi NEO/Air/NEO2 can be directly mounted on the UNO Dock V2.0.

2 Hardware Spec

  • Arduino UNO supported
  • Onboard USB to Serial port
  • 12V power input to 5V/2A output
  • Compatible with BakeBit Modules
  • 2 x USB port
  • NEO's connectors are populated and a NanoHat can be stacked on it
  • NEO's GPIO pins are populated
  • PCB dimension(mm): 112 x 53.3

UNO Dock V2.0 for NanoPi NEO_PCB.PCB


2.1 Connector Pin Description

Here is a pin description for the UNO Dock V2.0 for NanoPi NEO's connectors:
UNO Dock V2.0 for NanoPi NEO Connector Pin Description

  • UNO Dock V2.0 for NanoPi NEO Connector Pin Description:
Pin Description
12V DC In 12V Input
Power on/off Power Switch
NEO USB 1 Populated NanoPi NEO/Air/NEO2's USB 1
NEO USB 2 Populated NanoPi NEO/Air/NEO2's USB 2
USB to URAT USB to Serial
Arduino interface Arduino Interface
ICSP ICSP Interface
UART select UNO UART/NEO DEBUG Mode Switch
NEO GPIO NEO GPIO Female Connector
NEO Debug UART Populated NanoPi NEO/Air/NEO2's Serial Debug Port
NEO interface Populated NanoPi NEO/Air/NEO2's Interface
Reset UNO Reset

3 Connect UNO Dock V2.0 for NanoPi NEO to NanoPi NEO/Air/NEO2

3.1 Connect to NanoPi NEO/Air/NEO2

Currently the applicable boards are FriendlyElec's NanoPi NEO/Air/NEO2.
The module can be stacked on a NanoPi NEO/Air/NEO2. Here is a hardware setup:
UNO_Dock_NEO_v2.0

3.2 Install BakeBit Software

  • Step 1 - SSH to a master device(NanoPi NEO/Air/NEO2) via ssh and download the BakeBit code from github:
cd  ~
git clone https://github.com/friendlyarm/BakeBit.git
  • Step 2 - Install BakeBit software packages by running the following commands:
cd BakeBit/Script
chmod +x install.sh
./install.sh
  • Step 3 - Reboot:
reboot
  • Step 4 - Test UNO Dock V2.0 for NanoPi NEO:

Connect a BakeBit LED module to a UNO Dock V2.0 for NanoPi NEO by linking the LED module's SIG pin to the Dock's D3 and run the following command:

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

If the LED blinks it means the UNO Dock V2.0 for NanoPi NEO works!

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

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

Matrix - UNO Dock for NanoPi COM

请如下配置环境:
1、选择工具->开发板->Arduino Nano
Matrix - UNO Dock for NanoPi 环境配置

2、选择工具->处理器->ATmega328
Matrix - UNO Dock for NanoPi 环境配置

3、选择工具->端口->COM2(选择对应的计算机端口)
Matrix - UNO Dock for NanoPi 环境配置

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

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

5 注意

使用Arduino IDE软件下载Arduino程序后,会覆盖UNO Dock V2.0 for NanoPi NEO单片机中的固件,如果此时回到NanoPi NEO/Air/NEO2上使用UNO Dock V2.0 for NanoPi NEO,需要先给UNO Dock V2.0 for NanoPi NEO下载固件,固件源码已上传到github,直接使用Arduino IDE上传即可。
固件源码下载地址

6 Resources