chkworks / scbno055

SuperCollider plugin for reading BNO055 IMU on Bela

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCBNO055

Author: Johannes Burström

A BNO055 sensor plugin for Bela and SuperCollider

Requirements

  • CMake >= 3.7
  • SuperCollider source code

Installing

If you don't want to build the extension yourself, there is a compiled binary in the Extensions directory. Install it from the host computer (with the Bela attached), using the bela-install.sh script in the repository root. Instead of using the script, you can also move the extension manually. Simply copy the folder Extensions/BNO to ~/.local/share/SuperCollider/Extensions, using FileZilla and the SSH credentials of your Bela.

Afterwards you should be able to load the example at the very bottom of scbno055-main/plugins/BNO/HelpSource/Classes/BNO.schelp on your Bela.

Building

Here are instructions for building on the Bela. Another option is to cross-compile, for example with the xcBela environment. See its CMake faq for instructions on how to do that.

Building on Bela

Clone the project. If your Bela has internet connection:

cd /root
mkdir src && cd src
# Clone a shallow copy of the SuperCollider repo
git clone --depth 1 https://github.com/supercollider/supercollider
# Clone the scbno055 repo
git clone https://github.com/jpburstrom/scbno055

If you haven't set up an internet connection on your Bela, you can, with the Bela attached, clone the repo on the host computer and copy the whole directory over to your Bela, eg using rsync:

# Clone a shallow copy of the SuperCollider repo
git clone --depth 1 https://github.com/supercollider/supercollider
# Clone the scbno055 repo
git clone https://github.com/jpburstrom/scbno055
rsync -avh supercollider scbno055 root@bela:/root/src/

Ssh to your Bela, then:

cd /root/src/scbno055
mkdir build
cd build

Then, use CMake to configure, build and install it:

cmake .. -DBELA=On -DCMAKE_INSTALL_PREFIX=/root/.local/share/SuperCollider/Extensions -DCMAKE_BUILD_TYPE=Release -DSUPERNOVA=Off
cmake --build . --config Release --target install

It's expected that the SuperCollider repo is cloned at ../supercollider relative to this repo. If it's not: add the option -DSC_PATH=/path/to/sc/source.

About

SuperCollider plugin for reading BNO055 IMU on Bela

License:GNU General Public License v3.0


Languages

Language:C++ 79.4%Language:CMake 16.8%Language:SuperCollider 2.3%Language:C 1.3%Language:Shell 0.2%