How does it work?
Pressure 22 Click is based on the MS5839-02BA, an ultra-compact chlorine-resistant digital pressure and temperature sensor from TE Connectivity. It has a primary pressure operating range of 300 up to 1200mbar. The gel-filled design offers this sensor advanced water resistance, thus allowing it to measure extended pressure range from 10 up to 2000mbar, hence the 02BA in the marking. The overpressure comes at 10 bar. The sensor delivers a decent pressure sensing accuracy of ±0.5mbar. In addition to pressure, this sensor can measure the temperature in a range of -20 up to 85°C with a temperature sensing accuracy of ±2°C.
It integrates the 24-bit sigma-delta analog-to-digital converter for both the pressure and the temperature sensors. The MS5839-02BA sensor consists of a piezo-resistive sensor and a sensor interface integrated circuit. It converts the sensor’s uncompensated analog output value voltage to a 24-bit digital value. The sensor is factory calibrated at two temperature and pressure points, where as a result, six coefficients necessary to compensate for process variations and temperature variations are calculated and stored in the 112-bit PROM of the sensor.
Pressure 22 Click uses a standard 2-Wire I2C interface to communicate with the host MCU, supporting clock speeds up to 400KHz. The reset is only available over the I2C interface, as well as the read from the PROM.
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. It 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 the development of shallow diving computers, swim watches, fitness trackers, underwater equipment, diving equipment and computers, and more
On-board modules
MS5839-02BA – chlorine-resistant digital pressure and temperature sensor from TE Connectivity
Key Features
Low power consumption, chlorine, and saline resistant, water-resistant sealing, operating in a large pressure range, up to 10bar for overpressure, the robust gel-filled design allows operation in harsh environments, and more
Interface
I2C
Feature
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 22 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 |
Pressure 22 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating Pressure Range | 300 | – | 1200 | mbar |
Relative Pressure Accuracy | -0.5 | – | 0.5 | mbar |
Relative Temperature Accuracy | -2 | – | 2 | °C |
Resolution | – | 24 | – | bit |
Software Support
We provide a library for the Pressure 22 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Pressure 22 Click driver.
Key functions
-
pressure22_get_measurement_data
Pressure 22 get the measurement data function. -
pressure22_get_calibration_data
Pressure 22 get the calibration data function. -
pressure22_get_adc_data
Pressure 22 get the ADC data function.
Example Description
This library contains API for Pressure 22 Click driver. The demo application reads and calculate pressure and temperature data.
void application_task ( void )
{
static float temperature, pressure;
if ( PRESSURE22_OK == pressure22_get_measurement_data( &pressure22,
PRESSURE22_CMD_PRESS_OSR_4096,
PRESSURE22_CMD_TEMP_OSR_4096,
&temperature,
&pressure ) )
{
log_printf( &logger, " Temperature : %.2f degC rn", temperature );
log_printf( &logger, " Pressure : %.2f mBar rn", pressure );
log_printf( &logger, " _______________________ rn" );
Delay_ms( 1000 );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Pressure22
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.