Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Arduino library for BHI160b for remapping the sensor orientation

    Arduino library for BHI160b for remapping the sensor orientation

    chaitanyai
    Member

    Hi team,

    1) - I am using a custom-made board with bhi160b+bmm150 and ESP32, Which used to work great with available orientation.ino code.
    After some 2weeks of usage, the IC stopped giving the data out. 
     - So I logged the data and found : after flashing the bhy.h data into the IC the BHI160B giving only once the interrupt and stops triggering again for fifo full.
     - So What I have done is read the fifo with timer for every 10ms as I kept the ODR = 100Hz but found same data always.
    -- I doubt can the bootloader code which is in the ROM could be damaged.? Or is there any thing I can test to confirm the IC is working?
    -- I am using same orientation.ino code , which i tested on another board and found working as before.

    2) In the orientation.ino code the end "Status" data represent the accuracy of the data? it always go to 3 and again falls to 0 within seconds, Why like that? Do i need to setup the orientation of the both the IMUs to get correct accuracy? 

    3) I tried to port the bhi_uc_drivers file to the arduino with no luck, this I am doing for remapping of the IMUs on the board orientation. Is there any arduino ported code/drivers for the bhi160b axis remapping drivers?

    6 REPLIES 6

    3. You say to do the remapping, but don't explain how.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi all,

    BoschSensorHub code didn't support axis remapping.
    If you are using BHI160, it is recommended to use this code: https://github.com/boschsensortec/BHy1_driver_and_MCU_solution

    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