kelvinabrokwa / bno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BNO055

This repo holds an Arduino sketch for reading data from a BNO055 Absolute Orientation Sensor, serializing it, and writing it out to serial. It also has a python library for reading that serial output, deserializing it, and making it available as an iterable.

Usage

from bno import BNO

for event in BNO():
    print(event.acceleration.x)
    print(event.orientation.pitch)
    print(event.temperature)
    # do more things with event

Events of type BNOEvent have the following properties

  • acceleration: m/s^2 (.x, .y, .z)
  • gyro: rad/s (.x, .y, .z)
  • magnetic: micro Tesla (.x, .y, .z)
  • orientation: degrees (.roll, .pitch, .heading)
  • temperature: degrees Celsius

Dependencies

Installing

python setup.py install

About


Languages

Language:Python 66.0%Language:C++ 34.0%