Open bboynton97 opened 4 years ago
Any news?
According to "SGP30 Data Sheet" you need to call first Init command. Have you tried that?
"_After a power-up or soft reset, the baseline of the baseline compensation algorithm can be restored by sending first an “sgp30_iaq_init” command followed by a “sgp30_set_iaqbaseline” command with the two baseline values as parameters in the order as (TVOC, CO2eq)."
@gorghino Did you try @Chesteron suggestion? Your sketch is not calling IAQinit()
.
Hi @caternuson , I guess you need to ask @bboynton97 . I haven't the SGP30 with me anymore so I cannot test @Chesteron 's suggestion.
SGP30 Unable to Accept Setting Baseline
Description Before my board powers down, I want to record the latest baseline in order to restart the sensor with that baseline later and not have to wait for it to recalibrate. I can pull the baseline no problem, but attempting to set the baseline causes the sensor to output the default values of TVOC 0ppb and eCO2 400ppm. These values never change. When I restart the board without setting the baseline values, it works no problem and starts establishing a new baseline like normal.
I would like to believe this is a code issue because I have troubleshooted every possible alternative issue I could think of over the past 6 hours. I also posted this on the forum to no avail.
Repro