Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMP388: what is the maximum of slave addresses in I2C mode

    BMP388: what is the maximum of slave addresses in I2C mode

    BarryJ
    New Poster

    In I2C mode with one master how many  BMP388 as slave can be connect  to an Arduino UNO?

    From the datasheet I understand that there are only 2 adresses possible  in I2C mode (0x76 or 0x77) as designated by bit  7 in the device address  and configured via the SDO (pin 5) port to ground or plus.

    In SPI mode, as I hope to understand well from the datasheet,  it's up to 128 BMP388 addresses.

    My questions are:

    -Am I understanding well that in I2C mode the maximum number of slaves is two?

    -Of course I can connect a lot of BMP388's in series to the Arduino, but how can I address them in I2C mode. Or should I use SPI mode?

    -Is there any documentation that makes this more clear?

    -Is there any example Arduino code for the I2C situation?

    1 REPLY 1

    o_o
    Contributor
    Hi Barry,

    You can connect a maximum of 2 BME388 per i2c bus. The maximum amount of sensors depends on how many i2c buses you have in your system (most hosts that more than 1 i2c bus, there are also i2c bus multiplexers ICs).

    For SPI, there is not limit to the number of devices. Apart from SCK, MOSI and MOSI, one need 1 chip select GPIO pin for each slave device. the maximum number of slaves is therefore the maximum number of GPIO pins available on your host. There again, there are a variety of I/O expanders that can greatly increase the number of GPIOs for Chip Select pins.

    o_o
    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