GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ReinhardLenz/BNO085_Ursina_visualization: For Testing of a BNO085 IMU sensor, with library Adafruit_BNO08x, a arduino program to output pitch, yaw and roll, and a python program using ursina to visualize the orientation of the Sensor in space

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
BNO085_ursina.h
BNO085_ursina.h
 
 
BNO085_ursina.ino
BNO085_ursina.ino
 
 
README.md
README.md
 
 
cuboid_draw_ursina_BNO085.py
cuboid_draw_ursina_BNO085.py
 
 

Repository files navigation

Testing the BNO085 SlimyVR IMU Sensor The photo illustrates the connection setup.

BNO085_slimyVR

The sensor communicates with the Arduino Mega via the I2C bus. When you pick up the BNO085 and rotate it left and right, or tilt it sideways and forwards, you will observe a red box on the computer screen that mirrors these rotational movements. Ensure that the baud rate is consistent in both the Python script and the Arduino program. The current baud rate is set at 9600.

adjustments

The Arduino program, utilizing the Adafruit_BNO08x library, sends data to the COM12 port as follows:

Serial started. Trying to initialize BNO08x. BNO08x Found! X: 0.02 Y: -0.57 Z: -90.12 X: 0.03 Y: -0.57 Z: -90.12 X: 0.03 Y: -0.58 Z: -90.12 X: 0.03 Y: -0.57 Z: -90.12 X: 0.03 Y: -0.57 Z: -90.12 X: 0.03 Y: -0.56 Z: -90.12 X: 0.03 Y: -0.56 Z: -90.11 X: 0.03 Y: -0.56 Z: -90.11 X: 0.03 Y: -0.55 Z: -90.11 ...

In this context, X, Y, and Z correspond to pitch, yaw, and roll respectively.

Roll-Yaw-Pitch

The Python program extracts this data and adjusts the pitch, yaw, and roll angles of the box accordingly:

cuboid.rotation_x = -z % 360 cuboid.rotation_y = -x % 360 cuboid.rotation_z = y % 360

BNO085-ursina

Simultaneously, the program draws the coordinate system, marking the lines as follows: X = 1 line, Y = 2 lines, and Z = 3 lines.

🎬 Watch the demo

Demo video

Visitor Count

About

For Testing of a BNO085 IMU sensor, with library Adafruit_BNO08x, a arduino program to output pitch, yaw and roll, and a python program using ursina to visualize the orientation of the Sensor in space

raikkulenz.kapsi.fi/compass-belt-navigation-wearable.php

Topics

adafruitarduinobno085imu-sensortestingursina

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.