Difference between revisions of "UNO Dock V2.0 for NanoPi NEO"
(→特性) |
(→April-28-2017) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
* Onboard USB to Serial port | * Onboard USB to Serial port | ||
* 12V power input to 5V/2A output | * 12V power input to 5V/2A output | ||
− | * | + | * Compatible with BakeBit Modules |
* 2 x USB port | * 2 x USB port | ||
* NEO's connectors are populated and a NanoHat can be stacked on it | * NEO's connectors are populated and a NanoHat can be stacked on it | ||
Line 23: | Line 23: | ||
* PCB dimension(mm): 112 x 53.3 | * PCB dimension(mm): 112 x 53.3 | ||
[[File:Matrix - UNO Dock for NanoPi NEO-v2.0_PCB.png | frameless|700px|UNO Dock V2.0 for NanoPi NEO_PCB.PCB]] | [[File:Matrix - UNO Dock for NanoPi NEO-v2.0_PCB.png | frameless|700px|UNO Dock V2.0 for NanoPi NEO_PCB.PCB]] | ||
− | * | + | * For more details refer to: [http://wiki.friendlyarm.com/wiki/index.php/File:Dimension_UNO_Dock_v2.0.rar UNO Dock V2.0 for NanoPi NEO Dimension.rar]<br> |
<br> | <br> | ||
− | === | + | ===Connector Pin Description=== |
− | UNO Dock V2.0 for NanoPi | + | Here is a pin description for the UNO Dock V2.0 for NanoPi NEO's connectors:<br> |
− | [[File:Matrix-UNO_Dock_NEO-v2.0.jpg | frameless|700px|UNO Dock V2.0 for NanoPi | + | [[File:Matrix-UNO_Dock_NEO-v2.0.jpg | frameless|700px|UNO Dock V2.0 for NanoPi NEO Connector Pin Description]] |
− | * UNO Dock V2.0 for NanoPi | + | * UNO Dock V2.0 for NanoPi NEO Connector Pin Description: |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | | + | |Pin || Description |
|- | |- | ||
− | |12V DC In || | + | |12V DC In || 12V Input |
|- | |- | ||
− | |Power on/off || | + | |Power on/off || Power Switch |
|- | |- | ||
− | |NEO USB 1 || | + | |NEO USB 1 || Populated NanoPi NEO/Air/NEO2's USB 1 |
|- | |- | ||
− | |NEO USB 2 || | + | |NEO USB 2 || Populated NanoPi NEO/Air/NEO2's USB 2 |
|- | |- | ||
− | |USB to URAT || | + | |USB to URAT || USB to Serial |
|- | |- | ||
− | |Arduino interface || | + | |Arduino interface || Arduino Interface |
|- | |- | ||
− | |ICSP || | + | |ICSP || ICSP Interface |
|- | |- | ||
− | |UART select || UNO | + | |UART select || UNO UART/NEO DEBUG Mode Switch |
|- | |- | ||
− | |NEO GPIO || NEO | + | |NEO GPIO || NEO GPIO Female Connector |
|- | |- | ||
− | |NEO Debug UART || NanoPi NEO/Air/ | + | |NEO Debug UART || Populated NanoPi NEO/Air/NEO2's Serial Debug Port |
|- | |- | ||
− | |NEO interface || NanoPi NEO/Air/ | + | |NEO interface || Populated NanoPi NEO/Air/NEO2's Interface |
|- | |- | ||
− | |Reset || | + | |Reset || UNO Reset |
|} | |} | ||
− | == | + | You can use a jumper to short J11's two options to connect onboard USB2SERIAL to either UNO-UART or NEO-DEBUG.<br> |
− | === | + | (1) When UNO-UART is shorted the onboard USB2SERIAL will be connected to UNO-UART and users can download programs with Arduion IDE.<br> |
− | + | (2) When NEO-DEBUG is shorted the onboard USB2SERIAL will be connected to NEO-DEBUG and users can use a terminal to access NEO's serial debug port.<br> | |
− | + | Here is a hardware setup:<br> | |
+ | [[File:UNO_Dock_uart.jpg | frameless|400px|UNO Dock V2.0 for NanoPi NEO Serial Debug Port]] | ||
+ | |||
+ | ==Connect UNO Dock V2.0 for NanoPi NEO to NanoPi NEO/Air/NEO2== | ||
+ | ===Connect to NanoPi NEO/Air/NEO2=== | ||
+ | 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> | ||
[[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=== |
− | * | + | * 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 77: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * | + | * 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 84: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * | + | * Step 3 - Reboot: |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
reboot | reboot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * | + | * 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: <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> | ||
− | + | If the LED blinks it means the UNO Dock V2.0 for NanoPi NEO works! | |
− | == | + | ==Setup Arduino on UNO Dock V2.0 for NanoPi NEO== |
− | * | + | * Step 1:use a jumper in place of "UNO-UART", connect the Dock to a PC host with a USB cable and power the Dock with a 12V DC power source |
− | * | + | * Step 2:check the device name in your PC's device manager. In our test case it was "COM2".<br /> |
[[File:Matrix - UNO Dock COM.png | frameless|500px|Matrix - UNO Dock for NanoPi COM]] | [[File:Matrix - UNO Dock COM.png | frameless|500px|Matrix - UNO Dock for NanoPi COM]] | ||
− | * | + | * Step 3:download Arduino IDE [https://www.arduino.cc/en/Main/Software Arduino IDE Download Link] |
− | + | Setup development environment:<br /> | |
− | + | 1. Tools -> Board Arduino Nano<br /> | |
− | [[File:Matrix - UNO Dock Arduino1.png | frameless|500px|Matrix - UNO Dock for NanoPi | + | [[File:Matrix - UNO Dock Arduino1.png | frameless|500px|Matrix - UNO Dock for NanoPi Configurations]]<br /> |
<br /> | <br /> | ||
− | + | 2. Tools -> Processor ATmega328<br /> | |
− | [[File:Matrix - UNO Dock Arduino3.png | frameless|400px|Matrix - UNO Dock for NanoPi | + | [[File:Matrix - UNO Dock Arduino3.png | frameless|400px|Matrix - UNO Dock for NanoPi Configurations]]<br /> |
<br /> | <br /> | ||
− | + | 3. Tools -> Port ->COM2(the device name you find in your PC)<br /> | |
− | [[File:Matrix - UNO Dock Arduino2.png | frameless|400px|Matrix - UNO Dock for NanoPi | + | [[File:Matrix - UNO Dock Arduino2.png | frameless|400px|Matrix - UNO Dock for NanoPi Configurations]] |
− | * | + | * Step 4: click on "upload". |
− | + | After Arduino IDE shows uploading success you can start playing with your UNO Dock!<br /> | |
− | [[File:Matrix - UNO Dock Arduino4.png | frameless|400px|Matrix - UNO Dock for NanoPi | + | [[File:Matrix - UNO Dock Arduino4.png | frameless|400px|Matrix - UNO Dock for NanoPi Upload]] |
− | == | + | ==Note== |
− | + | After you download the Arduino IDE packages the firmware in the chip of the UNO Dock V2.0 for NanoPi NEO will be removed and replaced. If you want to use it as UNO Dock you need to reinstall the firmware for UNO Dock V2.0 for NanoPi NEO. | |
− | [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/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]) | ||
+ | |||
+ | ==Update Log== | ||
+ | ===April-28-2017=== | ||
+ | * Released English version | ||
+ | |||
+ | ===Nov-24-2017=== | ||
+ | * Updated section 2.1 |
Latest revision as of 06:54, 24 November 2017
Contents
1 Introduction
- 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
- For more details refer to: UNO Dock V2.0 for NanoPi NEO Dimension.rar
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:
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 |
You can use a jumper to short J11's two options to connect onboard USB2SERIAL to either UNO-UART or NEO-DEBUG.
(1) When UNO-UART is shorted the onboard USB2SERIAL will be connected to UNO-UART and users can download programs with Arduion IDE.
(2) When NEO-DEBUG is shorted the onboard USB2SERIAL will be connected to NEO-DEBUG and users can use a terminal to access NEO's serial debug port.
Here is a hardware setup:
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:
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 Setup Arduino on UNO Dock V2.0 for NanoPi NEO
- Step 1:use a jumper in place of "UNO-UART", connect the Dock to a PC host with a USB cable and power the Dock with a 12V DC power source
- Step 2:check the device name in your PC's device manager. In our test case it was "COM2".
- Step 3:download Arduino IDE Arduino IDE Download Link
Setup development environment:
1. Tools -> Board Arduino Nano
2. Tools -> Processor ATmega328
3. Tools -> Port ->COM2(the device name you find in your PC)
- Step 4: click on "upload".
After Arduino IDE shows uploading success you can start playing with your UNO Dock!
5 Note
After you download the Arduino IDE packages the firmware in the chip of the UNO Dock V2.0 for NanoPi NEO will be removed and replaced. If you want to use it as UNO Dock you need to reinstall the firmware for UNO Dock V2.0 for NanoPi NEO.
Download Link to Firmware
6 Resources
- [Schematic](UNO Dock V2.0 for NanoPi NEO.pdf)
- [Dimension](UNO Dock V2.0 for NanoPi NEO Dimension.rar)
7 Update Log
7.1 April-28-2017
- Released English version
7.2 Nov-24-2017
- Updated section 2.1