Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Handle custom relative orientation between BHI260AP and BMM150

    Handle custom relative orientation between BHI260AP and BMM150

    Gianlucamilani
    New Poster

    Dear Community,

    I included BHI260AP + BMM150 magnetometer in my custom PCB design. 

    Due to space constraints, I mounted the two devices in opposite layers (BHI260 AP top, BMM150 bottom)

    The relative orientation of the two devices is the following:

    Top layer (top view): you can see the BHI260AP with the pin 1 indicated in blue

    Gianlucamilani_0-1667425397314.png

     

    Bottom layer (top view: seen from top): you can see the BMM150 with the pin 1 indicated in green

    Gianlucamilani_1-1667425545682.png

     

    My question is: how to take into consideration this aspect? where can I configure it?

    Thank you very much,

    best regards

    Gianluca

     

     

     

     

     

    6 REPLIES 6

    BSTRobin
    Community Moderator
    Community Moderator

    Hi Gianlucamilani,

    As you are designing PCB board, you could refer HSMI document: https://www.bosch-sensortec.com/media/boschsensortec/downloads/handling_soldering_mounting_instructi...

    Do you mean you would like to know how to do axis mapping of BHI260AP and BMM150?

    Dear Robin,

    thanks for your reply.

    I would like to know how to take in consideration the fact that in my PCB the BMM150 has a specific relative orientation with respect to BHI260AP, that for instance is different from the one used by the BHI260AP shuttle board . 

    Should I set some parameters via firmware? Which ones in that case? Should I do anything else?

    (Actually, I think this is what you refer to with "axis mapping ", but I am not sure)

    Thanks,

    best regards,

    Gianluca

     

    I am waiting almost 2 months for an answer, this support forum is not what I expected.

    Hi Gianlucamilani,

    Sorry for the delayed reply.
    Axis mapping can be set through the following software code. In order to know the axis mapping matrix, you must also know what your target coordinates are? In this way, the physical coordinates of the sensor can be mapped to the target coordinates to generate a matrix.
    struct bhy2_orient_matrix acc_matrix = {1, 0, 0, 0, 1, 0, 0, 0, 1};
    struct bhy2_orient_matrix gyro_matrix = {1, 0, 0, 0, 1, 0, 0, 0, 1};
    struct bhy2_orient_matrix mag_matrix = {1, 0, 0, 0, -1, 0, 0, 0, -1};
    bhy2_set_orientation_matrix(BHY2_SENSOR_ID_ACC, acc_matrix, &bhy2);
    bhy2_set_orientation_matrix(BHY2_SENSOR_ID_GYRO, gyro_matrix, &bhy2);
    bhy2_set_orientation_matrix(BHY2_SENSOR_ID_MAG, mag_matrix, &bhy2);

    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