Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Gas resistance output

    Gas resistance output

    CheesLover
    Member

    Hi, I'm doing a project where I measure indoor air quality. I want to get an IAQ index. For this, I use the BME680 (picture below). I installed the libraries in the last picture. With these libraries, I can measure the parameters using just a few simple code lines (see below, I also added a screenshot of the readings). Does anyone know if the gas resistance reading is in kOhm or IAQ? And if this reading is in kOhm what is the simplest way of measuring IAQ? I read I could use another library but I can't find a clear and simple code example to do this. I don't want it complex as it's explained everywhere. Also, I checked the bosh datasheet but missed many units in the tables. for this reason, I don't understand it. Pls someone help. Thanks in advance for your help.

    float temperature = bme.temperature (in °C)

    float pressure = bme.pressure / 100.0 (in hPa)

    float humidity = bme.humidity (in %)

    float gasResistance = bme.gas_resistance / 1000.0 (kOhm? IAQ?)

    CheesLover_3-1680166207519.png

    CheesLover_0-1680165796112.png

    CheesLover_1-1680165835583.png

     

     

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi CheesLover,

    See it from your picture, the output is sensor RAW data(temperature, pressure, humidity, gas resistance). To get IAQ value, you need to run BSEC algorithm based on sensor RAW data as the input data of BSEC.
    There is example code for your reference https://github.com/boschsensortec/BSEC-Arduino-library/blob/master/examples/basic_config_state/basic...

    Thanks for the response. Is it possible to run this on an Arduino Uno? I tried doing it but it didn't work. I think its because the software doesn't support the ATmega328P. Or should I just run it on an Arduino Mega?

    BSTRobin
    Community Moderator
    Community Moderator

    Hi CheesLover,

    If you download latest BSEC package from https://www.bosch-sensortec.com/software-tools/software/bme688-software, you will find memory requirement for AVR 8 bit MCU.

    BSEC2.4.0.0 download.png
    BSEC2.4.0.0_Generic_Release_23012023\algo\normal_version\bin\avr\AVR8_megaAVR\libalgobsec.a.Size.log
    text data bss dec hex filename
    58608 0 3664 62272 f340 (TOTALS)

    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