BakeBit Starter Kit with NanoPi NEO/NEO2/NEO Air
Contents
1 Introduction to BakeBit
The BakeBit Starter Kit is a development kit composed of various sensor modules. This kit contains hardware extension boards: a NanoHat Hub, sensor modules and a software utility: BakeBit Library.
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.
2 Connect NanoHat 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 NanoHat Hub:
3 FriendlyElec Boards and Image Files that Work with BakeBit
Here is a table of the FrendlyElec boards and their image files that work with BakeBit. These image files are under the "officail-ROMs" directory of the download link. Make sure the image file that runs on your board supports BakeBit before you want to play BakeBit with your board.:
Board Type Image File Download Link 1 Download Link 2 NanoPi NEO2 nanopi-neo2_ubuntu-core-xenial_4.11.0_YYYYMMDD.img.zip baidu space MediaFire NanoPi NEO2 nanopi-neo2_ubuntu-core-xenial_3.10.65_YYYYMMDD.img.zip baidu space MediaFire NanoPi NEO nanopi-neo_ubuntu-core-xenial_4.11.0_YYYYMMDD.img.zip baidu space MediaFire NanoPi NEO nanopi-neo_ubuntu-core-xenial_3.4.39_YYYYMMDD.img.zip baidu space MediaFire NanoPi NEO Air nanopi-neo-air_ubuntu-core-xenial_4.11.0_YYYYMMDD.img.zip baidu space MediaFire NanoPi NEO Air nanopi-neo-air-ubuntu-core-qte-sd4g-YYYYMMDD.img.zip baidu space MediaFire
4 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 sudo ./install.sh
- Reboot your board after installation is finished:
reboot
5 Run Code Sample in Python
Connect a BakeBit Starter Kit’s LED module to the NanoHat Hub's D3 interface and run the following command on a master device's command line:
python ~/BakeBit/Software/Python/bakebit_led_blink.py
If the LED is blinking your BakeBit is proved to be working. For more code samples in Python you can check them in the directory ~/BakeBit/Software/Python/ .
6 Run Code Sample in C
Connect a BakeBit Starter Kit’s LED module to the NanoHat Hub's D4 interface and run the following commands on a master device's command line:
cd ~/BakeBit/Software/C/ gcc bakebit_digital_write.c bakebit.c -Wall ./a.out
If the LED is blinking your BakeBit is proved to be working. For more code samples in C you can check them in the directory ~/BakeBit/Software/C/ .
7 BakeBit Starter Kit
The BakeBit Starter Kit currently contains 12 sensor modules.
Here is a list of the sensor modules:
8 Resources
Project Page: https://github.com/friendlyarm/BakeBit
User's Manual in PDF: http://wiki.friendlyarm.com/bakebit/bakebit_starter_kit_manual_en.pdf
9 Update Log
9.1 December-11-2016
- Released English version
9.2 Jan-19-2017
- Renamed "NEO-Hub" to "NanoHat-Hub"
9.3 Jan-20-2017
- Renamed "NanoHat-Hub" to "NanoHat Hub"
9.4 May-24-2017
- Added section 3
9.5 May-29-2017
- Added sections 5 and 6