Skip to content

Commit 28ba122

Browse files
nagisajesserockz
andauthored
lps22: add docs (#4340)
Co-authored-by: Jesse Hills <[email protected]>
1 parent 3cf5dd5 commit 28ba122

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

components/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ Environmental
386386
HYT271, components/sensor/hyt271, hyt271.jpg, Temperature & Humidity
387387
Inkbird IBS-TH1 Mini, components/sensor/inkbird_ibsth1_mini, inkbird_isbth1_mini.jpg, Temperature & Humidity
388388
Internal Temperature, components/sensor/internal_temperature, thermometer.svg, Temperature, dark-invert
389+
LPS22, components/sensor/lps22, lps22.jpg, Temperature & Barometric Pressure
389390
MCP9808, components/sensor/mcp9808, mcp9808.jpg, Temperature
390391
MH-Z19, components/sensor/mhz19, mhz19.jpg, CO2 & Temperature
391392
MLX90614, components/sensor/mlx90614, mlx90614.jpg, Temperature

components/sensor/images/lps22.jpg

4.33 KB
Loading

components/sensor/lps22.rst

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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`

images/lps22.jpg

4.33 KB
Loading

0 commit comments

Comments
 (0)