Bosch Sensortec Community

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

    Is it possible to save calibration data of magnetometer to NVM in BMX160?

    Is it possible to save calibration data of magnetometer to NVM in BMX160?

    odeng250won
    New Poster

    Dear All

    I'm working with bmx160.

    As I  Know, the calibration data for Accelerometer and gyro sensor  can be saved to NVM using command, but there is no explain for magnetometer.

    If it is possible, let me know how to save calibration data of magnetometer.

    Thanks.

     

    3 REPLIES 3

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    It is true that BMX160 accel and gyro calibration offset values can be saved in the registers, but now in the NVM. This means that when BMX160 is powered off, those calibration offset values will be lost.

    It is not possible to save mag calibration offset values in either registers or NVM, because the mag BMM150 inside BMX160 doesn't have such feature. In addition the mag always needs to be calibrated before use if there is environment magnetic field change at the same location or the mag is moved to another location. Performing a few figure-8 motions in 3D space can calibrate the mag before using it for eCompass or 9DoF sensor fusion.

    Thanks.

    I understood there is no way to save magnetic data to NVM for BMX160.

    I have one more question.

    Is it possible to calibrate magnetometer without BSX library? 
    If so, please let me know the way or reference document?

    Thanks.

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    The magnetometer inside BMX160 is BMM150. You can use our API at https://github.com/boschsensortec/BMI160_driver to configure BMM150 to work in normal mode at 25Hz sampling rate and then get BMM150 data in the unit of uT. You can then search Google for "magnetometer calibration" or "9DoF sensor fusion". You will find a lot of articles and open source sample codes for magnetometer calibration and sensor fusion without using BSX library.

    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