Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 BSEC2 Raspberry pi

    Carlos19
    Member

    BME688 BSEC2 Raspberry pi

    Hello,

    I connected a BME688 sensor (on a pi3g breakout board) via breadboard to a raspberry pi 4. I can read all sensor values (non BSEC) but can't access the BSEC values e.g. IAQ.

    get_bsec_data() returns an error „AttributeError: ‚bme68x.BME68X‘ object has no Attribute ‚get_bsec_data‘". 

    I think the BSEC2 library was not installed correctly . Can I install this library manually?

    Any advice is welcome! Thank's for your help! 

    4 REPLIES 4
    BSTRobin
    Community Moderator

    Re: BME688 BSEC2 Raspberry pi

    Hello Carlos19,

    Do you mean you had migrated BME688 sensor driver to raspberry pi 4 and could get all sensor values (non BSEC)? If yes, could we know what sensor driver you used?
    As you mentioned you couldn't access the BSEC values e.g. IAQ, could we know more detailed SW information you used?

    Carlos19
    Member

    Re: BME688 BSEC2 Raspberry pi

    Hello BSTRobin,

    thank’s for your reply.

    I think I solved half of my problems concerning the sensor and BSEC.

    Just to make sure we have the same understanding:

    I connected the pi3g breakout board with BME688 sensor via a breadboard to the raspberry pi. I did a clean install of the pi3g Bosch bme68x-python-library and now can access values with get_bsec_data(). I used the pi3g library for the sensor (https://github.com/pi3g/bme68x-python-library) and the BSEC2 library from Bosch (integrated during install).

    The first initial install was done without BSEC, the second install with the BSEC library somehow didn’t install BSEC properly.The new clean install solved this problem.

    Now since I can read BSEC values I noticed that IAQ has a constant value of 25. Also other BSEC values seem to be static (e.g. co2_equivalent = 500, breath_voc_equivalent = 0.4999999..). I collected values for over 30 minutes without any changes. The non-BSEC values seem to be correct.

    Is there any way to speed up the calibration process – I think this process is responsible for not updating bsec values. And is there a way to store the calibration information and use it when the sensor gets powered up?

    I use a python-script to read values and write them to a mysql database.

    Thank’s again for your help!

    LukasG
    New Poster

    Re: BME688 BSEC2 Raspberry pi

    Hey there,

    i think i am having exactly the same problem. 

    Can you maybe help me out, by what you mean with "clean" installation? 

    I also followed the instructions in the README.md (https://github.com/pi3g/bme68x-python-library), i downloaded the BSEC 2.x Software and unzipped it into the folder, and installed it. 

    I also can read the non BSEC data ( get_data() ), but i do get the same error when trying to get some BSEC information.

    I also think there is something wrong with the installation, but i don't get it.

     

    Thanks in Advance

    Carlos19
    Member

    Re: BME688 BSEC2 Raspberry pi

    Hi,

    I installed everything from scratch. New pi OS + new library from pi3g for BME688.
    I think I had some libraries installed which caused the problems.

    I followed the instructions for installation (pi3g) and after the new installation everything
    workes fine now.

     

    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