Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Use with BMI160 multiplexer

    Use with BMI160 multiplexer

    Lmuh
    Member
     

     I have a project where I use the BMI160 sensor. I am using raspberry pi in my project. I need to use 6 BMI160s in my project. When I use only one BMI160, I can read all the data correctly. I use i2c as the communication protocol. In order to read 6 BMI160 sensors, I need to use Adafruid TCA9548A multiplexer. How can I read these 6 sensors that I want from you through the multiplexer? As a result of my research, I couldn't find a decent code. By the way, I am using python as programming language. Can anyone help me with a sample code on this? Thanks

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Lmuh,

    Currently there was no example like this, but you could refer to the current example for modification.
    https://github.com/BoschSensortec/BMI160_driver

    In this case, I think it is necessary to use SPI communication instead of communicating with the multipexer using the i2c bus. If anyone has an example code in python programming language with BMI160 spi, I would appreciate it if you share it. It's written in C, but I don't know the C programming language.

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Lmuh,

    The reference code is written in C language. You can refer to the logic of the code.

    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