Skip to content

Commit

Permalink
add warning to conditioning
Browse files Browse the repository at this point in the history
add warning to:
- Readme
- Example Usage
- Function description
  • Loading branch information
sdmueller committed May 15, 2024
1 parent c35d3ee commit 62eb543
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ In these files you can find some helper functions used by Sensirion's embedded
drivers. It mostly contains byte order conversions for different variable
types. These functions are also used by the UART embedded drivers therefore
they are kept in their own file.

## Conditioning

After each restart of the sensor or when the hotplates have been switched off, the conditioning command must
be called from idle mode. The conditioning heats the hotplate of the NOx pixel to a different temperature compared
to the measurement mode enabling a faster switch-on thereafter.

It is recommended to execute the conditioning for 10s, but **10s must not be exceeded** to avoid damage to the sensing material.
3 changes: 3 additions & 0 deletions sgp41_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ extern "C" {
* different temperature for conditioning. This command returns only the
* measured raw signal of the VOC pixel SRAW_VOC as 2 bytes (+ 1 CRC byte).
*
* WARNING: To avoid damage to the sensing material the conditioning must not
* exceed 10s!
*
* @param default_rh Default conditions for relative humidty.
*
* @param default_t Default conditions for temperature.
Expand Down
2 changes: 2 additions & 0 deletions sgp41_i2c_example_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ int main(void) {
uint16_t default_t = 0x6666;

// sgp41 conditioning during 10 seconds before measuring
// WARNING: To avoid damage to the sensing material the conditioning must
// not exceed 10s!
for (int i = 0; i < 10; i++) {
uint16_t sraw_voc;

Expand Down

0 comments on commit 62eb543

Please sign in to comment.