MikroElektronika
LPS22HB click
LPS22HB click
SKU:MIKROE-2665
Out of stock
Couldn't load pickup availability
Share
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).
Maximum ratings
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
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
Designator | Name | Default Position | Default Option | Description |
---|---|---|---|---|
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
Designator | Name | Type | Description |
---|---|---|---|
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 }




New Products
-
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / perSold out -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / perSold out -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / perSold out -
Sold out
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / perSold out -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 149.00Regular priceUnit price / perSold out -
Ribbon Cable with Pre-Crimped Terminals 10-Color M-F 12" (30 cm)
Vendor:POLOLURegular price Rs. 279.00Regular priceUnit price / perSold out -
Wires with Pre-Crimped Terminals 10-Pack M-F 6"
Vendor:POLOLURegular price Rs. 339.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color M-M 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color F-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Ribbon Cable Premium Jumper Wires 10-Color M-F 6" (15 cm)
Vendor:POLOLURegular price Rs. 209.00Regular priceUnit price / perSold out -
Sold out
Pololu 30T Track Set - Black
Vendor:POLOLURegular price Rs. 1,809.00Regular priceUnit price / perSold out -
Pololu High-Power Stepper Motor Driver 36v8
Vendor:POLOLURegular price Rs. 3,119.00Regular priceUnit price / perSold out -
Sold out
Pololu USB AVR Programmer v2.1
Vendor:POLOLURegular price Rs. 1,239.00Regular priceUnit price / perSold out -
3-Channel Wide FOV Time-of-Flight Distance Sensor for TI-RSLK MAX Using OPT3101
Vendor:POLOLURegular price Rs. 6,289.00Regular priceUnit price / perSold out -
75:1 Micro Metal Gearmotor MP 6V with 12 CPR Encoder, Side Connector
Vendor:POLOLURegular price Rs. 3,149.00Regular priceUnit price / perSold out -
Happy hacker bundle - Crazyflie 2.1 Brushless
Vendor:BitcrazeRegular price Rs. 62,804.00Regular priceUnit price / perSold out -
Lighthouse explorer bundle - Crazyflie 2.1 Brushless
Vendor:BitcrazeRegular price Rs. 129,999.00Regular priceUnit price / perRs. 131,985.00Sale price Rs. 129,999.00Sold out