adafruit_bno08x_rvc

A simple helper library for using the UART-RVC mode of the BNO08x IMUs

  • Author(s): Bryan Siepert

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_bno08x_rvc.BNO08x_RVC(uart, timeout=1.0)

A simple class for reading heading from the BNO08x IMUs using the UART-RVC mode

Parameters:
  • uart – The UART device the BNO08x_RVC is connected to.
  • timeout (float) – time to wait for readings. Defaults to 1.0

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 sensor

import 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 object

uart = busio.UART(board.TX, board.RX, baudrate=3000000, receiver_buffer_size=2048)
rvc = BNO08X_UART(uart)

Now you have access to the heading attribute

yaw, pitch, roll, x_accel, y_accel, z_accel = rvc.heading
heading

The current heading made up of

  • Yaw
  • Pitch
  • Roll
  • X-Axis Acceleration
  • Y-Axis Acceleration
  • Z-Axis Acceleration