
LPS22HB pressure sensing over I2C or SPI
The Adafruit LPS22 Pressure Sensor breakout brings ST's LPS22HB barometric pressure sensor to Arduino, Raspberry Pi and other embedded projects. Use it for a weather station, a pressure logger or an altitude experiment. Two STEMMA QT / Qwiic connectors provide a convenient I2C connection, while the labelled pads also support a conventional wired interface.
This is Adafruit product 4633 with the LPS22HB sensor, not the LPS25HB version. The board includes a regulator and logic-level shifting for use with 3V to 5V hosts. Match VIN and the signal levels to your controller.
Features
- 260 to 1260 hPa absolute pressure measurement range.
- 24-bit pressure output and 16-bit temperature output.
- Selectable output data rates from 1 to 75 Hz.
- I2C and SPI interfaces, with STEMMA QT / Qwiic connectors for I2C.
- Onboard regulator and level shifting for 3V to 5V power and logic.
- FIFO and configurable interrupt functions for data-ready, pressure thresholds and FIFO events.
- Adafruit Arduino and CircuitPython/Python libraries with example code.
Technical details
- Sensor: ST LPS22HB.
- Default I2C address: 0x5D. Pull SDO low to select 0x5C.
- Power input: VIN, 3V to 5V DC. GND is the common ground.
- I2C signals: SCK is clock, SDI is data.
- SPI signals: SCK, SDI, SDO and CS.
- INT: configurable interrupt output.
- The onboard 3Vo pad is the regulator's 3.3V output, not the VIN connection.
Getting started
Connect a compatible controller to the QT connector using a suitable cable, or wire VIN, GND, SCK and SDI for I2C. Install Adafruit's LPS2X library for Arduino or the Adafruit CircuitPython LPS2X library for CircuitPython/Python, then start with the official pressure-reading example. For SPI, follow the dedicated wiring instructions in the guide.
Altitude is calculated from pressure and depends on the sea-level pressure reference used in your code. Set an appropriate local reference before relying on altitude estimates. Keep the sensor exposed to the air being measured. This breakout is not sold as a waterproof probe.
Package Includes
- 1 x Adafruit LPS22 Pressure Sensor breakout board, STEMMA QT / Qwiic, LPS22HB.
Controller, breadboard, wires, USB cable and STEMMA QT cable shown in connection diagrams are not included. The supplier's package list names the sensor board only.
Useful Links
- Adafruit product page
- Official LPS25 / LPS22 guide
- Pin connections
- Arduino setup and examples
- CircuitPython / Python setup
- Datasheets, schematic and board files
- Supplier reference and package list
Image credits
Rear photograph, schematic and fabrication drawing by Bryan Siepert / Adafruit: assets 91881, 91873 and 91874, used under CC BY-SA 3.0. The REES52 pin-label diagram is adapted from the fabrication drawing and shares that license. Wiring diagrams by Tyeth Gundry / Adafruit: 124215 and 124252, used under CC BY 3.0. Wiring diagrams illustrate connections only; accessories are not included.