Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMA253 orient theta in Orientation Recognition

    BMA253 orient theta in Orientation Recognition

    Coleman
    New Poster

    Hello,

    I am using BMA253.

    I have set the orientation configuration as below.

    orientation mode to symmetrical

    orientation hysteresis to +/-10 degrees.

    orientation theta to 45 degrees.

    orientation_up_en to false

     

    if I set orientation updown enable to true, the orientation interrupt triggered but it wasn't what I wanted to achieve.

    I wanted to know the upward looking and down ward looking when the device is tilted over 45 degrees.

    Or when the device is in the blocking theta for the X-Y plane's orientation interrupt.

    Is there a way to do it?

    Flat detection seems it works when the z-axis is in +1g direction only, and doesn't work on the -1g direction.

    Thank you in advance.

    3 REPLIES 3

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    Please see the attached two PDF files about BMA253 orientation and flat interrupts.

    Thanks.

    Hello

    Thank you for the reply.

    It is kind of confusing, but I will try my best to explain.

    The "How to use BMA253 orientation interrupt for screen rotation.pdf" says orient_theta blocks the interrupt for X-Y plane rotation.

    But not for the z-axis.( I am not sure )

    The upward looking and downward looking reflects whether acc_z is positive or negative.

    I have a image that I took during my actual rotation of the device.

    image2.png is rotation from Portrait upright to Landscape left, and it results the same as what I wanted to achieve. 

    image1.png is tilting the device at a Portrait upright position, and is doesn't result the way I wanted.

    It seems that in image1.jpg, I can't change when the orientation interrupt to happen.

    I would be glad to know if I can change the orientation interrupt timing for upward looking or downward looking.

     

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    BMA253 orientation interrupt gives you rough estimation if the device has changed its orientation or not. Since you can get BMA253 x/y/z data at the same time, you can quickly calculate the pitch and roll angle to verify the real current orientation after the orientation interrupt is generated. Then you can determine if you need to change the screen orientation or not.

    Please fine tune the parameters such as theta, hysteresis, etc. to achieve what you really want.

    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