|
| 1 | +LPS22 Barometric Pressure Sensor |
| 2 | +================================ |
| 3 | + |
| 4 | +.. seo:: |
| 5 | + :description: Instructions for setting up LPS22 barometric pressure sensor |
| 6 | + |
| 7 | +The ``lps22`` sensor platform allows you to use your LPS22HB or LPS22HH pressure sensor |
| 8 | +(`datasheet <https://www.st.com/resource/en/application_note/an4672-lps22hblps25hb-digital-pressure-sensors-hardware-guidelines-for-system-integration-stmicroelectronics.pdf>`__) with ESPHome. |
| 9 | + |
| 10 | +The :ref:`I²C Bus <i2c>` is required to be set up in your configuration for this sensor to work. |
| 11 | + |
| 12 | +.. figure:: images/lps22.jpg |
| 13 | + :align: center |
| 14 | + |
| 15 | +.. code-block:: yaml |
| 16 | +
|
| 17 | + sensor: |
| 18 | + - platform: lps22 |
| 19 | + temperature: |
| 20 | + name: "LPS22 Temperature" |
| 21 | + pressure: |
| 22 | + name: "LPS22 Pressure" |
| 23 | +
|
| 24 | +Configuration variables: |
| 25 | +------------------------ |
| 26 | + |
| 27 | +- **temperature** (*Optional*): Temperature. |
| 28 | + |
| 29 | + - All options from :ref:`Sensor <config-sensor>`. |
| 30 | + |
| 31 | +- **pressure** (*Optional*): Barometric Pressure. |
| 32 | + |
| 33 | + - All options from :ref:`Sensor <config-sensor>`. |
| 34 | + |
| 35 | +- **address** (*Optional*, int): Manually specify the I²C address of the sensor. Default is ``0x5d``. ``0x5c`` is another common address. |
| 36 | +- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. |
| 37 | + |
| 38 | +Sensor sampling details: |
| 39 | +------------------------ |
| 40 | + |
| 41 | +The LPS22 sensors support variety of sampling and streaming approaches: periodic at various |
| 42 | +frequencies from 1Hz to 75Hz, as well as single-shot sampling mode. Single-shot sampling is |
| 43 | +implemented in this component letting the sensor to enter the power-down mode between samples, |
| 44 | +saving significant power. |
| 45 | + |
| 46 | +See Also |
| 47 | +-------- |
| 48 | + |
| 49 | +- :ref:`sensor-filters` |
| 50 | +- :apiref:`lps22/lps22.h` |
| 51 | +- :ghedit:`Edit` |
0 commit comments