Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA456 any-motion/no-motion interrupts vs. ODR

    BMA456 any-motion/no-motion interrupts vs. ODR

    rearmimator
    Member

    Hi there,

     

    I wonder if there is any dependency between any-motion/no-motion interrupt generation and configured output data rate (ODR).

    Oddly enough, but no interrupts are generated when I configure ODR down below 12.5 Hz.

    Thus setting ODR in range from 6.25 Hz to 0.78 Hz cause no interrupt, no matter how long I wait or strong shake the board.

    Here is sample configuration at 3.12 Hz, which causes no interrupt with bma456_v2.12.8 release;

    === Get accelerator configuration successful ===
    odr = 8
    range = 1
    bandwidth = 2
    perf_mode = 1
    
    === Set accelerator configuration successful ===
    odr = 3
    range = 1
    bandwidth = 2
    perf_mode = 1
    
    === Get any-motion configuration successful === 
    axis_en = 0x0
    duration = 0x5
    threshold = 0xaa
    
    === Get no-motion configuration successful === 
    axis_en = 0x0
    duration = 0x5
    threshold = 0xaa
    
    === Set any-motion configuration successful === 
    axis_en = 0x7
    duration = 0x5
    threshold = 0x400
    
    === Set no-motion configuration successful === 
    axis_en = 0x7
    duration = 0x1f4
    threshold = 0xcc

     

    7 REPLIES 7

    Minhwan
    Community Moderator
    Community Moderator

    Hello, 

     

    Could you share your configuration part with me? 🙂 

    I'd like to check it. 

    Thank you. 

    Hi,

     


    @Minhwan wrote:

    Hello, 

     

    Could you share your configuration part with me? 🙂 

    I'd like to check it. 

    Thank you. 


    Sorry for late response.

    I just want to check with you whether configuration, that may be inferred from attached archive, is sufficient to reproduce the issue: 

    https://community.bosch-sensortec.com/varuj77995/attachments/varuj77995/bst_community-mems-forum/464...

    I will be happy to provide more information if needed.

     

    Here is an excerpt from on of the files:

    ODR := 6.25 Hz, duation = 5 s
    
    === Get power mode configuration successful ===
    adv_power_save = 1
    
    === Set power mode configuration successful ===
    adv_power_save = 1
    
    === Get power mode configuration successful ===
    adv_power_save = 1
    
    === Get accelerator configuration successful ===
    odr = 8
    range = 1
    bandwidth = 2
    perf_mode = 1
    
    === Set accelerator configuration successful ===
    odr = 4
    range = 1
    bandwidth = 2
    perf_mode = 1
    
    === Internal status register ===
    status = 0x1
    
    === Get accelerator configuration successful ===
    odr = 4
    range = 1
    bandwidth = 2
    perf_mode = 1
    
    === Get any-motion configuration successful === 
    axis_en = 0x0
    duration = 0x5
    threshold = 0xaa
    
    === Get no-motion configuration successful === 
    axis_en = 0x0
    duration = 0x5
    threshold = 0xaa
    
    === Set any-motion configuration successful === 
    axis_en = 0x7
    duration = 0x5
    threshold = 0x400
    
    === Set no-motion configuration successful === 
    axis_en = 0x7
    duration = 0xfa
    threshold = 0xcc
    
    === Get any-motion configuration successful === 
    axis_en = 0x7
    duration = 0x5
    threshold = 0x400
    
    === Get no-motion configuration successful === 
    axis_en = 0x7
    duration = 0xfa
    threshold = 0xcc
    X := 8196, Y := 101, Z := -163
    Shake the sensor in any direction

     

    Minhwan
    Community Moderator
    Community Moderator

    Hello, 

     

    I just check your setting, and your threshold is quite high for test. 

    === Set any-motion configuration successful === 
    axis_en = 0x7
    duration = 0x5
    threshold = 0x400

    Could you test with 0xAA ( default value)

    Please check my test code and also would be great you share with your code like this. 

    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