Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMP series pressure sensor design guide

     Selecting the right part

    The BMP series of pressure sensor contains 2 products: BMP280 and BMP388. Table 1 shows an overview of the features.

    7870.png

                                                        Table 1: Overview of the products in this family

    Key features

    • LGA with metal lid package
    • SPI or I2C interface
    • Built-in IIR filter.

     Differences between products

    The main differences in the BMP product family are in the thickness of the package, and the overall performance of the MEMS element. BMP388 offers higher performance in a smaller package compared to BMP280. See the complete list of differences in Table 2.

                                                     

    Untitled80.png

                                              Table 2: Differences between BMP product family members

    Available evaluation tools and software

    To best to evaluate the products from the BMP family, we recommend the following combination of evaluation tools:

    Reference design

    Figure 1 shows a complete schematic of a typical use case.

    14.png

     

                                                                                            BMP280

    8.png                                                                                       BMP388

                                                           Figure 1: Exemplary Reference design

      Bill of materials

    1.png                                            Table 3: Bill of materials

    Layout recommendations

    Because the BMP sensor family contains tiny mechanical structure inside the package, care must be taken during the layout phase to ensure the best performance. The complete handling and soldering guide can be found on the Bosch Sensortec’s website.

    BMP28x Handling, soldering & mounting instructions

    BMP380 Handling,soldering & mounting instructions

    In addition to the attached guidelines, see below for the typical manufacturing procedure for the BMP388 pressure sensor.

    Landing Pattern9.png

                                                                                             BMP280

    2.png

                                                                                         BMP388

                                                             Figure 2: Recommended landing pattern

    Typical Layout

    11.png

                                                                                                      BMP280

    12.png

                                                                                              BMP388

                                                                             Figure 3: Typical layout

    Manufacturing notes

    4.png                                                              Table 4: Manufacture recommendation

    First power-on

    After powering on the sensor for the first time, the initial specs would be tested for communication with the device. This can be done simply by reading the chip identification code in the register 0xD0 (BMP280) 0x00 (BMP388). See below for the expected values:

    13.png

                                                             Table 5: Chip IDs of the BMP product family

    Here is some sample code on how to perform this test, based on the BMP388 , using the COINES software as the host.

    /*!
     * @brief This internal API is used to check the bmp388 sensor chip ID
     *
     * @param[in] void
     *
     * @return void
     *
     */
    static void init_bmp3(void)
    {
        int8_t rslt;
        rslt = bmp3_init(&bmp3Dev);
        if (rslt == BMP3_OK)
        {
            printf("BMP3 Initialization Success!\n");
            printf("Chip ID 0x%X\n", bmp3Dev.chip_id);
        }
        else
        {
            printf("Chip Initialization failure !\n");
            exit(COINES_E_FAILURE);
        }
    }

    How to read sensor data 

    Here is some sample code on how to read sensor data, based on the BMP388, using the COINES software as the host

    /*!
     * @brief This internal API is used to read the streaming data in a while loop and
     * print in console.
     *
     *  @param[in] void
     *
     *  @return void
     */
    static void read_sensor_data(void)
    {
        int times_to_read = 0;
    
        while (times_to_read < 200)
        {
    
            bmp3_get_sensor_data(BMP3_ALL, &bmp3_comp_data, &bmp3Dev);
    
            printf("T: %.2f, P: %.2f \n", (bmp3_comp_data.temperature / 100.), (bmp3_comp_data.pressure / 100.));
            fflush(stdout);
    
            coines_delay_msec(10);
    
            times_to_read = times_to_read + 1;
        }
    }

     Sample code

    The complete sample code shown above can be compiled and executed from the COINES installation directory (by default, C:/COINES under Windows), from the following subfolder: \examples\c\bmp3

    Usage

    The COINES installation provides sample code on how to turn on the sensor, configure it and read out the pressure data. COINES\v1.0\examples\c\bmp3

    Sample code

    /*!
     *  @brief Main Function where the execution getting started to test the code.
     *
     *  @param[in] argc
     *  @param[in] argv
     *
     *  @return status
     *
     */
    int main(int argc, char *argv[])
    {
        int16_t rslt;
        struct coines_board_info board_info;
    
        init_bmp3_sensor_driver_interface();
    
        rslt = coines_open_comm_intf(COINES_COMM_INTF_USB);
    
        if (rslt < 0)
        {
            printf("\n Unable to connect with Application Board ! \n"
                   " 1. Check if the board is connected and powered on. \n"
                   " 2. Check if Application Board USB driver is installed. \n"
                   " 3. Check if board is in use by another application. (Insufficient permissions to access USB) \n");
            exit(rslt);
        }
    
        rslt = coines_get_board_info(&board_info);
    
        if (rslt == COINES_SUCCESS)
        {
            if (board_info.shuttle_id != BMP3_SHUTTLE_ID)
            {
    
                printf("! Warning invalid sensor shuttle. This application will not support this sensor \r\n"
                       "1.Check the sensor shuttle \r\n"
                       "2.Reset the board  \r\n");
                exit(COINES_E_FAILURE);
            }
        }
    
        init_sensor_interface();
    
        /* after sensor init introduce 200 msec sleep */
        coines_delay_msec(200);
    
        init_bmp3();
    
        read_sensor_data();
    
        coines_close_comm_intf(COINES_COMM_INTF_USB);
        return EXIT_SUCCESS;

    Further reads

    Datasheets:

    Application notes:

    Handling, soldering and mounting instructions

    Version history
    Last update:
    ‎08-14-2019 10:25 AM
    Updated by:
    Contributors
    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