Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI160B and BMM150 9-DOF application check

    brettCM
    Occasional Visitor

    BHI160B and BMM150 9-DOF application check

    Hi!

    We are not necessarily planning on using 9-DOF (or even magnetometer) in our current devices, but I would like clarification and assurance that our understanding of their setup is correct. I'd greatly appreciate you review this process and point out any mistakes ijn our understanding.

    If we ever want 9-DOF with all the bells and whistles, we’ll need to

    1. Find orientation matrix of BHI and mag sensor relative to layout on the board. Ensure this gets uploaded to the Fuser Core at production
      • This should allow us to receive back correct ENU convention quaternions, euler angles etc.
    2. Run a calibation routine at production for the ENU convention data and flash to BHI. The calibration routine involves some very particular movements, like doing a figure 8 with the unit, rotating at 90 degree increments... all explained in a Bosch youtube video
      • We have, after this point, a 9-DOF calibrated ENU space device that can output quaternions, game vectors etc... assuming we have also flashed the correct firmware on to it at each startup
    3. Boardunit is then fit to an end system sturdily once, in a near-arbitrary manner by end user e.g. ENU coordinates are almost never going to be aligned with system movement coordinates
    4. The user is instructed to ensure the system as a whole is as near perfectly level as possible, which we have means of allowing them to do. They press a calibrate button and we use the current output stream to manually generate a transformation matrix of our own
    5. Note that the orientation matrix isn’t for telling the Bosch sensors how they exist in 3d space, but instead how they are laid out with respect to each other on a board. For the case where, for example, the board unit has been fit to an end system with Zboard as some arbitrary vector in the ENU X,Y,Z convention, we will then have to conduct our own transformations with the previously determined transfromation matrix on the output data so the standard read out of pitch, roll and yaw are then mapped to actual system pitch, roll and yaw.

    Does this make sense? Have we got the right idea? We're especially not sure about step 4 and 5, and whether there is a way the Bosch sensors can be instantly remapped that can replace the steps. Or do I always have to provide a means to perform a calibration step after installation so that we can convert the yaw, pitch and roll in ENU space to yaw, pitch and roll in system space?

    1 REPLY 1
    FAE_CA1
    Community Moderator

    Re: BHI160B and BMM150 9-DOF application check

    Hi,

    Thanks for your inquiry. Sorry for the late response.

    I am not sure about your application. But the process for BHI160B + BMM150 should be like below,

    1. Design your own PCB so that BHI160B x/y/z are aligned with BMM150 x/y/z which means that they are orthogonal.

    2. Install your PCB into your casing where you define your casing X/Y/Z body axes and make sure sensors' x/y/z are parallel to X/Y/Z axes.

    3. Determine the axis remapping matrix for accel, gyro and mag with respect to casing X/Y/Z axes.

    4. Input the remapping matrix to BHI160B every time after it is powered on.

    5. BHI160B + BMM150 9DOF sensor fusion ENU is with respect to the casing body Y axis. As long as the axis remapping matrix are correct the sensor fusion results such as Euler angles, rotation vector, etc. from BHI160B + BMM!50 9DOF should be always correct for ENU.

    6. In your MCU firmware you can always check the sensor calibration status. There are two bits for accel, gyro and mag respectively. 0b00 means that sensor is not calibrated. 0b01 and 0b10 mean that sensor is being calibrated. 0b03 means that sensor is fully calibrated and ready to go. Therefore, your MCU knows if the accel, or gyro, or mag needs to be calibrated or not. If yes, then your system can notify the user to perform figure-8 motion to calibrate the mag for example.

    7. Repeat step 6.

    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