Difference between revisions of "BakeBit - NanoHat Hub/zh"
From FriendlyELEC WiKi
(Created page with "[BakeBit - NEO Hub|English] ==介绍== * NanoHat-Hub是一个专为NanoPi NEO量身设计的接口扩展模块。NanoHat-Hub通过I2C接口和NEO通讯,作为从设备的...") |
|||
Line 1: | Line 1: | ||
− | [BakeBit - NEO Hub|English] | + | [[BakeBit - NEO Hub|English]] |
− | + | ||
==介绍== | ==介绍== | ||
* NanoHat-Hub是一个专为NanoPi NEO量身设计的接口扩展模块。NanoHat-Hub通过I2C接口和NEO通讯,作为从设备的单片机MEGA328扮演NEO和传感器模块之间翻译官的角色,HUB提供了三个I2C接口、三个模拟接口,两个串口(一个NEO串口,一个单片机串口)和四个数字接口。传感器模块通过4Pin的连接线直接接在NanoHat-hub上。 | * NanoHat-Hub是一个专为NanoPi NEO量身设计的接口扩展模块。NanoHat-Hub通过I2C接口和NEO通讯,作为从设备的单片机MEGA328扮演NEO和传感器模块之间翻译官的角色,HUB提供了三个I2C接口、三个模拟接口,两个串口(一个NEO串口,一个单片机串口)和四个数字接口。传感器模块通过4Pin的连接线直接接在NanoHat-hub上。 | ||
* 连接NanoPi NEO和传感器的扩展板,NanoHat扩展板直接插在NanoPi NEO上面,通过I2C接口、串口、数字/模拟接口建立传感器与NEO之间的数据传输。所有的模块可以通过4个引脚的连接线直接连接到NanoHat扩展板接口上。 | * 连接NanoPi NEO和传感器的扩展板,NanoHat扩展板直接插在NanoPi NEO上面,通过I2C接口、串口、数字/模拟接口建立传感器与NEO之间的数据传输。所有的模块可以通过4个引脚的连接线直接连接到NanoHat扩展板接口上。 | ||
* NanoHat扩展板带有三路I2C接口,三路模拟接口,四路数字接口,两路串口。 | * NanoHat扩展板带有三路I2C接口,三路模拟接口,四路数字接口,两路串口。 | ||
+ | [[File:BakeBit - NEO Hub.jpg|thumb|BakeBit - NEO Hub]] | ||
+ | |||
+ | ==特性== | ||
+ | * 2个2.54mm 40Pin排针 | ||
+ | * 1个2.0mm 4Pin I2C0接口端子 | ||
+ | * 1个2.0mm 4Pin UART1接口端子 | ||
+ | * PCB尺寸(mm):40x40 | ||
+ | [[File:BakeBit - NEO Hub_Top_PCB.png | frameless|400px|BakeBit - NEO Hub_Top]] | ||
+ | [[File:BakeBit - NEO Hub_Bottom_PCB.png | frameless|400px|BakeBit - NEO Hub_Bottom]] | ||
+ | |||
+ | * 引脚说明: | ||
+ | * '''24 Pin排针引脚定义:''' | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |Pin# || Name || Linux gpio ||Pin# || Name || Linux gpio | ||
+ | |- | ||
+ | |1 || SYS_3.3V || ||2 || VDD_5V || | ||
+ | |- | ||
+ | |3 || I2C0_SDA || ||4 || VDD_5V || | ||
+ | |- | ||
+ | |5 || I2C0_SCL || ||6 || GND || | ||
+ | |- | ||
+ | |7 || GPIOG11 || 203 ||8 || UART1_TX/GPIOG6 || 198 | ||
+ | |- | ||
+ | |9 || GND || ||10 || UART1_RX/GPIOG7 || 199 | ||
+ | |- | ||
+ | |11 || UART2_TX/GPIOA0 || 0 ||12 || PWM1/GPIOA6 || 6 | ||
+ | |- | ||
+ | |13 || UART2_RTS/GPIOA2 || 2 ||14 || GND || | ||
+ | |- | ||
+ | |15 || UART2_CTS/GPIOA3 || 3 ||16 || UART1_RTS/GPIOG8 || 200 | ||
+ | |- | ||
+ | |17 || SYS_3.3V || ||18 || UART1_CTS/GPIOG9 || 201 | ||
+ | |- | ||
+ | |19 || SPI0_MOSI/GPIOC0 || 64 ||20 || GND || | ||
+ | |- | ||
+ | |21 || SPI0_MISO/GPIOC1 || 65 ||22 || UART2_RX/GPIOA1 || 1 | ||
+ | |- | ||
+ | |23 || SPI0_CLK/GPIOC2 || 93 ||24 || SPI0_CS/GPIOC3 || 67 | ||
+ | |} | ||
+ | |||
+ | * '''I2C0接口引脚定义:''' | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |Pin# || Name | ||
+ | |- | ||
+ | |1 || GND | ||
+ | |- | ||
+ | |2 || 5V | ||
+ | |- | ||
+ | |3 || I2C0_SDA | ||
+ | |- | ||
+ | |4 || I2C0_SCL | ||
+ | |} | ||
+ | |||
+ | * '''UART1接口引脚定义:''' | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |Pin# || Name | ||
+ | |- | ||
+ | |1 || GND | ||
+ | |- | ||
+ | |2 || 5V | ||
+ | |- | ||
+ | |3 || UART1_TX/GPIOG6 | ||
+ | |- | ||
+ | |4 || UART1_RX/GPIOG7 | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==硬件连接== | ||
+ | ===连接NanoPi NEO=== | ||
+ | 参考下图连接模块:<br> | ||
+ | [[File:BakeBit - NEO Hub_NEO.jpg|frameless|600px|BakeBit - NEO Hub_NEO]] | ||
+ | |||
+ | ==代码说明== | ||
+ | |||
+ | |||
+ | ==相关资料== |
Revision as of 03:43, 15 November 2016
1 介绍
- NanoHat-Hub是一个专为NanoPi NEO量身设计的接口扩展模块。NanoHat-Hub通过I2C接口和NEO通讯,作为从设备的单片机MEGA328扮演NEO和传感器模块之间翻译官的角色,HUB提供了三个I2C接口、三个模拟接口,两个串口(一个NEO串口,一个单片机串口)和四个数字接口。传感器模块通过4Pin的连接线直接接在NanoHat-hub上。
- 连接NanoPi NEO和传感器的扩展板,NanoHat扩展板直接插在NanoPi NEO上面,通过I2C接口、串口、数字/模拟接口建立传感器与NEO之间的数据传输。所有的模块可以通过4个引脚的连接线直接连接到NanoHat扩展板接口上。
- NanoHat扩展板带有三路I2C接口,三路模拟接口,四路数字接口,两路串口。
2 特性
- 2个2.54mm 40Pin排针
- 1个2.0mm 4Pin I2C0接口端子
- 1个2.0mm 4Pin UART1接口端子
- PCB尺寸(mm):40x40
- 引脚说明:
- 24 Pin排针引脚定义:
Pin# | Name | Linux gpio | Pin# | Name | Linux gpio |
1 | SYS_3.3V | 2 | VDD_5V | ||
3 | I2C0_SDA | 4 | VDD_5V | ||
5 | I2C0_SCL | 6 | GND | ||
7 | GPIOG11 | 203 | 8 | UART1_TX/GPIOG6 | 198 |
9 | GND | 10 | UART1_RX/GPIOG7 | 199 | |
11 | UART2_TX/GPIOA0 | 0 | 12 | PWM1/GPIOA6 | 6 |
13 | UART2_RTS/GPIOA2 | 2 | 14 | GND | |
15 | UART2_CTS/GPIOA3 | 3 | 16 | UART1_RTS/GPIOG8 | 200 |
17 | SYS_3.3V | 18 | UART1_CTS/GPIOG9 | 201 | |
19 | SPI0_MOSI/GPIOC0 | 64 | 20 | GND | |
21 | SPI0_MISO/GPIOC1 | 65 | 22 | UART2_RX/GPIOA1 | 1 |
23 | SPI0_CLK/GPIOC2 | 93 | 24 | SPI0_CS/GPIOC3 | 67 |
- I2C0接口引脚定义:
Pin# | Name |
1 | GND |
2 | 5V |
3 | I2C0_SDA |
4 | I2C0_SCL |
- UART1接口引脚定义:
Pin# | Name |
1 | GND |
2 | 5V |
3 | UART1_TX/GPIOG6 |
4 | UART1_RX/GPIOG7 |
3 硬件连接
3.1 连接NanoPi NEO
参考下图连接模块:
BakeBit - NEO Hub_NEO