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, 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 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
-
heading
¶ The current heading made up of
- Yaw
- Pitch
- Roll
- X-Axis Acceleration
- Y-Axis Acceleration
- Z-Axis Acceleration