I experience some trouble trying to reuse the calibration profile with the BNO055. I’m using the evaluation board from adafruit with an Arduino Uno. I’m able to read the offsets and radius registers, then to save into the EEPROM of the ATmega328P and to load it afterwards. Nevertheless, it doesn’t always work when I try to restore these values into the registers after reboot.
I wrote a very simple code for expressing my problem, I initialise the sensor, then a just read the offsets registers (from 0x55 to 0x6A) once, then I restore the offset with 2 arrays (not in the same time, two differents to see the difference) I just defined in the setup function and then I read again the offsets registers to check if they have been correctly updated. These two arrays are:
My problem is that it works perfectly with the first Array, but with the second one the values are not correctly stored in the registers! How could it happen since the format is exactly the same? Are there some restrictions about the values allowed to be written in these registers?
I spent days being stuck on that problem, if someone can provide me an explanation I would be very grateful. I attached the code if someone wants to check.
Thank you in advance,
bosh_test_setoffset.ino (5.66 KB)