Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Question in regards to SGP30 Humidity Compensation #42

Closed
bittailor opened this issue Mar 11, 2019 · 2 comments
Closed

Question in regards to SGP30 Humidity Compensation #42

bittailor opened this issue Mar 11, 2019 · 2 comments

Comments

@bittailor
Copy link
Contributor

Hi

I'm not sure this is the right place to ask questions, but I did not find another one.

My question is regard to the SGP30 Humidity Compensation (Set_humidity command).

In the example usage the Humidity Compensation is set after measuring the IAQ values just before sleeping for 1 second:

err = sgp_measure_iaq_blocking_read(&tvoc_ppb, &co2_eq_ppm);
if (err == STATUS_OK) {
/* printf("tVOC Concentration: %dppb\n", tvoc_ppb);
* printf("CO2eq Concentration: %dppm\n", co2_eq_ppm);
*/
} else {
/* printf("error reading IAQ values\n"); */
}
/*
* IMPLEMENT: get absolute humidity to enable humidity compensation
* u32 ah = get_absolute_humidity(); // absolute humidity in mg/m^3
* sgp_set_absolute_humidity(ah);
*/

Intuitively I would have done it before measuring. What is the reason to do it afterwards or does it not matter when the Humidity Compensation is set?

Thanks and regards

@abrauchli
Copy link
Contributor

abrauchli commented Mar 11, 2019 via email

@bittailor
Copy link
Contributor Author

Hi Andreas,
Thanks for the quick response.

bittailor added a commit to bittailor/embedded-sgp that referenced this issue Mar 12, 2019
- As suggested in the aswer to my question in Sensirion#42
bittailor added a commit to bittailor/embedded-sgp that referenced this issue Mar 12, 2019
- As suggested in the answer to my question in Sensirion#42
@psachs psachs closed this as completed Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants