Difference between revisions of "Mini Shield for NanoPi Duo"

From FriendlyELEC WiKi
Jump to: navigation, search
(August-16-2017)
 
(17 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
[[File:Mini Shield for NanoPi Duo2.jpg|thumb|Mini Shield for NanoPi Duo 正面]]
 
[[File:Mini Shield for NanoPi Duo2.jpg|thumb|Mini Shield for NanoPi Duo 正面]]
 
[[File:Mini Shield for NanoPi Duo3.jpg|thumb|Mini Shield for NanoPi Duo 底面]]
 
[[File:Mini Shield for NanoPi Duo3.jpg|thumb|Mini Shield for NanoPi Duo 底面]]
*Mini Shield for NanoPi Duo是一个专为NanoPi Duo定做的功能扩展底板,扩展了网口、调试串口、音频、USB等常用接口。
+
* The Mini Shield for NanoPi Duo is a dedicated carrier board for the NanoPi Duo. It extends Duo's Ethernet, serial port, audio, USB and etc.
*板上搭载了JMS567 USB转SATA芯片,提供了mSATA接口,方便外接半高mSATA接口的SSD。
+
* The mini shield has an onboard JMS567 USB to SATA IC and an mSATA interface.
*板上还使用了FE1.1s扩展了4个USB Host接口,可外接常用USB设备。
+
* The mini shield has an onboard FE1.1s which extends four USB Host ports.
*扩展的调试串口和网络接口,能方便的连接串口模块和有限网络。
+
* It has a serial port and Ethernet port.
*板上的咪头和3.5mm音频输出接口,能方便的录制和播放音频。
+
* It has an onboard microphone and a 3.5mm audio jack.
*板子左上角的2x9 Pin排针引出了NanoPi Duo的IO接口,方便连接其他功能模块。
+
* The mini shield has a 2 x9 Pin header which extends NanoPi Duo's IO pins.
*板子背面的6Pin SPI接口,能方便外接SPI设备。
+
* There is a 6-pin SPI header on the reverse side.
*底板和树莓派的尺寸和螺丝孔位置相同,可装配在树莓派的外壳中。
+
* This shield's dimension and mounting holes' positions are exactly the same as those of a Raspberry Pi therefore it can well fit into a Raspberry Pi's case.
  
==特性==
+
==Hardware Spec==
* 和树莓派尺寸相同,可直装配在树莓派外壳中
+
* its dimension is the same as that of a Raspberry Pi and it can fit into a Pi's case
* 4个USB Host接口
+
* 4 x USB Host port
* 扩展的调试串口和网络接口
+
* Serial port and Ethernet port
* 音频输入、输出接口
+
* Audio input and output
* 2x9 Pin GPIO排针
+
* 2 x 9 Pin GPIO header
* 6Pin SPI 排针
+
* 6 x Pin SPI header
* PCB尺寸(mm):85x56
+
* PCB dimension(mm): 85 x 56
[[File:Mini Shield for NanoPi Duo_PCB.png | frameless|700px|Mini Shield for NanoPi Duo_PCB]]
+
[[File:Mini Shield for NanoPi Duo_PCB.png | frameless|600px|Mini Shield for NanoPi Duo_PCB]]
  
===接口说明===
+
===Diagram, Layout and Dimension===
[[File:Mini Shield for NanoPi Duo-layout.jpg |thumb|600px|Mini Shield for NanoPi Duo接口布局]]
+
[[File:Mini Shield for NanoPi Duo-layout.jpg |thumb|550px|Mini Shield for NanoPi Duo Layout]]
Mini Shield for NanoPi Duo接口如右图所示,接口引脚丝印都在板子背面做了详细标注。<br>
+
Here is a layout of ports and interfaces. There are detailed descriptions for ports and interfaces on the other side of the board.<br>
  
*  '''Mini Shield for NanoPi Duo接口引脚定义 '''
+
*  '''NanoPi Duo Pin-header Pin Description '''
 
::{| class="wikitable"
 
::{| class="wikitable"
 
|-
 
|-
Line 66: Line 66:
 
|}
 
|}
  
*  '''2x9 Pin排针引脚定义 '''
+
*  '''9x2 Pin Header Pin Description'''
 
::{| class="wikitable"
 
::{| class="wikitable"
 
|-
 
|-
Line 90: Line 90:
 
|}
 
|}
  
*  '''6 Pin SPI排针引脚定义 '''
+
*  '''6 Pin SPI Pin Header Pin Description'''
 
::{| class="wikitable"
 
::{| class="wikitable"
 
|-
 
|-
Line 108: Line 108:
 
|}
 
|}
  
==硬件连接==
+
==Hardware Setup==
NanoPi Duo可直接装配在Mini Shield for NanoPi Duo底板上,装配时注意NanoPi Duo的方向,参考下图连接模块:<br>
+
A NanoPi Duo can be mounted on a Mini Shield. Here is a hardware setup diagram:<br>
 
[[File:Mini Shield for NanoPi Duo.jpg|frameless|600px|Mini Shield for NanoPi Duo_NanoPi_Duo]]
 
[[File:Mini Shield for NanoPi Duo.jpg|frameless|600px|Mini Shield for NanoPi Duo_NanoPi_Duo]]
  
并可装配在树莓派外壳中,参考下图装配:<br>
+
The Mini Shield for NanoPi Duo has an Ethernet port and USB ports<br>
 +
[[File:NanoPi-Duo_USB2LCD.jpg|frameless|450px|NanoPi Duo]]<br>
 +
 
 +
It can fit into a Raspberry Pi's case. Here is a hardware setup:<br>
 
[[File:Mini Shield_NanoPi Duo-2.jpg|frameless|600px|Mini Shield for NanoPi Duo_NanoPi_Duo-2]]
 
[[File:Mini Shield_NanoPi Duo-2.jpg|frameless|600px|Mini Shield for NanoPi Duo_NanoPi_Duo-2]]
  
==软件使用==
+
==Applications==
===1、mSATA接口使用===
+
===Connect SSD to mSATA===
插入半高的mSATA接口SSD,启动系统后,可使用如下命令查看SSD:
+
Connect an SSD hard disk to the shield's mSATA, power on the board and type the following command to check the SSD's status:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
fdisk -l
 
fdisk -l
 
</syntaxhighlight>
 
</syntaxhighlight>
运行效果如下:<br>
+
Here is what you expect to observe:<br>
[[File:ssd.jpg|frameless|600px|查看SSD]]
+
[[File:ssd.jpg|frameless|600px| Check SSD]]
===2、音频输入与输出===
+
===Boot System from SSD===
1、可使用以下命令录音:
+
A NanoPi-Duo can be booted from the SSD on a [[Mini Shield for NanoPi Duo]]. Booting OS from an SSD has the following benefits:<br />
 +
1) faster read/write;<br />
 +
