Bosch Sensortec Community

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

    BMX160 read uncompensated magnetometer data

    BMX160 read uncompensated magnetometer data

    timmbo
    New Poster

    Hi all,

    I have a very short but important question:

    Ineed to read uncompensated magnetometer values from the BMX160 (no api compensation) in uT. Unfortunately I do not know the LSB to uT conversion factor on XY and on Z for the raw data. Is it just LSB * 0.3 for both? The result seems very inaccurate (compared to the temperature compensated values).

    According to datasheet:

    Range XY: +/- 1300uT, 13 bit signed integer -> I assumed -1300 / -4096 = 0.31738 as conversion factor (which seems to be quite correct when comparing it to compensated values)

    Range Z: +/- 2500uT, 15 bit signed integer -> I assumed -2500 / -16384 = 0.15258 as conversion factor (values cannot be correct)

    Can you please help about the conversion factor LSB to uT for raw data?

    Thanks in advance,

    Timm

    6 REPLIES 6

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi Timm,

    Sorry about my mistake. BMM150 x and y axes (based on Bosch flip-core technology) also use z axis (based on Hall effect) r_hall input value for temperature compensation.

    The factory trimmed dig_xyz1 value in each BMM150's NVM is used as a reference to the input of r_hall. If you don't want to do temperature compensation on BMM150 x/y/z axes, then you can pass constant r_hall = dig_xyz1 to those functions.

    Thanks.

    Hey there, thanks a lot for your excellent support! Everything clear now 🙂

    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