Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to use the BME688 after creating the algorithm?

    How to use the BME688 after creating the algorithm?

    atsaleel
    Member

    Hello,

    I got a new BME688 development kit, configured and its is recording the data. I used the recorded data to create an AI algorithm using the AI studio. Now, 

    1 - Is there any way I can test the algorithm with further recordings?(other than the app, the app has only a demo feature not a live testing)  It need not be on realtime, but like recording the same and then analyzing the algorithm I created earlier. (I don't have much experience with IDE or arduino in general)

    2 - How can I read the raw data of sensor output? Like resistance vs time, a CSV file or data log of the all 8 sensors?

     

     

    5 REPLIES 5

    BSTRobin
    Community Moderator
    Community Moderator

    Hi atsaleel,

    1.You could export your algorithm and replace the config file in the Arduino example(https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/examples/generic_examples/basic_co...) with your config file.

    2. You could refer this Arduino example code to get 8 sensor data: https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/examples/x8_board_examples/basic_c...

    Hi, 

    Thank you for the reply.

     

    1 - When I flashed the original code from the link, Bosch-BSEC2-Library/examples/generic_examples/basic_config_state/basic_config_state.ino, the code is compiling successfully but the there is no ouput on the serial monitor. The RED LED is blinking properly and sensor is recording data. What could be the reason I am not getting any output on the serial monitor? Should I place these two files into the SD card to get an output?

    atsaleel_0-1678660078721.png

     

    When I am integrating this example to detect the classess as per the algorithm I created, what all lines in the code should I change? I am not able to understand line 125, "FieldAir_HandSanitizer_config". Should I change to the the name of the AI file I created?

     

    2 - When I am compiling the code from Bosch-BSEC2-Library/examples/x8_board_examples/basic_config_state/basic_config_state.ino .It's giving me error. 

     

    atsaleel_1-1678660356407.png

     

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hi atsaleel,

    If you only want to test the algorithm, the fast way is to copy the config file generated by BME AI-Studio to an SD card and connect the app to view the results.

    If you want to test the algorithm under Arduino, you need to migrate the example https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/examples/generic_examples/basic_co... of the BSEC package to the Arduino platform. Replace "FieldAir_HandSanitizer/FieldAir_HandSanitizer.h: with your config file.

    Thank you robin, While doing so, Do I have to re-input the library into the arduino after replaceing the 'hand_sanitizer' wiht the config file I created? Also, How should I define the classes I created in the basic_config_state.ino, this line :- const String gasName[] = { "Field Air", "Hand sanitizer", "Undefined 3", "Undefined 4"}; ?

    Thanks in advance!

    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