Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Advanced Bosch BME688 Breakout Board - Beginners guide for configuring on Raspberry Pi 4?

    Advanced Bosch BME688 Breakout Board - Beginners guide for configuring on Raspberry Pi 4?

    Pi4Pete
    New Poster

    I have just bought the Advanced Bosch BME688 Breakout Board from PiHut.  Is there a beginners guide to setting this up on a Rasberry Pi?  This is my first foray into sensors and while I can find arduino related information, I can't track down a detailed guide for the Rasberry Pi.

    Any help, greatly appreciated.

    Pete.

    6 REPLIES 6

    BSTRobin
    Community Moderator
    Community Moderator

    Hi BSTRobin.

    Thank you for your reponse.

    When I looked at these I could only see Arduino related information.  If you could provide a direct link to the information that would be appreciated.  I tried the links in your response, but again, only found Arduino related information.

    Hi team and all BME fans,

     

    I have the same problem. I see many tutorials or examples for Arduino, which is great, but there is very low level of support for RPi (python) users. I'm trying for almost 2 weeks and my iaq_accuracy is still on 1. In fact, I'm little bit frustrated. 

    Could you please investigate, or help me understand, what I'm doing wrong? 

     
    Here is my python3.7 script:

    from bme68x import BME68X
    import bme68xConstants as cst
    import bsecConstants as bsec
    from datetime import datetime
     
    # Time info just for my purpose
    test_start = datetime.now().strftime("%Y.%m.%d ~ %H:%M:%S")
    test_start1 = datetime.now()

    bme = BME68X(cst.BME68X_I2C_ADDR_LOW, bsec.BSEC_ENABLE)
    while True:
        curr_time = datetime.now().strftime("%Y.%m.%d ~ %H:%M:%S")
        curr_time 1 = datetime.now()
        print("Aktualny cas:", curr_time, "\n")
        data = bme.get_bsec_data()
        for i,j in data.items():
            print(i + ":",j)
       
        print("\n\n")
        print("Test begins:", test_start)
        print("Test Duration: {}".format(curr_time 1 - test_start1))
       
     
    ****************************************************
     And the python bme68x library from: https://github.com/pi3g/bme68x-python-library
     
    Neky_0-1633720281057.png

     

    Thank you

    Not sure but don't you a need a sleep there? (3 seconds or something?)

    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