Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Arduino Nicla Sense ME 9DOF Quaternion output

    Arduino Nicla Sense ME 9DOF Quaternion output

    FlorianStorz
    New Poster

    Hello, 

    I am currently working on a project where I want to read out 9DOF (acc+gyro+mag) orientation data as quaternions. Until now, I worked with the BNO055 which worked perfect so far. Since I heard, that the BNO055 is not recommended for new design, I wanted to find an active replacement. My search led me to the BHI206AP in combination with the BMM150 magnetometer to get the 9DOF. These products are both on the Arduino Nicla Sense ME, so I thought why not start testing on the Arduino. When I read through the arduino documentation for the Nicla board, I was able to find information regarding the offered libraries and functions to retrieve IMU orientation data from the BHI260AP. Unfortunately what I could not find, was any information on how to fuse the IMU data from the BHI260AP with the magnetometer data from the BMM150. The datasheet from the BHI260AP clearly shows, that this is generally possible and that the BSX fusion library is also on integrated in the BHI260AP.  This brings me to my question:

    How can I retrieve 9DOF orientation data in quaternions from the BHI260AP+BMM150 on the Arduino Nicla Sense ME? 

    Thanks in advance for any help regarding my question, I really appreciate it!

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi FlorianStorz,

    According to your description, you can use the BHI260AP, BHI360/BHI380 shuttle board.
    https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board...
    https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board...
    https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board...
    BHI260AP shuttle board integrates BHI260AP and BMM150. The BHI360/BHI380 shuttle board integrates BHI360/BHI380 and BMM350, and 9doF can be obtained from them, and the hardware and software are more simplified compared to Nicla Sense Me.

    In addition, Nicla Sense Me also supports outputting 9doF, refer to the example on Github https://github.com/arduino/nicla-sense-me-fw/blob/main/Arduino_BHY2Host/examples/Orientation/Orienta...

    Hi @BSTRobin

    thank you for your fast response. Maybe I should have mentioned that I already bought the nicla board and would also prefer to use it because of the onboard BLE solution, that it provides. 

    So I would be very thankful, if you could povide some more details regarding the nicla board. Unfortunately, the github link in your response does not give me any more ideas. If I understood it right, the Orientation.ino file only computes orientation data in euler format, because it uses an instance of the SensorOrientation class. Please correct me, if I am wrong about that. 

    Thanks in advance for your help, I really appreciate it!

    Hi FlorianStorz,

    If you only want to use Nicla Sense ME board and want to get a quaternion output of 9doF, you can refer to example https://docs.arduino.cc/tutorials/nicla-sense-me/cheat-sheet#quaternion-rotation by using the virtual sensor ID SENSOR_ID_RV to obtain the data you want.

    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