SGP30 baseline handling (_P083_SGP30.ino)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

SGP30 baseline handling (_P083_SGP30.ino)

#1 Post by Rampler » 19 Jul 2022, 08:58

Hi together,

in the source i see the following line:

Code: Select all

addLog(LOG_LEVEL_INFO, F("SGP30: Restore last known baseline values"));
Could anybody so kind to explain the Baseline handling of the sensor ?
When will the baseline stored ?

regards Klaus

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: SGP30 baseline handling (_P083_SGP30.ino)

#2 Post by Ath » 19 Jul 2022, 09:52

The baseline values are periodically stored in the (hidden) 3rd and 4th output value fields, as these are retained across a warm restart (and reset to 0 on a cold start/power cycle).
If these values are <> 0 then these earlier determined values are restored to the sensor, to speed up auto-calibration & adjustment.
/Ton (PayPal.me)

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#3 Post by Rampler » 19 Jul 2022, 11:40

Thanks for the information .. ;) :D

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#4 Post by Rampler » 19 Jul 2022, 11:58

Will the _P083_SGP30.ino intergrated into the normal builds ?
What are the conditions in order to migrate the plugin into the normal builds ?

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#5 Post by Rampler » 19 Jul 2022, 12:57

Is it possible to implement temperature and humidity compensation, like the p090_ccs811 plugin does ?

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: SGP30 baseline handling (_P083_SGP30.ino)

#6 Post by Ath » 19 Jul 2022, 13:24

According to the list of plugins this plugin is in the TESTING A build-set, so it is available for use.

Because of the size of the combined set of plugins, it is not feasible that it will end up in a NORMAL build, but the best alternative to that are the MAX builds, that hold all available plugins, but can only be used on ESP32 with 16 MB Flash. Until we max-out that too :lol: (but that will take a while, and there are other restrictions, like the max. Plugin ID being 254, that will probably be hit first)

I'm not sure if the SGP30 needs any external compensation, but I think it has that capability/compensation itself.
/Ton (PayPal.me)

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#7 Post by Rampler » 19 Jul 2022, 15:04

I'm not sure if the SGP30 needs any external compensation, but I think it has that capability/compensation itself.
SGP30 Datasheet:
The SGP30 features an on-chip humidity compensation for the air quality signals (CO 2 eq and TVOC) and sensor raw signals
(H2 signal and Ethanol signal). To use the on-chip humidity compensation an absolute humidity value from an external humidity
sensor like the SHTxx is required.

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#8 Post by Rampler » 19 Jul 2022, 15:20

According to the list of plugins this plugin is in the TESTING A build-set, so it is available for use.
In my understanding, TESTING builds are builds to test.
But it seems, that TESTING A B C .. are normal builds with different plugins.

IMHO:
NORMAL A B C .. convention would be better.. (instead of TESTING A B C)

Also confusing is, that the plugins are labeled with (TESTING) in the device list.

I thought,that testing builds are unstable, therefor a was unmotivated to try testing plugins.
(OK shit, this sensor is great, but is only TESTING A)
Last edited by Rampler on 19 Jul 2022, 15:38, edited 1 time in total.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SGP30 baseline handling (_P083_SGP30.ino)

#9 Post by TD-er » 19 Jul 2022, 15:38

"Testing" is a legacy naming schema which we need to change as it is confusing.
I'm open for suggestions for a better name.

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#10 Post by Rampler » 19 Jul 2022, 15:41

"Testing" is a legacy naming schema which we need to change as it is confusing.
I'm open for suggestions for a better name.
As i mentioned before:
NORMAL A B C .. convention would be better.. (instead of TESTING A B C)
And
Leave the [TESTING] behind the sensor name in device list

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SGP30 baseline handling (_P083_SGP30.ino)

#11 Post by TD-er » 19 Jul 2022, 15:50

I think the "normal" should then also be renamed.
Maybe we can name it like "base" or something.

Anyway, the reason it has not yet been changed is partly because people have become used to it and also that it needs quite a bit of work and later takes time to reply to questions like "where is my build?"
The other reason is that I have not yet found proper names for it.

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#12 Post by Rampler » 19 Jul 2022, 15:57

On the other hand, many users do not use TESTING A B C builds, because they think that they are "only" test builds.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SGP30 baseline handling (_P083_SGP30.ino)

#13 Post by TD-er » 19 Jul 2022, 16:32

That's also a possibility.

I will see what I can do and also how much effort it takes to change the "testing" naming.
I am affraid it still may require quite a lot of effort, but I can see your point here.

Rampler
Normal user
Posts: 92
Joined: 31 Dec 2016, 07:13

Re: SGP30 baseline handling (_P083_SGP30.ino)

#14 Post by Rampler » 20 Jul 2022, 07:30

For those who have doubts...
It is difficult to explain that [TESTING] is stable... ;)
Testing.JPG
Testing.JPG (49.69 KiB) Viewed 4019 times

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 26 guests