Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA400 interrupt firing when a shock is detected

    Highlighted
    New Poster

    BMA400 interrupt firing when a shock is detected

    Hello,

    I need to detect a shock in our PCB (Sometimes it is 10G, sometimes 14G or 16G and even higher). The shock is very short. I don't care about the acceleration value. I just want to detect that a shock has occured.

    Thus, I need to detect when one sample is above a threshold (lets say 10G). Configuring the BMA400 to 16G range, what is the best interrupt configuration for my purpose? (I tryed using the two generic interrupts to the same PIN, configuring inactivity detection, 12G and 14G reference , and 2G threshold, one sample duration, which should fire the interrupt when one sample is between 12 and 16G but some shocks are missed)

    Other questions:

    - Does the generic interrupt fire only when Actual_acce > (threhold+reference) ? or does is compare in absolute level ?  (reference - threshold)> Actual_acce > (threhold+reference). When testing, it seems to be above and below but the datasheet says: "the difference between actual acceleration and reference is calculated and compared against a threshold"

    - Does the generic interrupt system work at 800Hz?

    - When the BMA400 is configured at 16G range and current acceleration is higher. How does the generic interrupt system behave?

    Regards,

    1 REPLY 1
    Community Moderator

    Re: BMA400 interrupt firing when a shock is detected

    It’s right to use the generic interrupt to detect the shock.

    To make sure all the shocks from normal movements can be detected, you need to

    • Collect raw acceleration data and find the differences between normal movements and shocks.
    • Configure the parameters of the generic interrupt for shock detection.
      First, you need to check how short the shock will be, and then select the suitable ODR. At a higher ODR, you can define the sampling duration as more than one sample. 

     To prevent missing detection, you can try with lower reference, for example, ref= 0g, threshold = 2g (max_value@16g_range), and duration = 3~10 samples (depending on the ODR setting).

    With this configuration, the detecting formula is:

    actual_acc- 0g    > threshold(2g) (@3~10samples).

    So, the range of detection is (-16g, -2g) and (2g, +16g).

    The generic interrupt system can operate at 800Hz, but it can significantly consume higher current, and perform more calculations per second.

    When When the BMA400 is configured to the 16g range, the detection range is max. 16g, the higher acceleration will be saturated to +/-16g, and the calculation of generic interrupt will take +/-16g into consideration.

    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