Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMX160 output data validation

    BMX160 output data validation

    stryod
    New Poster

    Hi, 

     

    I am trying to get the raw data from BMX 160 with NRF52840 via I2C.

    In order not to use drivers (there are reasons why not to use drivers), I manually initiated and configured the sensor.

    Now, I am getting 9 values (acc, gyro, and mag) read from registers (0x04 ~ 0x17) excluding rhall.

    stryod_0-1627591382501.png

    These example values were from the sensor resting on the table.

    Here, I am wondering if these values are valid in a static status. When I rotate the sensor, acc and gyro seem to change properly.

    But the mag values look weird because they barely changed.

    Would you please give some ideas on how to validate the raw values from registers?

     

    Thank you in advance.

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello stryod,

    Did you design the HW yourself? Can we know the overall layout of your hardware first?

    Thank you for your answer.

     

    Yes, my team designed the hardware by ourselves. 

    I have attached the schematic of the IMU sensor part.

    stryod_0-1628011450787.png

    We are using nrf52840 as a mcu and the values I put in the original question were directly from the registers.

     

    Thank you.

    BSTRobin
    Community Moderator
    Community Moderator

    Hello stryod,

    It is better to use driver code in github, as there is compensation for raw data in the API.

    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