2) much longer life time than a TF card;<br />
 +
3) more reliable than booting from a TF card;<br />
 +
<br />
 +
You can install an OS to SSD by using the npi-config utility. Here are the steps to follow:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
xxxxx
+
sudo npi-config
 
</syntaxhighlight>
 
</syntaxhighlight>
运行效果如下:<br>
+
Enter the "Boot Options" menu, go to "Boot device" and you will see two options:<br />
[[File:audio_in.jpg|frameless|600px|录音]]
+
1) D1 Hard drive<br />
2、可使用以下命令播放音频文件:
+
2) D2 TF card<br />
 +
Select "D1 Hard drive" and proceed with its prompts.<br />
 +
Select "D2 TF card" to boot OS from a TF card.<br /><br />
 +
If your npi-config doesn't have a "Boot device" menu it might be that your npi-config is out of date and you can update it by selecting "Update" in the menu.<br />
 +
 
 +
===Audio===
 +
1. Audio Recording:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
xxxxx
+
arecord -D hw:0,0 -f cd test.wav
 
</syntaxhighlight>
 
</syntaxhighlight>
运行效果如下:<br>
+
Here is what you expect to observe:<br>
[[File:audio_out.jpg|frameless|600px|播放音乐]]
+
[[File:audio_in.jpg|frameless|600px| Record]]<br>
 +
2. Audio Playing:
 +
<syntaxhighlight lang="bash">
 +
aplay /root/Music/test.wav
 +
</syntaxhighlight>
 +
Here is what you expect to observe:<br>
 +
[[File:audio_out.jpg|frameless|600px| Play]]
 +
 
 +
==Resources==
 +
