Product successfully added to your shopping cart
Quantity
Total
There are 0 items in your cart. There is 1 item in your cart.
Total products
Total shipping  To be determined
Total
Continue shopping Proceed to checkout

LPS22HB click

MIKROE-2665

23 g

LPS22HB click is an easy solution for adding a digital barometer to your design. It carries the LPS22HB MEMS nano pressure sensor.

The click is designed to run on a 3.3V power supply. LPS22HB click communicates with the target microcontroller over I2C or SPI interface.

More details

$15.00

Quantity Unit Price
5 $14.25
20 $13.50
LPS22HB click is an easy solution for adding a digital barometer to your design. It carries the LPS22HB MEMS nano pressure sensor. The click is designed to run on a 3.3V power supply. LPS22HB click communicates with the target microcontroller over I2C or SPI interface.

How the click works 

LPS22HB click carries the pressure sensor that measures 260-1260 hPa absolute pressure. Pressure values are then read out from the IC’s registers, through I2C or SPI communication.

LPS22HB sensor features

The LPS22HB is an ultra-compact piezoresistive absolute pressure sensor which functions as a digital output barometer.

The sensing element, which detects absolute pressure, consists of a suspended membrane. When pressure is applied, the membrane deflection induces an imbalance in the Wheatstone bridge piezoresistances, whose output signal is converted by the IC interface.

The sensor has a 24-bit pressure data output and a 16-bit temperature data output.

Specifications

Type Pressure,Altitude
Applications Barometers for portable devices, GPS applications, Weather station equipment, etc.
On-board modules LPS22HB pressure sensor
Key Features 260 to 1260 hPa absolute pressure range
Interface I2C,GPIO,SPI
Input Voltage 3.3V
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)

Pinout diagram

This table shows how the pinout on LPS22HB click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

NotesPinMikrobus logo.pngPinNotes
NC 1 AN PWM 16 NC
NC 2 RST INT 15 INT Interrupt or Data Ready
SPI enable CS 3 CS TX 14 NC
SPI Clock SCK 4 SCK RX 13 NC
SPI serial data output SDO 5 MISO SCL 12 SCL I2C serial clock
SPI serial data input SDI 6 MOSI SDA 11 SDA I2C serial data
Power supply +3.3V 7 3.3V 5V 10 NC
Ground GND 8 GND GND 9 GND Ground

Maximum ratings

DescriptionMinTypMaxUnit
Supply VOltage (Vdd) 1.7 3.6 V
IO supply voltage(Vdd_IO) 1.7 Vdd+0.1 V
Overpressure 2 MPa
Operating pressure range 260 1260 hPa
Pressure sensitivity 4096 LSB/hPa

Jumpers and settings

DesignatorNameDefault PositionDefault OptionDescription
JP1 COM SEL Right SCL(I2C) Clock communication line Selection SCK/SCL, left position SCK, right position SCL
JP2 COM SEL Right SDA(I2C) Data communication line Selection SDI/SDA, left position SDI, right position SDA
JP3 COM SEL Right ADD(I2C) Communication Interface lines Selection SDO/ADD, left position SDO, right position ADD
JP4 ADD SEL Right 0 Less significant bit of the I2C slave address selection 1/0, left position 1, right position 0.
JP5 COM SEL Right I2C Communication interface selection CS/I2C, left position CS, right position I2C

LEDs and buttons

DesignatorNameTypeDescription
PWR PWR LED Power LED, lights green when Board is powered.

Programming

Code examples for MCP1664 click, written for MikroElektronika hardware and compilers are available on Libstock.

Code snippet

The following code snippet shows the main function of the example, which first calls the initialization functions, and then reads and outputs temperature and pressure values every 5 seconds

01 void main()
02 {
03     char uartTxt [20];
04     systemInit();
05     LPS22HB_initDriver (0x5C, I2C1_Start, I2C1_Write, I2C1_Read );
06     Uart1_Write_Text ("rnInitialized");
07     
08    while( 1 )
09     {
10          Uart1_Write_Text ("rnTemperature: ");
11          FloatToStr ( LPS22HB_readTemperature (), uartTxt);
12          uartTxt [5] = '';
13          Uart1_Write_Text (uartTxt);
14 
15         Uart1_Write_Text ("    Pressure: ");
16          FloatToStr ( LPS22HB_readPressure (), uartTxt);
17          uartTxt [8] = '';
18          Uart1_Write_Text (uartTxt);
19         
20          Delay_ms (5000);
21     }
22 }

Downloads

You Might Also Need

Products in the same category

Send a message

LPS22HB click

LPS22HB click

What can we do for you?