Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA253 interrupt threshold

    BMA253 interrupt threshold

    ito_yoshinobu
    Occasional Visitor

    I am using BMA253.

    I want to output an interrupt using a high-G interrupt.

    The board is usually vertical.

    High_en_z, high_en_x interrupts are activated.

    A high-G interrupt is output by tilting the board from the above state.

    The angle I want to detect is 45 degrees and the acceleration is 0.707G.

    Since it is set to the 4G range, the threshold value (address 0x26) is Expect it to work correctly in 0x2D.

    However, the interrupt occurs at a smaller threshold value (0x23).

    Does anyone know the cause and countermeasures?

    1 REPLY 1

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    The issue comes from offset compensation and cross-axis sensitivity. If BMA253 Y axis is pointing to the sky or ground, then Y axis should be +1g or -1g respectively. You can run fast offset compensation and then store the offsets back to NVM. Then when you tilt BMA253 X axis or Z axis more than 45 degrees or +/-0.707g, the high-g interrupt should trigger. This process is so called inline calibration. Please see the attached PDF file for more information where you should set Y=+1g or -1g and X=Z=0g for fast offset compensation.

    In addition, when you tilt your device's x or z axis, BMA253 X or Z axis may not be aligned with your device's x and z axis. This is so called cross-axis sensitivity or misalignment. The best way is to do 6-position BMA253 calibration and store total 12 parameters (3x3 sensitivity and cross-axis sensitivity matrix and 3 offsets) into your MCU's flash memory. Then you always need to read BMA253 raw data and apply the 12 calibration parameters to get final x/y/z values. Then you can calculate the tilt angle all the time to see if your device is really tilted more than 45 degrees on x and z axis.

    The last reason is due to the BMA253 noise. you will not get the exact 45 degrees high-g interrupt. Instead, you will see a lot of interrupts at 45 degree tilt angle on and off. To avoid this situation, you should enable high-g hysteresis so that you won't get too many interrupts.

    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