How does it work?
Pressure 18 Click as its foundation uses the BMP384, a high accuracy, low-power, and low noise 24-bit absolute barometric pressure sensor from Bosch Sensortec. The BMP384 consists of a piezo-resistive pressure sensing element and a mixed-signal ASIC that performs A/D conversions and provides the conversion results alongside sensor-specific compensation data through a digital interface. It also provides the highest flexibility and can be adapted to the requirements regarding accuracy, measurement time, and power consumption by selecting many possible combinations of the sensor settings.
The BMP384 is very accurate, covering a wide measurement pressure range from 300hPa to 1250hPa, alongside a relative accuracy of ±9Pa (equivalent to ±75cm difference in altitude), the typical absolute accuracy of ±50Pa, and a temperature coefficient offset of ±1Pa/K. This feature makes it suitable for water-level detection and differential barometric pressure measurements.
This sensor operates in three power modes: Sleep, Normal, and Forced Mode. The Normal Mode comprises automated perpetual cycling between an active measurement period and an inactive Standby period. In Sleep Mode, no measurements are being performed, while in Forced Mode, a single measurement performs. When a measurement is finished, the BMP384 returns to Sleep Mode. Also, a set of oversampling settings are available, ranging from ultra-low power to highest resolution setting to adapt the Click board™ to the target application.
Pressure 18 Click allows using both I2C and SPI interfaces with a maximum frequency of 3.4MHz for I2C and 10MHz 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 BMP384 allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled ADDR SEL. This Click board™ also possesses an additional interrupt pin, routed to the INT pin on the mikroBUS™ socket, indicating when a specific interrupt event occurs, such as FIFO overflow, data-ready, and more.
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
BMP384 – absolute barometric pressure sensor from Bosch Sensortec
Key Features
Low power consumption and low noise, accuracy, wide measurement range, 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
Pinout diagram
This table shows how the pinout on Pressure 18 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 |
JP1-JP3 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP4 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
Pressure 18 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Pressure Measurement Range | 300 | – | 1250 | hPa |
Relative Pressure Accuracy | – | ±9 | – | Pa |
Absolute Pressure Accuracy | – | ±50 | – | Pa |
Resolution | – | 24 | – | bit |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Pressure 18 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 18 Click driver.
Key functions
-
pressure18_get_int_pin
This function returns the INT pin logic state. -
pressure18_read_data
This function reads the sensor measurements data: pressure in Pascals and temperature in Celsius. -
pressure18_soft_reset
This function performs the software reset feature.
Example Description
This example demonstrates the use of Pressure 18 Click board™ by reading and displaying the pressure and temperature measurements.
void application_task ( void )
{
if ( pressure18_get_int_pin ( &pressure18 ) )
{
float pressure, temperature;
if ( PRESSURE18_OK == pressure18_read_data ( &pressure18, &pressure, &temperature ) )
{
log_printf ( &logger, " Pressure: %.1f mBarrn", pressure * PRESSURE18_PA_TO_MBAR );
log_printf ( &logger, " Temperature: %.2f Crnn", temperature );
}
}
}
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.Pressure18
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.