Difference between revisions of "Matrix - UNO Dock for NanoPi NEO"

From FriendlyELEC WiKi
Jump to: navigation, search
(特性)
(Run Arduino on UNO Dock for NanoPi NEO)
 
(12 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
* Pin Description:
 
* Pin Description:
  
==如何在NEO上使用UNO Dock for NanoPi NEO==
+
==Application with UNO Dock for NanoPi NEO==
===连接NanoPi NEO===
+
===Connect NanoPi NEO to UNO Dock===
目前支持的开发板有NanoPi NEO。<br>
+
Currently the UNO Dock works with the NanoPi NEO。<br>
连接方法是倒扣NanoPi NEO到你的UNO Dock for NanoPi NEO上即可,参考下图连接模块:<br>
+
You can stack a NanoPi NEO to the UNO Dock. Here is a hardware setup:<br>
 
[[File:Matrix-UNO_Dock_NEO.jpg|frameless|500px|Matrix-UNO_Dock_NEO]]
 
[[File:Matrix-UNO_Dock_NEO.jpg|frameless|500px|Matrix-UNO_Dock_NEO]]
  
===安装BakeBit软件包===
+
===Install BakeBit Library===
* 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
+
* Step 1 - Connect your NanoPi NEO/AIR to the internet, open a terminal on your NanoPi NEO/AIR from SSH login and download the BakeBit source code from github:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd  ~
 
cd  ~
Line 34: Line 34:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第2步 - 使用如下命令在开发板上安装BakeBit包:
+
* Step 2 - Run the installation script for BakeBit Library:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd BakeBit/Script
 
cd BakeBit/Script
Line 41: Line 41:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第3步 - 重启开发板:
+
* Step 3 - Reboot your board after installation is finished:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
reboot
 
reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第4步 - 验证UNO Dock是否正常工作:
+
* Step 4 - Verify BakeBit Functions:
将LED配件的SIG信号用杜邦线连接到UNO Dock for NanoPi NEO上的D3引脚,在命令行执行以下命令操作LED: <br />
+
Connect a BakeBit Starter Kit’s LED module to the NanoHat Hub's D3 interface and run the following command on the NanoPi NEO's command line:<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 for NanoPi NEO已经为你准备好了!
+
If the LED is blinking your BakeBit is proved to be working.
  
==如何在UNO Dock for NanoPi NEO上使用Arduino==
+
==Run Arduino on UNO Dock for NanoPi NEO==
*第一步,将UNO Dock for NanoPi NEO板的串口跳线帽装在UNO-UART侧,使用USB线连接电脑,使用12V直流电源给板子供电。
+
* Step 1 jump the USB to Serial jumper to UNO-UART, connect your UNO Dock to a PC hose and power the board with a 12V DC power.
*第二步,电脑的计算机管理查看板子的串口号,例如本机的串口号是COM1.<br />
+
* Step 2 check the Dock's serial port's number on the PC. In our test it was "COM2".<br />
[[File:Matrix - UNO Dock COM.png | frameless|500px|Matrix - UNO Dock for NanoPi COM]]
+
[[File:Matrix - UNO Dock COM-en.png | frameless|500px|Matrix - UNO Dock for NanoPi COM]]
*第三步,下载安装Arduino IDE软件,[https://www.arduino.cc/en/Main/Software Arduino IDE下载地址]
+
* Step 3 download and install Arduino IDE [https://www.arduino.cc/en/Main/Software Arduino IDE download link]
请如下配置环境:<br />
+
Set up your UNO Dock by following the steps below:<br />
选择工具->开发板->Arduino Nano<br />
+
Go to Tools -> Board ->Arduino Nano<br />
[[File:Matrix - UNO Dock Arduino1.png | frameless|500px|Matrix - UNO Dock for NanoPi 环境配置]]<br />
+
[[File:Matrix - UNO Dock Arduino-EN1.png | frameless|500px|Matrix - UNO Dock for NanoPi Setup]]<br />
选择工具->端口->COM1(选择对应的计算机端口)<br />
+
Go to Tools -> Processor ->ATmega328<br />
[[File:Matrix - UNO Dock Arduino2.png | frameless|400px|Matrix - UNO Dock for NanoPi 环境配置]]
+
[[File:Matrix - UNO Dock Arduino-EN2.png | frameless|400px|Matrix - UNO Dock for NanoPi Setup]]<br />
*第四步,点击上传按钮,测试环境。
+
Go to Tools -> port ->COM2(select the serial port number you find on your PC)<br />
如果Arduino IDE软件提示“上传完成”,恭喜你,可以充分发挥你的想象,开始你的UNO Dock之旅了!<br />
+
[[File:Matrix - UNO Dock Arduino-EN3.png | frameless|400px|Matrix - UNO Dock for NanoPi Setup]]
 +
* Step 4 click on "upload"
 +
After upload is done you can play with your UNO Dock.<br />
 +
[[File:Matrix - UNO Dock Arduino-EN4.png | frameless|400px|Matrix - UNO Dock for NanoPi Upload]]
  
==注意==
+
==Notes==
使用Arduino IDE软件下载程序后,如果回到NanoPi NEO上使用UNO Dock for NanoPi NEO,需要给UNO Dock for NanoPi NEO下载固件,固件源码已上传到github。
+
After you download your own program to your Dock with Arduino IDE the previously existing code on the Dock will be replaced. Therefore if you want to use the Dock with NanoPi NEO again you need to install the Dock's firmware to your Dock.
[https://github.com/friendlyarm/BakeBit/tree/master/Firmware <br />固件源码下载地址]
+
[https://github.com/friendlyarm/BakeBit/tree/master/Firmware <br /> download link to firmware]
  
==相关资料==
+
==Resources==
 
*[Schematic]([http://wiki.friendlyarm.com/wiki/images/d/d5/UNO_Dock_for_NanoPi_NEO.pdf Matrix - UNO Dock for NanoPi NEO.pdf])
 
*[Schematic]([http://wiki.friendlyarm.com/wiki/images/d/d5/UNO_Dock_for_NanoPi_NEO.pdf Matrix - UNO Dock for NanoPi NEO.pdf])
 +
 +
==Update Log==
 +
===Jan-21-2016===
 +
* Released English Version

Latest revision as of 09:10, 10 March 2017

查看中文

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 Hardware Spec

  • Arduino UNO supported
  • Onboard USB to Serial port (can be set as either Arduino serial port or NanoPi NEO’s debug port with a jumper)
  • 12V power input to 5V/2A output
  • 1 x 2.0mm pitch 4-Pin NEO-UART interface
  • 2 x 2.0mm pitch 4-Pin NEO-I2C interface
  • PCB dimension(mm): 110.2 x 53.3

Matrix - UNO Dock for NanoPi NEO_PCB.PCB

  • Pin Description:

3 Application with UNO Dock for NanoPi NEO

3.1 Connect NanoPi NEO to UNO Dock

Currently the UNO Dock works with the NanoPi NEO。
You can stack a NanoPi NEO to the UNO Dock. Here is a hardware setup:
Matrix-UNO_Dock_NEO

3.2 Install BakeBit Library

  • Step 1 - Connect your NanoPi NEO/AIR to the internet, open a terminal on your NanoPi NEO/AIR from SSH login and download the BakeBit source code from github:
cd  ~
git clone https://github.com/friendlyarm/BakeBit.git
  • Step 2 - Run the installation script for BakeBit Library:
cd BakeBit/Script
chmod +x install.sh
./install.sh
  • Step 3 - Reboot your board after installation is finished:
reboot
  • Step 4 - Verify BakeBit Functions:

Connect a BakeBit Starter Kit’s LED module to the NanoHat Hub's D3 interface and run the following command on the NanoPi NEO's command line:

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

If the LED is blinking your BakeBit is proved to be working.

4 Run Arduino on UNO Dock for NanoPi NEO

  • Step 1 jump the USB to Serial jumper to UNO-UART, connect your UNO Dock to a PC hose and power the board with a 12V DC power.
  • Step 2 check the Dock's serial port's number on the PC. In our test it was "COM2".

Matrix - UNO Dock for NanoPi COM

Set up your UNO Dock by following the steps below:
Go to Tools -> Board ->Arduino Nano
Matrix - UNO Dock for NanoPi Setup
Go to Tools -> Processor ->ATmega328
Matrix - UNO Dock for NanoPi Setup
Go to Tools -> port ->COM2(select the serial port number you find on your PC)
Matrix - UNO Dock for NanoPi Setup

  • Step 4 click on "upload"

After upload is done you can play with your UNO Dock.
Matrix - UNO Dock for NanoPi Upload

5 Notes

After you download your own program to your Dock with Arduino IDE the previously existing code on the Dock will be replaced. Therefore if you want to use the Dock with NanoPi NEO again you need to install the Dock's firmware to your Dock.
download link to firmware

6 Resources

7 Update Log

7.1 Jan-21-2016

  • Released English Version