adafruit_bno08x_rvc
A simple helper library for using the UART-RVC mode of the BNO08x IMUs
Author(s): Bryan Siepert
Implementation Notes
Hardware:
Adafruit 9-DOF Orientation IMU Fusion Breakout - BNO085 (BNO080) (Product ID: 4754)
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- class adafruit_bno08x_rvc.BNO08x_RVC(uart: UART, timeout: float = 1.0)
A simple class for reading heading from the BNO08x IMUs using the UART-RVC mode
- Parameters:
Quickstart: Importing and using the device
Here is an example of using the
BNO08X_UART
class. First you will need to import the libraries to use the sensorimport board import busio from adafruit_bno08x_rvc import BNO08x_RVC
Once this is done you can define your
busio.UART
object and define your sensor objectuart = busio.UART(board.TX, board.RX, baudrate=3000000, receiver_buffer_size=2048) rvc = BNO08X_UART(uart)
Now you have access to the
heading
attributeyaw, pitch, roll, x_accel, y_accel, z_accel = rvc.heading