Bosch Sensortec Community

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

    BMX055 accelaration values

    BMX055 accelaration values

    AJT
    Member

    Hi everyone,

    I'm using a BMX055 (connected to a STM32) but i'm a little bit lost with acceleration values read.

    I think that my BMX is well configured (you can check the picture that i've attached) and i read these raw values :

    acc_x = 4094

    acc_y = 4092

    acc_z = 250

    are these values in two’s-complement format ? or can i directly convert these values into g (acc_x_g = 1g = 4094*8/32767 = acc_y_g and acc_z = 0.06g), it should be 0 g for x and y axis and 1g for z right ?

    Also, i try to understand what is the bias accelorometer value but i'm not sure of what i've done : i've read 100 times the acc_x/y/z values then i get an average and i store the result into offset_xy/z registers. But the fact is these registers are only 8bit registers.

    Are the offset_x/y/z register values atutomatically substracted from x/y/z data registers when we read them ?

    Thanks for your help

    Regards

     

    1 REPLY 1

    Vincent
    Community Moderator
    Community Moderator

    BMX055 acceleration sensor only have 12 bits resolution.  so your x and y value should be minus not plus. Here your conversion goes wrong because you take whole 16 bits as sensor read out.   you can refer to datasheet page 50 and 51 about the definination of the acceleration data structure.

    From the configuration, you select as 8G range for the accleration which means 1g = 256 LSB. 

    You can directly refer to the API for the sensor to avoid such kind of issue.

    On page 30 of the BMX055 datasheet, the Figure 5 explain you how the offset register value works for the whole 12 bit accleration signal you read from sensor.  And the value you write into the offset register will be added up into the sensor output and stored into the data register directly.

    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