How does it work?
Barometer 5 Click as its foundation uses the MS5637-02BA03, a high accuracy low voltage barometric and temperature sensor from TE Connectivity Measurement Specialties, to measure air pressure in a specific environment. This new sensor module generation is based on leading MEMS technology, where the sensing principle leads to very low hysteresis and high stability of both pressure and temperature signal. It consists of a piezoresistive sensor and a sensor interface integrated circuit. The primary function of the MS5637-02BA03 is to convert and provide the uncompensated analog output voltage from the piezoresistive pressure sensor to a 24-bit digital value for the temperature of the sensor. It can measure pressure in a range from 300mbar up to 1.2bar with an accuracy of ±2mbar over a wide operating temperature range at the industry’s lowest power.
As mentioned before, the MS5637-02BA03 has integrated ultra-low-power 24-bit ΔΣ ADC with internal factory-calibrated coefficients, which alongside precise pressure value, also provides temperature value. A high-resolution temperature output allows the implementation of an altimeter/thermometer function without any additional sensor, with an altitude resolution at sea level of 13cm of air.
Barometer 5 Click communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz. Besides, it also offers different operation modes allowing the user to optimize for conversion speed and current consumption.
Suppose the user decides not to use our compliant library but to do software development independently. In that case, it is recommended to compensate for the non-linearity over the temperature to obtain the best accuracy over the temperature range, particularly at low temperatures. This can be achieved by correcting the calculated temperature, offset, and sensitivity by a second-order correction factor.
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, especially when low power consumption is required
On-board modules
MS5637-02BA03 – high accuracy low voltage barometric and temperature sensor from TE Connectivity Measurement Specialties, to measure air pressure in a specific environment
Key Features
Low power consumption, high resolution and precision, embedded temperature sensor, temperature stability, accuracy of ±2mbar over a wide operating temperature range, also measure altitude of 13cm, and more
Interface
I2C
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 Barometer 5 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 |
Barometer 5 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Pressure Range | 300 | – | 1200 | mbar |
Accuracy | – | ±2 | – | mbar |
ADC Resolution | – | 24 | – | bit |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Barometer 5 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 Barometer 5 Click driver.
Key functions
-
barometer5_get_data
Barometer 5 get data function. -
barometer5_get_pressure
Barometer 5 get pressure data function. -
barometer5_get_temperature
Barometer 5 get temperature data function.
Example Description
This library contains API for Barometer 5 Click driver. The demo application reads and calculate temperature and pressure data.
void application_task ( void )
{
static float temperature;
static float pressure;
if ( barometer5_get_data( &barometer5, &temperature, &pressure ) == BAROMETER5_OK )
{
log_printf( &logger, " Pressure : %.2f mbar rn", pressure );
log_printf( &logger, " Temperature : %.2f C rn", temperature );
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 way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Barometer5
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.