Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add warning to conditioning #2

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ the following pins to connect your SGP41:
...
```

## 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.

## Troubleshooting

### Initialization failed
Expand Down
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 @@ -78,6 +78,8 @@ int main(void) {
}

// 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