OLA and SGP30 Air quality sensor CO2 not working properly

The OLA recognizes the SGP30(Qwiic) board and logs all the data. However, the CO2 reading is stuck at 400 even after 24 hours of running. The same SPG30 board CO2 readings work as expected when connected to a Redboard turbo, the first 15 readings are 400 then it gradually increases to the room CO2 level. Firmware 1.6 on the OLA.

Hi Gloag,

What logging interval are you using? (Is the OLA sleeping between measurements?)

Thanks,

Paul

Yesterday I tried various logging intervals from the 1Hz in the example sketch to 10 seconds with the same results. However, today it is working at 1Hz. Is it correct that it won’t lose power between samples at this high sampling rate? Anyway the turn power off between cycles greater then 2s is off. I don’t know what was going on yesterday, breathing on the sensor had no effect whereas today the reading immediately jumps.

Hi Gloag,

Ah, great. That makes sense.

Yes, by default the Qwiic power is turned off between readings if the logging interval is greater than 2 seconds. The CO2 sensor won’t like that…

You can disable the power off feature using the menus. Select “Configure Attached Devices”, then “Configure Qwiic Settings”, then set “Turn off bus power between readings” to “No”.

Very best wishes,

Paul