Difference between revisions of "BakeBit Starter Kit with NanoPi NEO/NEO2/NEO Air/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(使用方法)
(运行BakeBit示例)
Line 14: Line 14:
 
堆叠连接NEO-Hub扩展板到你的NanoPi NEO上
 
堆叠连接NEO-Hub扩展板到你的NanoPi NEO上
 
::[[File:NEOHubConnect.png| frameless|600px|NEOHubConnect]]
 
::[[File:NEOHubConnect.png| frameless|600px|NEOHubConnect]]
 +
 +
==安装BakeBit软件==
 +
 +
* 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
 +
<syntaxhighlight lang="bash">
 +
cd  ~
 +
git clone https://github.com/friendlyarm/BakeBit.git
 +
</syntaxhighlight>
 +
 +
* 第2步 - 使用如下命令在开发板上安装BakeBit:
 +
<syntaxhighlight lang="bash">
 +
cd BakeBit/Script
 +
chmod +x install.sh
 +
./install.sh
 +
</syntaxhighlight>
 +
 +
* 第3步 - 重启开发板:
 +
<syntaxhighlight lang="bash">
 +
reboot
 +
</syntaxhighlight>
 +
 +
* 第4步 - 验证BakeBit是否正常工作:
 +
将LED配件连接到NEO-Hub上的D3插座,在命令行执行以下命令操作LED: <br />
 +
<syntaxhighlight lang="bash">
 +
python ~/BakeBit/Software/Python/grove_led_blink.py
 +
</syntaxhighlight>
 +
看到LED闪烁,恭喜你,BakeBit已经为你准备好了!
  
 
==运行BakeBit示例==
 
==运行BakeBit示例==

Revision as of 08:00, 24 November 2016

1 介绍BakeBit

NeoHUB

BakeBit是一套传感器连接的解决方案,包括硬件(NEO-Hub扩展板)和软件(BakeBit)。
BakeBit可以让众多传感器可以非常便捷灵活地连接到各个型号的NanoPi开发板上, 支持数字、模拟接口,支持I2C与串口连接,所有的传感器都使用固定的插座,从此远离那些乱糟糟的杜邦线与焊锡。

2 产品特点

  • 完美兼容NanoPi NEO, NanoPi Air
  • 即插即用
  • 带3个I2C接口,3个模拟接口,2个UART接口,4个数字接口


Bakebit

3 如何在开发板上使用BakeBit

堆叠连接NEO-Hub扩展板到你的NanoPi NEO上

NEOHubConnect

4 安装BakeBit软件

  • 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
cd  ~
git clone https://github.com/friendlyarm/BakeBit.git
  • 第2步 - 使用如下命令在开发板上安装BakeBit:
cd BakeBit/Script
chmod +x install.sh
./install.sh
  • 第3步 - 重启开发板:
reboot
  • 第4步 - 验证BakeBit是否正常工作:

将LED配件连接到NEO-Hub上的D3插座,在命令行执行以下命令操作LED:

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

看到LED闪烁,恭喜你,BakeBit已经为你准备好了!

5 运行BakeBit示例

5.1 示例项目:LED Blink

lease note that all contributions to FriendlyARM WiKi may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.

5.2 示例项目:LED Fade

lease note that all contributions to FriendlyARM WiKi may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.

5.3 示例项目:Button And Buzzer

lease note that all contributions to FriendlyARM WiKi may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.

5.4 示例项目:Ultrasonic And Relay

lease note that all contributions to FriendlyARM WiKi may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.

6 其它相关资料

test