Bosch Sensortec Community

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

    communicate with BHI160 by Arduino UNO

    tomporon
    New Poster

    communicate with BHI160 by Arduino UNO

    I want to communicate with BHI160 by Arduino UNO and get only acceleration and angle uncalibrated, but Arduino UNO can't download the source code(https://github.com/BoschSensortec/BoschSensorHub) because of the large data size. So, I am trying to write code which is small data size,but I have difficulity to understand the complicated source code.

    Does anyone have the simple code like the below zip file?

    3 REPLIES 3
    BSTRobin
    Community Moderator

    Re: communicate with BHI160 by Arduino UNO

    Hi tomporon,

    BHI160 integrates smart-hub and has different software architecture from BMX055.

    Benji
    Member

    Re: communicate with BHI160 by Arduino UNO

    It's definitely a bit of a shame that there's so much overhead needed to offload the fusion algorithms, I wish the BNO055 was still around as it was so easy to just poll registers. 

    Once I get everything working with my ESP32, I plan to pare down the library to the essentials and see how small I can get it. But the smallest firmware file is 58KB  when in the .h format. The .fm file is ~20KB so best case scenario you're using 2/3rds of the UNO's flash just to deliver the firmware. These chips are made to conform to the android standard which is the main market for IMUs, and it's a trivial overhead for that. Just seems trivial once you have all this to have persistent firmware and some extra registers but I've never designed an ASIC so I'm just whining.

    The UNO isn't really fast enough for fusion in my opinion, so unless you find a source for BNO055s (or 085s, but i never used those) you'll probably need to upgrade.

    Benji
    Member

    Re: communicate with BHI160 by Arduino UNO

    Noticed you wanted uncalibrated data, I'd probably go with the BMI160 (really confusing naming, as the BHI160 is the sensor hub with internal BMI160). There's a chance you could tap into the ASDA and ASCK lines to talk directly to it, but that seems a bit... optimistic.

    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