11/*
22 Using the BNO080 IMU
3+
4+ By: Boštjan Čadež (@badVibes--)
5+ Date: April 3rd, 2020
6+
7+ Based on earlier examples
38 By: Nathan Seidle
49 SparkFun Electronics
510 Date: December 21st, 2017
813 Feel like supporting our work? Buy a board from SparkFun!
914 https://www.sparkfun.com/products/14586
1015
11- This example shows how to output the i/j/k/real parts of the rotation vector.
12- https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation
16+ This example shows how to use the gyro integrated rotation vector
1317
1418 It takes about 1ms at 400kHz I2C to read a record from the sensor, but we are polling the sensor continually
1519 between updates from the sensor. Use the interrupt pin on the BNO080 breakout to avoid polling.
1620
1721 Hardware Connections:
1822 Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
1923 Plug the sensor onto the shield
20- Serial.print it out at 9600 baud to serial monitor.
24+ Serial.print it out at 115200 baud to serial monitor.
2125*/
2226
2327#include < Wire.h>
@@ -27,7 +31,7 @@ BNO080 myIMU;
2731
2832void setup ()
2933{
30- Serial.begin (9600 );
34+ Serial.begin (115200 );
3135 Serial.println ();
3236 Serial.println (" BNO080 Read Example" );
3337
@@ -39,7 +43,7 @@ void setup()
3943// // Start i2c and BNO080
4044// Wire.flush(); // Reset I2C
4145// IMU.begin(BNO080_DEFAULT_ADDRESS, Wire);
42- // Wire.begin(4, 5);
46+ // Wire.begin(4, 5);
4347// Wire.setClockStretchLimit(4000);
4448// //=================================
4549
0 commit comments