*[Schematic]([http://wiki.friendlyarm.com/wiki/images/3/31/Schematic-Mini_Shield_for_NanoPi_Duo_v1.0.pdf Schematic - Mini Shield for NanoPi Duo.pdf])
 +
*[Dimension]([http://wiki.friendlyarm.com/wiki/index.php/File:Dimension_-_Mini_Shield_for_NanoPi_Duo_PCB(dxf).rar Dimension - Mini Shield for NanoPi Duo_PCB(dxf)])
 +
 
 +
==Update Log==
 +
===August-16-2017===
 +
* Released English Version
  
==相关资料==
+
===Nov-9-2017===
*[Schematic]([http://oto.pdf Schematic - Mini Shield for NanoPi Duo.pdf])
+
* Added section 4.2
*[Dimension]([http://w Dimension - Mini Shield for NanoPi Duo_PCB(dxf)])
+

Latest revision as of 09:54, 9 November 2017

查看中文

1 Introduction

Mini Shield for NanoPi Duo 侧面
Mini Shield for NanoPi Duo 正面
Mini Shield for NanoPi Duo 底面
  • The Mini Shield for NanoPi Duo is a dedicated carrier board for the NanoPi Duo. It extends Duo's Ethernet, serial port, audio, USB and etc.
  • The mini shield has an onboard JMS567 USB to SATA IC and an mSATA interface.
  • The mini shield has an onboard FE1.1s which extends four USB Host ports.
  • It has a serial port and Ethernet port.
  • It has an onboard microphone and a 3.5mm audio jack.
  • The mini shield has a 2 x9 Pin header which extends NanoPi Duo's IO pins.
  • There is a 6-pin SPI header on the reverse side.
  • This shield's dimension and mounting holes' positions are exactly the same as those of a Raspberry Pi therefore it can well fit into a Raspberry Pi's case.

2 Hardware Spec

  • its dimension is the same as that of a Raspberry Pi and it can fit into a Pi's case
  • 4 x USB Host port
  • Serial port and Ethernet port
  • Audio input and output
  • 2 x 9 Pin GPIO header
  • 6 x Pin SPI header
  • PCB dimension(mm): 85 x 56

Mini Shield for NanoPi Duo_PCB

2.1 Diagram, Layout and Dimension

Mini Shield for NanoPi Duo Layout

Here is a layout of ports and interfaces. There are detailed descriptions for ports and interfaces on the other side of the board.

  • NanoPi Duo Pin-header Pin Description
Number# Name Number# Name
1 VDD_5V 1 DEBUG_RX(UART_RXD0)/GPIOA5/PWM0
2 VDD_5V 2 DEBUG_TX(UART_TXD0)/GPIOA4
3 SYS_3.3V 3 GND
4 GND 4 I2C0_SCL/GPIOA11
5 GPIOL11/IR-RX 5 I2C0_SDA/GPIOA12
6 GPIOG11 6 UART3_TX/SPI1_CS/GPIOA13
7 USB-DM3 7 UART3_RX/SPI1_CLK/GPIOA14
8 USB-DP3 8 UART3_CTS/SPI1_MISO/GPIOA16
9 USB-DM2 9 UART3_RTS/SPI1_MOSI/GPIOA15
10 USB-DP2 10 UART1_RX/GPIOG7
11 EPHY-RXN 11 UART1_TX/GPIOG6
12 EPHY-RXP 12 CVBS
13 EPHY-TXN 13 LINEOUT_L
14 EPHY-TXP 14 LINEOUT_R
15 EPHY-LED-LINK 15 MIC_P
16 EPHY-LED-SPD 16 MIC_N
  • 9x2 Pin Header Pin Description
Number# Name Number# Name
1 SYS_3.3V 2 VDD_5V
3 I2C0_SDA / GPIOA12 4 VDD_5V
5 I2C0_SCL / GPIOA11 6 GND
7 GPIOG11 8 UART1_TX / GPIOG6
9 GND 10 UART1_RX / GPIOG7
11 SPI1_MOSI/GPIOA15 12 GPIOL11
13 SPI1_MISO/GPIOA16 14 GND
15 SPI1_CLK/GPIOA14 16 SPI1_CS/GPIOA13
17 SYS_3.3V 18 NC
  • 6 Pin SPI Pin Header Pin Description
Number# Name
1 GND
2 SYS_3.3V
3 SPI1_CS/GPIOA13
4 SPI1_CLK/GPIOA14
5 SPI1_MOSI/GPIOA15
6 SPI1_MISO/GPIOA16

3 Hardware Setup

A NanoPi Duo can be mounted on a Mini Shield. Here is a hardware setup diagram:
Mini Shield for NanoPi Duo_NanoPi_Duo

The Mini Shield for NanoPi Duo has an Ethernet port and USB ports
NanoPi Duo

It can fit into a Raspberry Pi's case. Here is a hardware setup:
Mini Shield for NanoPi Duo_NanoPi_Duo-2

4 Applications

4.1 Connect SSD to mSATA

Connect an SSD hard disk to the shield's mSATA, power on the board and type the following command to check the SSD's status:

fdisk -l

Here is what you expect to observe:
Check SSD

4.2 Boot System from SSD

A NanoPi-Duo can be booted from the SSD on a Mini Shield for NanoPi Duo. Booting OS from an SSD has the following benefits:
1) faster read/write;
2) much longer life time than a TF card;
3) more reliable than booting from a TF card;

You can install an OS to SSD by using the npi-config utility. Here are the steps to follow:

sudo npi-config

Enter the "Boot Options" menu, go to "Boot device" and you will see two options:
1) D1 Hard drive
2) D2 TF card
Select "D1 Hard drive" and proceed with its prompts.
Select "D2 TF card" to boot OS from a TF card.

If your npi-config doesn't have a "Boot device" menu it might be that your npi-config is out of date and you can update it by selecting "Update" in the menu.

4.3 Audio

1. Audio Recording:

arecord -D hw:00 -f cd test.wav

Here is what you expect to observe:
Record
2. Audio Playing:

aplay /root/Music/test.wav

Here is what you expect to observe:
Play

5 Resources

6 Update Log

6.1 August-16-2017

  • Released English Version

6.2 Nov-9-2017

  • Added section 4.2