OFF
MIKROE-1422
30 g
Status:
Pressure Click is a compact add-on board that contains a board-mount pressure sensor. This board features the LPS331AP, an ultra-compact absolute piezoresistive pressure sensor from STMicroelectronics. The LPS331AP provides a typical relative accuracy over pressure of ±0.1mbar and absolute accuracy of ±2mbar with high overpressure capability. It converts output data into a 24-bit digital value and sends the information via a configurable host interface that supports SPI and I2C serial communications. It measures absolute pressure from 260mbar to 1260mbar over a wide operating temperature range. This Click board™ is suited for various indoor/outdoor pressure-based applications, altitude tracking, industrial, consumer, weather stations, and more.
Pressure Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
Pressure Click is based on the LPS331AP, a high accuracy, low-power 24-bit absolute barometric pressure sensor from STMicroelectronics. The LPS331AP provides a typical relative accuracy over pressure of ±0.1mbar and absolute accuracy of ±2mbar with high overpressure capability. It measures absolute pressure from 260mbar to 1260mbar over a wide operating temperature range. The complete device includes a sensing element based on a piezoresistive Wheatstone bridge and an interface that takes the information from the sensing element to the host MCU as a digital signal.
The sensing element consists of a suspended membrane realized inside a single mono-silicon substrate capable of detecting pressure, manufactured using a dedicated process developed by ST called VENSENS. This process allows the building of a mono-silicon membrane above an air cavity with a controlled gap and defined pressure. On the other hand, the LPS331AP’s interface is manufactured using a standard CMOS process and factory calibrated at three temperatures and two pressures for sensitivity and accuracy.
Pressure Click allows using both I2C and SPI interfaces. The selection can be made by positioning SMD jumpers labeled as COMM SEL in an appropriate position. Note that all the jumpers' positions must be on the same side, or the Click board™ may become unresponsive. While the I2C interface is selected, the LPS331AP allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled I2C ADD. This Click board™ also possesses an additional interrupt pin, routed to the INT pin on the mikroBUS™ socket, indicating when a specific pressure event occurs.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Type
Pressure
Applications
Can be used for various indoor/outdoor pressure-based applications, altitude tracking, industrial, consumer, weather stations, and more
On-board modules
LPS331AP - absolute barometric pressure sensor from STMicroelectronics
Key Features
Low power consumption, high accuracy, wide measurement range, high performance, interrupt feature, selectable interface, long-term stability, and more
Interface
I2C,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
This table shows how the pinout on Pressure Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1-JP4 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP5 | ADDR SEL | Left | I2C Address Selection 1/0: Left position 1, Right position 0 |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
Pressure Measurement Range | 260 | - | 1250 | mbar |
Relative Pressure Accuracy | - | ±0.1 | - | mbar |
Absolute Pressure Accuracy | - | ±2 | - | mbar |
Resolution | - | 24 | - | bit |
Operating Temperature Range | -40 | +25 | +85 | °C |
We provide a library for the Pressure Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Pressure Click driver.
Key functions
Generic Single Write function.
Generic Multiple Read function.
Pressure Get function.
Example Description
This is a example which demonstrates the use of Pressure Click board. Measured pressure and temperature data from the LPS331AP sensor on Pressure click.
void application_task( void )
{
uint8_t status;
float press;
float temp;
status = pressure_get_status( &pressure, PRESSURE_FLAG_MASK_P_DATA_RDY |
PRESSURE_FLAG_MASK_T_DATA_RDY );
while (!status)
{
status = pressure_get_status( &pressure, PRESSURE_FLAG_MASK_P_DATA_RDY |
PRESSURE_FLAG_MASK_T_DATA_RDY );
}
press = pressure_get_pressure( &pressure );
temp = pressure_get_temperature( &pressure );
log_printf( &console, "** Pressure is %.2f mbarrn", press );
log_printf( &console, "** Temperature is %.2f ", temp );
log_write( &console, deg_cels, LOG_FORMAT_LINE );
log_write( &console, "**************************************",
LOG_FORMAT_LINE );
Delay_ms( 500 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.