Skip to content

Commit

Permalink
Merge pull request #7 from Sensirion/add_conditioning_warning
Browse files Browse the repository at this point in the history
add warning to conditioning
  • Loading branch information
sdmueller authored May 21, 2024
2 parents 3724109 + 9802fd3 commit d25cee9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ See user manual at
[https://sensirion.github.io/python-i2c-sgp4x/](https://sensirion.github.io/python-i2c-sgp4x/).


## SGP41 Conditioning

After each restart of the SGP41 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.


## Development

We develop and test this driver using our company internal tools (version
Expand Down
3 changes: 2 additions & 1 deletion example_linux_sgp41.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

print("SGP41 Serial Number: {}".format(sgp41.get_serial_number()))

# Run conditioning for 10 seconds
# Run conditioning for 10 seconds
# WARNING: To avoid damage to the sensing material the conditioning must not exceed 10s!
for _ in range(10):
time.sleep(1)
sraw_voc = sgp41.conditioning()
Expand Down
3 changes: 2 additions & 1 deletion example_sensorbridge_sgp41.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

print("SGP41 Serial Number: {}".format(sgp41.get_serial_number()))

# Run conditioning for 10 seconds
# Run conditioning for 10 seconds
# WARNING: To avoid damage to the sensing material the conditioning must not exceed 10s!
for _ in range(10):
time.sleep(1)
sraw_voc = sgp41.conditioning()
Expand Down
2 changes: 2 additions & 0 deletions sensirion_i2c_sgp4x/sgp41/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def conditioning(self, relative_humidity=None, temperature=None):
conditioning. This command returns only the measured raw signal of the VOC
pixel SRAW_VOC
WARNING: To avoid damage to the sensing material the conditioning must not exceed 10s!
:param relative_humidity: relative humidity in percent. Defaults to 50% RH
:param temperature: temperature in degree celsius. Defaults to 25°C
:return: raw VOC signal (:py:class:`~sensirion_i2c_sgp4x.sgp41.response_types.Sgp41SrawVoc`)
Expand Down

0 comments on commit d25cee9

Please sign in to comment.