Bosch Sensortec Community

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

    BNO055 USB stick Gyroscope raw data

    BNO055 USB stick Gyroscope raw data

    DavidR
    New Poster

    Hello,

    When we use the gyroscope in NDoF or IMU modes for example, we do not get the raw data that the gyroscope returns.
    We realize this by using the GYROONLY mode : for low angular speeds, the gyroscope behaves differently than in the NDoF and IMU modes.
    I am currently recovering the data from the usb stick on a python script, I would like to have both the gyroscope of the GYROONLY mode and the Euler angles of the M4G mode.
    I tried changing modes in a while loop but it takes about 0.2 seconds which is too much.
    Do you have a solution ? Or maybe you could explain to me how to use the magnetometer data from AMG mode to get Euler angles like M4G mode should. What I don't understand is that the displayed values of the magnetometer in the AMG and M4G modes are not the same!

    3 REPLIES 3

    Vincent
    Community Moderator
    Community Moderator

    The AMG mode is used to output the raw data of three MEMS sensor individually. 

    The M4G mode is one of the fusion mode.  the magnetic sensor got calibrated and compensated by algorithm. 

    So the magnetic sensor data will be different under these two modes.

    There is no way to have two modes working parallel in current BNO055 FW.

    Can you tell me more detail about the gyroscope difference between NDOF and IMU mode? 

    In the fusion mode, we just try to remove the offset of gyro by the fusion lib.  the gyro data should be same under both mode.  Only heading value is different for those two modes.

    Thanks for your answer,

    There is no gyroscope difference between NDoF and IMU mode, but there is one with GYROONLY mode.

    In NDoF and IMU modes, when the gyroscope is close to 0: a little higher or lower, an algorithm modifies the gyroscope data so that it oscillates around 0. In GYROONLY mode, there is no this compensation, it is therefore possible to detect on average the low speeds by having calculated and calibrated in advance the noise of the gyroscope (this noise depend to each USB stick : for two same USB stick, i got 0.06 for the pitch rate of the first and 0.18 for the pitch rate of the second).

    Do you have any documentation to switch from raw magnetometer to M4G mode magnetometer / angles.
    On the internet I found a formula where heading is determined with the magnetometer but pitch and roll are determined with the accelerometer. But yet in M4G mode, the pitch and roll seem good (they are not relative).
    Furthemore it is pitch and roll that I want to use because heading does not seem precise in M4G mode.

    Vincent
    Community Moderator
    Community Moderator

    Yes, the differnece between gyroonly and fusion mode is expected.

    in gyroonly mode,  the output is gyro raw data, then we just output what gyro detected

    in fusion mode,  we set threshold to detect a still position.  if the output of raw gyro low than the threshold,  the fusion lib will output as 0 and indicate that device is not moving.  this is also combinated with other sensor output as fused output of gyro.

    Currently we don't have such document you desired. 

    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