Difference between revisions of "BakeBit Starter Kit with NanoPi NEO/NEO2/NEO Air/zh"
From FriendlyELEC WiKi
(→BakeBit Starter Kit) |
(→BakeBit Starter Kit) |
||
Line 47: | Line 47: | ||
|- | |- | ||
|1 || '''BakeBit-Button'''<br />[[File:BakeBit - Button01.jpg |frameless|150px]] || '''按钮开关模块'''<br /> | |1 || '''BakeBit-Button'''<br />[[File:BakeBit - Button01.jpg |frameless|150px]] || '''按钮开关模块'''<br /> | ||
− | '''连接方式''': 连接到数字接口 D2 ~ D5<br /> | + | '''连接方式''': 连接到数字接口 D2~D5<br /> |
'''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_button.py <br /> | '''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_button.py <br /> | ||
'''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Button <br /> | '''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Button <br /> | ||
Line 57: | Line 57: | ||
|- | |- | ||
|3 || '''BakeBit-Green LED'''<br />[[File:BakeBit_-_Green_LED.jpg |frameless|150px]] || '''绿色的LED发光二极管模块,亮度可调节'''<br /> | |3 || '''BakeBit-Green LED'''<br />[[File:BakeBit_-_Green_LED.jpg |frameless|150px]] || '''绿色的LED发光二极管模块,亮度可调节'''<br /> | ||
− | '''连接方式''': 连接到数字接口 D2 ~D5<br /> | + | '''连接方式''': 连接到数字接口 D2~D5<br /> |
'''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py <br /> | '''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py <br /> | ||
'''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Green_LED <br /> | '''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Green_LED <br /> | ||
|- | |- | ||
|4 || '''BakeBit-JoyStick'''<br />[[File:BakeBit_-_JoyStick.jpg |frameless|150px]] || '''摇杆模块'''<br /> | |4 || '''BakeBit-JoyStick'''<br />[[File:BakeBit_-_JoyStick.jpg |frameless|150px]] || '''摇杆模块'''<br /> | ||
− | '''连接方式''': 连接到模拟接口 A0 ~A2<br /> | + | '''连接方式''': 连接到模拟接口 A0~A2<br /> |
'''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_prj_UIControl_via_Joystick.py <br /> | '''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_prj_UIControl_via_Joystick.py <br /> | ||
'''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_JoyStick <br /> | '''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_JoyStick <br /> | ||
Line 82: | Line 82: | ||
|- | |- | ||
|8 || '''BakeBit-Red LED'''<br />[[File:BakeBit_-_Red_LED.jpg |frameless|150px]] || '''红色LED模块,亮度可调节'''<br /> | |8 || '''BakeBit-Red LED'''<br />[[File:BakeBit_-_Red_LED.jpg |frameless|150px]] || '''红色LED模块,亮度可调节'''<br /> | ||
− | '''连接方式''': 连接到数字接口 D2 ~D5<br /> | + | '''连接方式''': 连接到数字接口 D2~D5<br /> |
'''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py <br /> | '''示例源代码''': https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py <br /> | ||
'''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Red_LED <br /> | '''WiKi网址''': http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Red_LED <br /> |
Revision as of 10:13, 14 February 2017
1 介绍BakeBit
BakeBit是一套传感器连接的解决方案,包括硬件(NanoHat Hub扩展板)和软件(BakeBit)。
BakeBit可以让众多传感器可以非常便捷灵活地连接到各个型号的NanoPi开发板上, 即插即用,支持数字、模拟接口,支持I2C与串口连接,所有的传感器都使用统一规格的连接线,从此远离那些乱糟糟的杜邦线与焊锡。
2 如何在开发板上使用BakeBit
目前支持的开发板有NanoPi NEO, NanoPi Air,
连接方法是简单地堆叠[1]扩展板到你的NanoPi NEO上即可:
3 安装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配件连接到NanoHat Hub上的D3插座,在命令行执行以下命令操作LED:
python ~/BakeBit/Software/Python/bakebit_led_blink.py
看到LED闪烁,恭喜你,BakeBit已经为你准备好了!
4 BakeBit Starter Kit
BakeBit Starter Kit是一个基础套件,包含了适用于NanoPi NEO的NanoHat Hub扩展板及12个传感器。
下表列出了该套件所包含的传感器:
5 其它相关资源
github项目网址: https://github.com/friendlyarm/BakeBit
PDF手册: http://wiki.friendlyarm.com/bakebit/bakebit_starter_kit_manual_cn.pdf