It was discovered that the Pitch data values from the module were changing for a fixed position of the sensor. The BNO055.js module was updated to correct this problem, the reset function and external clock functions were also added.
The attached program savCalBNO055.js is setup for a PICO connected to a BNO055 board. A normally open pushbutton connected from ground to pin B7 is used to save the calibration data to EEROM on the PICO. When all four of the calibration status indications equal 3, save the calibrations.
Once a calibration has been saved, the program has to be restarted. The presence of calibration in the EEROM is detected and they are read, displayed and loaded into the BNO055 chip. Here is and example:
sysstatus= 0
syscal= 0 Gyrcal= 0 Acccal= 0 Magcal= 0
sysstatus= 0
Calibration is defined
Aoffset=,-6,3,8,Moffset=,-14,90,-142,Goffset=,0,0,0,Aradius=,1000,Mradius=,816
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
BNO055 Module Improvements
24Jun2017
BNO055 Module Improvements 24Jun2017
The BNO055.js module was used to implement an application as described here:
Using an IMU to control an airplane image
http://forum.espruino.com/conversations/306319/
It was discovered that the Pitch data values from the module were changing for a fixed position of the sensor. The BNO055.js module was updated to correct this problem, the reset function and external clock functions were also added.
The attached program savCalBNO055.js is setup for a PICO connected to a BNO055 board. A normally open pushbutton connected from ground to pin B7 is used to save the calibration data to EEROM on the PICO. When all four of the calibration status indications equal 3, save the calibrations.
Once a calibration has been saved, the program has to be restarted. The presence of calibration in the EEROM is detected and they are read, displayed and loaded into the BNO055 chip. Here is and example:
Here is a data example.
2 Attachments