Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    how to calculate CO2 equivalent and VOC using PIC32MX370/470 MCU?

    how to calculate CO2 equivalent and VOC using PIC32MX370/470 MCU?

    ankur
    New Poster

    Hello,

    The BME680 alone can only output raw temperature, absolute pressure, relative humidity, and gas resistance.

    How can I calculate CO2 equivalent and VOC without the library?

    I did not find any formula neither in the BME680 datasheet nor in the API.

    I am using  PIC32MX370/470 MCU.

     

    Best regards

    Ankur

    8 REPLIES 8

    Vincent
    Community Moderator
    Community Moderator

    Please check the BSEC lib built for you. 

    The compiling option is with default setting. If there is anything wrong with the integration, it may caused by the option difference.

    The release lib is already tested by simulator of Mplab and works.

    Please check it.

    Hello Vincent,

    Thanks for the library.

    As per your provided library, I'm getting the value of all parameters except the "co2_equivalent" and "breath_voc_equivalent" parameter.

    Kindly suggest how can I get these two parameters value using the provided library.

    Thank you

    Vincent
    Community Moderator
    Community Moderator

    The following two output virtual sensor is the sensor you are requested.

    BSEC_OUTPUT_CO2_EQUIVALENT = 3, /*!< co2 equivalent estimate [ppm] */
    BSEC_OUTPUT_BREATH_VOC_EQUIVALENT = 4, /*!< breath VOC concentration estimate [ppm] */

    They are part of the lib which i released to you. 

    In the example code bsec_integration.c in the release package,  you can find the function bme680_bsec_update_subscription.   you can add these two output sensor into the enable senser list.  then you should able to get those two output from lib.

    Hello Vincent,

    Thanks for your suggestion.

     I got output for these two parameters, co2 equivalent & breath VOC equivalent.

    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