How does it work?
Pressure 2 Click is based on the MS580314BA01-00, a high accuracy, low-power, and low noise 24-bit absolute pressure/altitude sensor from TE Connectivity Measurement Specialties. The MS580314BA01-00 combines an ultra-low power 24-bit ΔΣ ADC with internal factory-calibrated coefficients and a high linearity pressure sensor to optimize current consumption and conversion speed while providing different operation modes and a precise digital 24-bit pressure and temperature value. The MS580314BA01-00 is accurate, covering a wide measurement pressure range from 0 to 14.000mbar over a wide operating temperature range from -40 to +85°C, and its accuracy from -200 to +100mbar (typical accuracy of 20mbar).
The MS580314BA01-00 is based on leading MEMS technology and the latest benefits from TE Connectivity. This sensing principle leads to very low hysteresis and high pressure and temperature signal stability. Also, the gel protection and antimagnetic stainless steel cap make the MS580314BA01-00 durable up to 30bars of pressure.
Pressure 2 Click allows using both I2C and SPI interfaces with a maximum frequency of 400kHz for I2C and 20MHz for SPI communication. 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 MS580314BA01-00 allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled I2C ADD.
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.
Specifications
Type
Pressure
Applications
Can be used for various pressure-based applications, altitude tracking, industrial, consumer, weather stations, and more
On-board modules
MS580314BA01-00 – absolute pressure/altitude sensor from TE Connectivity Measurement Specialties
Key Features
Low power consumption, accuracy, wide measurement range, performance, high resolution, 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
Pinout diagram
This table shows how the pinout on Pressure 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
J1-J5 | COMM SEL | Left | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
J3 | I2C ADD | Left | 2C Address Selection 1/0: Left position 1, Right position 0 |
Pressure 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Measurement Range | 0 | – | 14.000 | mbar |
Accuracy | -200 | 20 | 100 | mbar |
Resolution | – | 24 | – | bit |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Pressure 2 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 2 Click driver.
Key functions
-
This function read calibration coefficients and return coefficient.
-
This function preforms ADC conversion and return 24bit result.
-
Functions for readding sensor.
Example Description
This application measures pressure in range from 0 to 14 bars (with a resolution of up to 0.2 mbars), but because of the stainless steel cap enclosure, the sensor can withstand up to 30 bars of pressure.
void application_task ( void )
{
pressure2_read_sensor( &pressure2, &pressure_p, &pressure_t );
log_printf( &logger,"Pressure: %.2frn", pressure_p );
log_printf( &logger,"Temperature: %.2frn", pressure_t );
Delay_ms( 1000 );
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.Pressure2
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.
mikroSDK
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.