Bosch Sensortec Community

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

    Is it Possible to Manually Recalibrate the BNO055?

    Member

    Is it Possible to Manually Recalibrate the BNO055?

    I am using the BNO055 in accelerometer only mode and have saved calibration offsets to EEPROM. The calibration offsets are successfully restored upon powering on the device.

    Would it be possible to add a button (in software or hardware) that can be used to recalibrate the BNO? So when you press the button, the BNO resets its calibration values to 0 for system, gryo, accel, and mag and goes through the entire calibration process again. I've tried adding a button that enters a fusion mode and sets the calibration values to 0, but it seems like that isn't enough to make the BNO look for new offsets.

    The ideal solution would not require me to power off the device or load a separate firmware in order to recalibrate.

    EDIT: I took another look at the BNO055 Data Sheet 1.4 and saw in section 3.11.4 it mentions "the internal calibration routine". I think this calibration routine is what I would like to manually invoke.

     

    Thank you

    Tags (2)
    5 REPLIES 5
    Highlighted
    Community Moderator
    Community Moderator

    Re: Is it Possible to Manually Recalibrate the BNO055?

    Hi Hugh,

    BNO055 calibrators are always active, whenever it sees the right motion, it will update its calibration, there is no way to manually trigger it.

    Gyroscope calibration is quite straightforward and only requires the device to be still.
    Magnetometer calibration requires the device to rotate, it is also quite straightforward.
    What you can do is for accelerometer, simply perform your own calibration (e.g. at the press of the user button, read raw accel data and compare it with expected data) adn write it to the offset register. Any data written to the offset register is considered valid and immediately used.

    o_o
    Member

    Re: Is it Possible to Manually Recalibrate the BNO055?

    Hello, thank you for the reply!

    That makes sense to me. Now I am trying to figure out the difference between "raw" and "expected" values. I have the accelerometer set to an acceleration range of +/- 2G and I get my readings by using:

    bno.getVector(Adafruit_BNO055::VECTOR_ACCELEROMETER)

     then converting them to more usable degree angles.

     

    Is this the call to get the raw acceleration values? If not, could you point me in that direction?

    Thank you

    Community Moderator
    Community Moderator

    Re: Is it Possible to Manually Recalibrate the BNO055?

    Actually, I just double-checked and BNO055 does not have a raw data output.

    So what you can do is set the offset register to zero first, then read Accel data, calculate your own offset then set it to the correct value.

    The expected data depends how you perform your calibration. Assuming that you place the device on a flat surface parallel to the ground, it would be 0g, 0g, -1g..

    o_o
    Member

    Re: Is it Possible to Manually Recalibrate the BNO055?

    Ok I will give this some effort and let you know what happens.

    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