Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to detect crash using BMI 323?

    How to detect crash using BMI 323?

    gunbu99
    New Poster

    hello

    I'm trying to detect crash using bmi 323.

    I used anymotion feature but it doesn't work as I thought

    I think when crash occurs, imu's accelerometer may be 4g.  

    therefore I set registers below

     

    // use feature engine

    FEATURE_IO2 = 0x012C

    FEATURE_IO_STATUS = 0x0001

    FEATURE_CONTROL = 0x0001

    // normal mode on

    ACCL_CONF = 0x42a8 //acc_mode = normal mode, bw : odr/4, acc_range : 8g, acc_odr :100Hz

    GYRO_CONF = 0x0000

    // any motion setting

    EXT_ANYMO_1 = 0x1800 // acc_thres : 4g

    FEATURE_IO0 = 0x0038 // any motion x,y,z int enable

    FEATURE_IO_STATUS = 0x0001

    // interrupt

    INT_MAP1 = 0x0004 // interrupt mapping, any motion out: INT1

    IO_INT_CTRL = 0x0005 // INT1 active high, push-pull, enable

    GEN_SET_1 = 0x0011 // event report mode enable, interrupt hold time duration : 40ms

     

    it doesn't work. there's no interrupt while I swing board with imu

    if acc_thres is under 10/512g, interrupt happen

    I don't understand why this works like that

    plz help me. I want to detect crash using  bmi 323

     

    6 REPLIES 6

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Please see the attached C file and screenshot of BMI323 accel. We can see any-motion working fine on our side.

    Thanks.

    Hi @gunbu99

     

    To solve your issue, let's check step by step.If you set to 10/512g, you should get any motion interrupt very easily.

    Surely, your current situation is not normal and your register setting info shouldn't be enough.

    Which environment are you using it? Software, Hardware.

    1) Are you using our EVM board and shuttle board for bmi323?

         - If you are using our EVM board ( app3.x + BMI323 shuttle board), are you using COINES or DD2.1?

         - If you aren't using our EVM board, are you using our API as @FAE_CA1  mentioned? The attahced file is our any motion example code to test 4G threshold and should work for you.

              - If you aren't using our API, can you provide your whole code for BMI323? You can't run it properly using only above code.

              - I also can't see your duration for any motion in your code. You can test it with low value of duration.

    Thank you.

    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