Difference between revisions of "RASPBERRY PI Arduino Shield ADD-ON/zh-cn"
From ITEAD Wiki
(Created page with "==Specification== {| border="1" | PCB尺寸||62.33X49.67X1.6mm |- | 接口||IIC, UART, Arduino Shield |- |}") |
m |
||
(8 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
|} | |} | ||
− | == | + | ==电气特性== |
{| class="wikitable" | {| class="wikitable" | ||
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''特性''' |
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''标示''' |
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''最小值''' |
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''经典值''' |
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''最大值''' |
− | | align="center" style="background:#f0f0f0;"|''' | + | | align="center" style="background:#f0f0f0;"|'''单位''' |
|- | |- | ||
− | | | + | | 电源电压||VDD||3||3.3||3.5||V |
|- | |- | ||
|} | |} | ||
− | == | + | ==硬件图== |
[[File:IM140714004pic1.jpg|500px]] | [[File:IM140714004pic1.jpg|500px]] | ||
Line 37: | Line 37: | ||
[[File:IM140714004pic3.jpg|500px]] | [[File:IM140714004pic3.jpg|500px]] | ||
− | == | + | ==引脚图== |
{| class="wikitable" | {| class="wikitable" | ||
| align="center" style="background:#f0f0f0;"|'''Pin Index''' | | align="center" style="background:#f0f0f0;"|'''Pin Index''' | ||
Line 98: | Line 98: | ||
|} | |} | ||
− | == | + | ==使用说明== |
− | * | + | *将RpiArduinoShieldAddon插到RPI V2上面,将SHT10通过电子积木4pin连线接到IIC电子积木接口上,上电。 |
− | * | + | *从https://github.com/itead/SDK 下载SDK并安装。 |
− | * | + | *修改文件 ReadSHT1xValues.ino |
− | : | + | : 修改后的编码如下: |
::define dataPin 3 | ::define dataPin 3 | ||
::define clockPin 5 | ::define clockPin 5 | ||
− | * | + | *进入目录 '''libraries/itead_SHT1x/examples/ReadSHT1xValues''', 编译运行 '''ReadSHT1xValues.ino''' |
− | : | + | :编译ReadSHT1xValues.ino的指令如下 |
::$ iteadcompile ReadSHT1xValues ReadSHT1xValues.ino | ::$ iteadcompile ReadSHT1xValues ReadSHT1xValues.ino | ||
− | : | + | :运行指令如下 |
::$ sudo ./ ReadSHT1xValues | ::$ sudo ./ ReadSHT1xValues | ||
− | * | + | *最后可以从终端上读到传感器传回的温湿度值 |
[[File:IM140714004in1.jpg|400px]] | [[File:IM140714004in1.jpg|400px]] | ||
[[File:IM140714004in2.jpg|500px]] | [[File:IM140714004in2.jpg|500px]] | ||
− | == | + | ==文件下载== |
− | [[File:SHC_IM140714004.pdf]] | + | 原理图---[[File:SHC_IM140714004.pdf]] |
− | == | + | ==有用链接== |
− | https://github.com/ | + | https://github.com/itead/SDK |
Latest revision as of 03:26, 2 December 2014
概述
市场上有各种各样为Arduino定制的Shield和电子积木,而为树莓派定制的相对不多。这款RPI Arduino Shield Add-on 把树莓派的32PIN Connector 扩展为Arduino 引脚,可以方便连接各种Arduino Shields,同时引出2组Grove电子积木接口,可连接各种电子积木。
我们不仅仅只是提供一块可以方便的插在树莓派上面的板子,还为其配套提供了SDK,移植了Arduino上的驱动程序。安装完SDK后,就可以像在Arduino平台底下一样,非常轻松的驱动这块板子。
- 树莓派的32PIN 接口扩展为Arduino 引脚
- 2组Grove电子积木接口
- 2个电子积木接口
- 供电电压3V3、5V可调
Specification
PCB尺寸 | 62.33X49.67X1.6mm |
接口 | IIC, UART, Arduino Shield |
电气特性
特性 | 标示 | 最小值 | 经典值 | 最大值 | 单位 |
电源电压 | VDD | 3 | 3.3 | 3.5 | V |
硬件图
引脚图
Pin Index | Pin Name | Arduino Shield | Description |
1 | 3V3 | - | |
2 | 5V | - | |
3 | SDA | A4 | UART SDA |
4 | 5V | - | |
5 | SCL | A5 | UART SCL |
6 | GND | - | |
7 | GPIO7 | D9 | UART TXD |
8 | TXD | D1 | |
9 | GND | - | |
10 | RXD | D0 | UART RXD |
11 | GPIO0 | D2 | |
12 | GPIO1 | D3 | |
13 | GPIO2 | D4 | |
14 | GND | - | |
15 | GPIO3 | D5 | |
16 | GPIO4 | D6 | |
17 | 3V3 | - | |
18 | GPIO5 | D7 | |
19 | MOSI | D11 | |
20 | GND | - | |
21 | MISO | D12 | |
22 | GPIO6 | D8 | |
23 | SCK | D13 | |
24 | CE0 | D10 | |
25 | GND | - | |
26 | CE1 | A3 |
使用说明
- 将RpiArduinoShieldAddon插到RPI V2上面,将SHT10通过电子积木4pin连线接到IIC电子积木接口上,上电。
- 从https://github.com/itead/SDK 下载SDK并安装。
- 修改文件 ReadSHT1xValues.ino
- 修改后的编码如下:
- define dataPin 3
- define clockPin 5
- 进入目录 libraries/itead_SHT1x/examples/ReadSHT1xValues, 编译运行 ReadSHT1xValues.ino
- 编译ReadSHT1xValues.ino的指令如下
- $ iteadcompile ReadSHT1xValues ReadSHT1xValues.ino
- 运行指令如下
- $ sudo ./ ReadSHT1xValues
- 最后可以从终端上读到传感器传回的温湿度值
文件下载
原理图---File:SHC IM140714004.pdf