Skip to content
Reading values on a Bela (http://bela.io) from the 9-DOF I2C board from Adafruit (https://learn.adafruit.com/nxp-precision-9dof-breakout/overview)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Adafruit_FXAS21002C.cpp
Adafruit_FXAS21002C.h
Adafruit_FXOS8700.cpp
Adafruit_FXOS8700.h
LICENSE
README.md
render.cpp

README.md

Bela integration of the Adafruit FXOS8700 and FXAS21002C 9-DOF breakout board

Reading values on a Bela (http://bela.io) from the I2C board from Adafruit (https://learn.adafruit.com/nxp-precision-9dof-breakout/overview)

Getting Started

Connect the 9-DOF sensor to the I2C pins on the Bela. Put the code in a project (I use the project name Adafruit_IMU) on your Bela and run via IDE or Bela script (may require the better-i2c branch for the moment 2018-03-12) to compile. Then while logged in on the Bela through ssh into the bela using ssh root@192.168.7.2 you have to manually stop the process to free the IDE pkill -9 Adafruit_IMU (or whatever you call your project)

subsequently run the program by going to the folder it is in (e.g. ~/Bela/projects/Adafruit_IMU) and run it ./Adafruit_IMU Then run your other code through the IDE. Press CTRL+C to stop the program.

Built With

I used code from the Adafruit Arduino libraries:

There is also a slightly adapted version of the Madgwick sensor fusion algorithm available here:

License

The code in Adafruit_FXOS8700.cpp/.h and Adafruit_FXAS21002C.cpp/.h is licensed under the MIT License in accordance with the Adafruit original license - see the LICENSE.md file for details. The code in render.cpp is licensed under LGPL 3.0 in accordance with the Bela examples code it was based on.

You can’t perform that action at this time.