Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BNO055 Sensor Calibration reuse - magnetometer not calibrated

    BNO055 Sensor Calibration reuse - magnetometer not calibrated

    paschaef
    Member

    Der Bosch Sensortec Team

    I'm testing a BNO055 shuttle board and I'm trying to reuse my calibration values after a Reset/Power-on.
    To obtain the calibration values I run the BNO55 in NDOF mode and perform the calibration as described in this video.
    I poll the calibration status registers with the corresponding function from the bno055.c driver:

    bno055_get_accel_calib_stat(&a_status);
    bno055_get_gyro_calib_stat(&g_status);
    bno055_get_mag_calib_stat(&m_status);

    and wait until all status register report status == 3.
    To read out the calibration values, I set the BNO055 in CONFIG mode and call the function:

    bno055_read_accel_offset(&a_offset);

     (same for gyro and mag) from the driver file. The calibration offsets are stored in non-volatile memory.

    After a reset/power-on of the sensor I reconfigure the BNO055 using the previously obtained offsets by setting the operation mode to CONFIG mode, and write the offset values with:

    bno055_write_accel_offset(&a_offset);

    (same for gyro and mag). No error is reported from the driver.
    Howerver, when putting the BNO055 into NDOF mode and then checking the calibration status registers with bno055_get_accel_calib_stat(...) (same for gyro, mag and system) I obtain these values:

    • Accel calib status = 3
    • Gyro calib status = 3
    • Mag calib status = 0
    • System calib status = 3

    How can it be that the magnetometer is not configured after writing the corresponding offset values with the driver function? How is the system calibrated (system calib status = 3) but the the magnetometer remains uncalibrated?

     

    Thank you for your support.

    4 REPLIES 4

    Vincent
    Community Moderator
    Community Moderator

    the system calibration status is 3 means the save and load of offset values are proceed correctly.

    The saved parameters are only the estimated offset value. 

    So the default magnetic calibration status is still starts as 0 which means we need to recalculate the magnetic calibration status. 

    The sensor calibration module are always running in background,   so it will not affect the sensor output after loading the offset parameters. 

    Thanks for the reply

     

    This means, after writing all offset/radius registers and the system calibration status reports a value of 3, the sensor is ready to use?

    Vincent
    Community Moderator
    Community Moderator

    Yes, if the system calibration level is 3,  then sensor is ready to use

    Thanks

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist