1 | NAxisMotion
|
---|
2 | -----------
|
---|
3 | The NAxisMotion.cpp and NAxisMotion.h files are C++ wrapper codes for the
|
---|
4 | BNO055.c and BNO055.h Sensor API. The wrapper code has been designed to
|
---|
5 | abstract the Sensor API and also to give an idea on how to use the
|
---|
6 | advanced features in the Sensor API. Apart from that it acts a bridge
|
---|
7 | between the Sensor API and the Arduino framework. Copy this library into
|
---|
8 | "yourArduinoInstallation"/libraries folder.
|
---|
9 |
|
---|
10 |
|
---|
11 | -------------------------------------------------------------------------------
|
---|
12 | There are 4 examples with the NAxisMotion library.
|
---|
13 |
|
---|
14 | - BareMinimum: This example code is as the name says the minimum code
|
---|
15 | required to use the NAxisMotion sensor shield.
|
---|
16 |
|
---|
17 | - Euler: This example code reads out the Euler angles in the NDoF mode to
|
---|
18 | the Serial Monitor. It also reads out the Calibration Status. Each sensor
|
---|
19 | and the System itself has its own Calibration Status. See below on how to
|
---|
20 | calibrate each of the sensors.
|
---|
21 |
|
---|
22 | - Accelerometer: This example code reads out the Accelerometer data and
|
---|
23 | associated data which are the Linear Acceleration data, which is the
|
---|
24 | Accelerometer data without the gravity vector, the other is the Gravity
|
---|
25 | Acceleration data, which is only the gravity vector.
|
---|
26 |
|
---|
27 | - Motion: This example code is a game to test how steadily you can move an
|
---|
28 | object, in this case it is the shield with the Arduino board. The goal is
|
---|
29 | to demonstrate on how to use the Any motion and No motion Interrupts.
|
---|
30 |
|
---|
31 | Calibration helps the Sensor identify its environment and automatically
|
---|
32 | determine offsets. Follow the instructions below to calibrate your sensor.
|
---|
33 |
|
---|
34 | - Gyroscope: Keep it steady and do not move it. Preferably keep it on a fixed
|
---|
35 | surface such as a table.
|
---|
36 |
|
---|
37 | - Accelerometer: Rotate the shield slowly and pause at every 45deg for a
|
---|
38 | second. Rotate one 1 axis at a time. Preferably rotate along 2 axes.
|
---|
39 |
|
---|
40 | - Magnetometer: Move the magnetometer in a large 8 like pattern a few times
|
---|
41 | gently.
|
---|
42 |
|
---|
43 |
|
---|