Bosch Sensortec Community

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

    BMI088 wrong Accelerometer values

    BMI088 wrong Accelerometer values

    ZeeshanAziz
    Member

    Hello,

    I want to ask that why am I getting wrong accelerometer values. I am calculation roll using the formula atan2(z,x) and getting degrees with minor error when sensor is in 3g configeration. When I configure it to 12g then the sensor gives wrong values from 0 degree to 5 degree because it gives values of x-axis in negative. When in 3g configeration, the sensor goes like this: 0, 1, 2, 1, 3, 2, 4, 3, 5...... The sensor drops a degree and then increment the angle. There is error in these values because accelerometer is not giving correct values.

     

    Any suggestion for my problem?

    4 REPLIES 4

    shellywang
    Occasional Contributor

    Hi ,

    There are some suggestions  ,hope it will be  helpful to solve your  problem:

    1.Sensitivity under 3g range and 12g range are different. Resolution for roll angle measurement are different.

    2.Suggest calibrate the accelerometer under 3g and 12g mode. Remove the offset from measurement values.

    3.Test again , please provide data log (accelerometer  X, Y, Z)

     

    Thanks for replying. When I am rotating the sensor in potive x-axis direction, then the values of accelerometer should also increase. But instead of continously increasing, the values increases as well as decreases. You can see the datalog attached. In the data log, first three columns are of accelerometer x, y and z respectively. And 8th column is of "Roll" in degrees. These are the rotation from 0 to 8 degree approximately.

    @ZeeshanAziz

    Is this a duplicate issue from this one ? If yes, could you please marked the thread as "solved" ?

    Yes. Thanks a lot. Found problem in the conversion of the data from the sensor. Was using signed short int, which was causing the problem. I changed it to signed int and it solved my problem. Thanks for the help.   ^_^

    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