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

From FriendlyELEC WiKi
Jump to: navigation, search
(如何在开发板上使用BakeBit)
(安装BakeBit软件)
Line 12: Line 12:
 
::[[File:NEOHubConnect.jpg| frameless|600px|NEOHubConnect]]<br />
 
::[[File:NEOHubConnect.jpg| frameless|600px|NEOHubConnect]]<br />
  
==安装BakeBit软件==
+
==Install BakeBit Package==
 
+
* Connect your NanoPi NEO/AIR to the internet, open a terminal on your NanoPi NEO/AIR from SSH login and download the BakeBit source code from github:
* 第1步 - 通过ssh,或者串口终端进入开发板的命令行,从 github 上下载BakeBit代码:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd  ~
 
cd  ~
Line 20: Line 19:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第2步 - 使用如下命令在开发板上安装BakeBit:
+
* Run the installation script for BakeBit:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
cd BakeBit/Script
 
cd BakeBit/Script
Line 27: Line 26:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第3步 - 重启开发板:
+
* Reboot your board after installation is finished:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
reboot
 
reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* 第4步 - 验证BakeBit是否正常工作:
+
* Verify BakeBit Functions:
将LED配件连接到NEO-Hub上的D3插座,在命令行执行以下命令操作LED: <br />
+
Connect a BakeBit Starter Kit’s LED module to the NEO-Hub’s D3 interface and run the following command on the NanoPi NEO’s command line: <br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
python ~/BakeBit/Software/Python/grove_led_blink.py
 
python ~/BakeBit/Software/Python/grove_led_blink.py
 
</syntaxhighlight>
 
</syntaxhighlight>
看到LED闪烁,恭喜你,BakeBit已经为你准备好了!
+
If the LED is blinking your BakeBit is proved to be working.
  
 
==BakeBit Starter Kit==
 
==BakeBit Starter Kit==

Revision as of 12:43, 11 December 2016

查看中文

1 Introduction to BakeBit

The BakeBit Starter Kit is a development kit composed of various sensor modules. This kit contains hardware extension boards: a NEO-Hub, sensor modules and etc, and a software utility: BakeBit.
The BakeBit modules can be easily connected to and work with FriendlyElec’s Nano boards. They support digital interfaces, analog interfaces, I2C interfaces and etc.

Bakebit


2 Connect NEO-Hub Board to NanoPi NEO/AIR

Currently the BakeBit modules work with FriendlyElec's NanoPi NEO and NanoPi NEO Air.
Use male pin-headers to connect your NanoPi NEO/AIR to the NEO-HubNEO-Hub:

NEOHubConnect

3 Install BakeBit Package

  • Connect your NanoPi NEO/AIR to the internet, open a terminal on your NanoPi NEO/AIR from SSH login and download the BakeBit source code from github:
cd  ~
git clone https://github.com/friendlyarm/BakeBit.git
  • Run the installation script for BakeBit:
cd BakeBit/Script
chmod +x install.sh
./install.sh
  • Reboot your board after installation is finished:
reboot
  • Verify BakeBit Functions:

Connect a BakeBit Starter Kit’s LED module to the NEO-Hub’s D3 interface and run the following command on the NanoPi NEO’s command line:

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

If the LED is blinking your BakeBit is proved to be working.

4 BakeBit Starter Kit

BakeBit Starter Kit是一个基础套件,包含了适用于NanoPi NEO的NEO-Hub扩展板及12个传感器。
下表列出了该套件所包含的传感器:

1 BakeBit-Button
BakeBit - Button01.jpg
按钮开关模块

连接方式: 连接到数字接口 D3 或D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_buzzer.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Buzzer

2 BBakeBit-Buzzer
BakeBit - Buzzer.jpg
蜂鸣器模块

连接方式: 连接到数字接口 D2 ~ D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_button.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Button

3 BakeBit-Green LED
BakeBit - Green LED.jpg
绿色的LED发光二极管模块,亮度可调节

连接方式: 连接到数字接口 D2 ~D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Green_LED

4 BakeBit-JoyStick
BakeBit - JoyStick.jpg
摇杆模块

连接方式: 连接到模拟接口 A0 ~D2
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_prj_UIControl_via_Joystick.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_JoyStick

5 BakeBit-LED Bar
BakeBit - LED Bar.jpg
多彩LED模块,由五个多彩LED发光二极管组成

连接方式: 连接到数字接口D3或D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_ledbar.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_LED_Bar

6 BakeBit-Light Sensor
BakeBit - Light Sensor.jpg
光敏电阻模块

连接方式: 连接到模拟接口A0~A2
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_light_sensor.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Light_Sensor

7 BakeBit-OLED 128X64
BakeBit - Button01.jpg
单色OLED屏幕 (0.96寸、128x64分辨率)

连接方式: 连接到I2C接口
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_128_64_oled_test.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_OLED_128x64

8 BakeBit-Red LED
BakeBit - Red LED.jpg
红色LED模块,亮度可调节

连接方式: 连接到数字接口 D2 ~D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_led_blink.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Red_LED

9 BakeBit - Rotary Angle Sensor
BakeBit - Rotary Angle Senso.jpg
电位器

连接方式: 连接到模拟接口 A0~A2
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_rotary_angle_sensor.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Rotary_Angle_Sensor

10 BakeBit - Servo
BakeBit - Servo.jpg
舵机模块

连接方式: 连接到数字接口 D3或D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_servo.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Servo

11 BakeBit - Sound Sensor
BakeBit - Sound Sensor.jpg
声音检测模块,用于检测声音信号

连接方式: 连接到模拟接口A0~A2
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_sound_sensor.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Sound_Sensor

12 BakeBit - Ultrasonic
BakeBit - Ultrasonic.jpg
超声波模块,用来探测障碍物,并计算到障碍物距离

连接方式: 连接到数字接口D2~D5
示例源代码: https://github.com/friendlyarm/BakeBit/blob/master/Software/Python/bakebit_ultrasonic.py
WiKi网址: http://wiki.friendlyarm.com/wiki/index.php/BakeBit_-_Ultrasonic

5 其它相关资源

github项目网址: https://github.com/friendlyarm/BakeBit
PDF手册: http://wiki.friendlyarm.com/bakebit/bakebit_starter_kit_manual_cn.pdf