This is the LPS25HB release by STMicroelectronics. The LPS25HB is an absolute pressure sensor with a feature that functions as a digital output barometer that rages from 260 mbar to 1260 mbar 26 kPa to 126 kPa with absolute accuracy down to ±0.2 mbar and typical RMS (Root Mean Square) noise of 0.01 mbar in high resolution these pressures can easily be transformed to altitudes. As you can see in the circuit diagram it has a 3.3v LDO Linear Regulator and pullup resistors this will allows you to work over an input voltage range of 2.5v to 5.5v and communicates on i2C / TWI and SPI bus. ST’s LPS25HB a MEMS (Microelectromechanical System) an absolute pressure, barometer sensor a small leadless, land grid array package that makes it difficult to wire directly to your microcontroller. However, you can use an LGA / SMD adapter or use our PCB milling file below.
The LPS25HB & LPS331AP pressure and barometer use the same i2C address bus, but different registers field, these IC has embedded temperature compensation with a set of various configuration options, including selectable resolutions, output data rates, FIFO operating modes, and programmable external interrupt signal. This pressure has an absolute pressure accuracy over temperatures as low as ±0.2 mbar with RMS (Root Mean Square) noise of 0.01 mbar at the highest resolution mode with enabled integrated filtering. This pressure and temperature sensor are available through a digital interface. before proceeding to use this sensor please read carefully the LPS25HB / LPS331AP Datasheet.
Requirements
- Arduino IDE | PlatformIO
- Test Boards :
- Note: The Diagram below is using Raspberry Pi PICO (please refer to your MCU’s respective pin-outs & bus configuration)
- Resistors (See below diagram for required value)
- Regulator (3.3V LDO)
- Capacitor(See below diagram for required value)
Wiring Diagram / Schematics
LPS25HB Sketch Source Code
[crayon-6767b70c445a0783225943/]
LPS25HB Sketch Code w/o Library
[crayon-6767b70c445aa176278858/]
LPS25HB Java Source Code
[crayon-6767b70c445b0891035508/]
LPS25HB MicroPython Code
[crayon-6767b70c445b5111063922/]
LPS25HB C-Code
[crayon-6767b70c445ba626689034/]
LPS25HB CircuitPython Code
[crayon-6767b70c445bf383454830/]
PCB Board Milling / Gerber File
Downloads
- Download LPS25HD Datasheet | PDF
- Download LPS331AP Datasheet | PDF
- Download i2C / Two Wire Interface Guide | PDF
- Download LPS25HD / LPS331AP Arduino Sketch Code Library | ZIP
- CircuitPython Library can be found here
- MicroPython Compiler