How does it work?
Pressure 20 Click as its foundation uses the ICP-20100, a high accuracy, low power, barometric pressure, and temperature sensor solution from TDK InvenSense. It integrates a capacitive pressure sensor for monitoring pressure changes in the range from 30kPa to 110kPa with an accuracy of ±20Pa over a wide operating temperature range. The ICP-20100 achieves the industry’s lowest pressure noise of 0.4Pa RMS while attaining the industry’s lowest power consumption and retains excellent temperature stability with a temperature coefficient of ±0.4Pa/°C.
This MEMS sensor consists of a capacitive pressure sensor whose capacitance changes according to the pressure applied. An integrated temperature sensor on the same MEMS sensor allows accurate temperature measurements. Other industry-leading features include up to 20-bits output data, programmable digital filters, calibration, FIFO, and programmable interrupts.
Pressure 20 Click allows using both I2C and SPI interfaces with a maximum frequency of 1MHz for I2C and 12MHz 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 ICP-20100 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/underflow, the threshold over/underrun, 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, industrial, consumer, weather stations, and more
On-board modules
ICP-20100 – digital barometric pressure and temperature sensor from TDK InvenSense
Key Features
Low power consumption, advanced absolute and relative accuracy, improved temperature stability, programmable output and noise performance, digital filtering for pressure signals, programmable interrupt, selectable interface, 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 20 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 | ADDR SEL | Right | I2C Address Selection 0/1: Left position 0, Right position 1 |
JP2-JP5 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
Pressure 20 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating Pressure Range | 30 | – | 110 | kPa |
Absolute Accuracy | – | ±20 | – | Pa |
Resolution | – | 20 | – | bits |
Temperature Coefficient | – | ±0.4 | – | Pa/°C |
Operating Temperature Range | -40 | ±25 | ±85 | °C |
Software Support
We provide a library for the Pressure 20 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 20 Click driver.
Key functions
-
pressure20_get_int_pin
This function returns the INT pin logic state. -
pressure20_clear_interrupts
This function reads and clears the interrupt status register. -
pressure20_read_data
This function reads the pressure [mBar] and temperature [Celsius] data.
Example Description
This example demonstrates the use of Pressure 20 Click board™ by reading and displaying the pressure and temperature data on the USB UART.
void application_task ( void )
{
// Wait for the data ready interrupt
while ( pressure20_get_int_pin ( &pressure20 ) );
float pressure, temperature;
if ( ( PRESSURE20_OK == pressure20_clear_interrupts ( &pressure20 ) ) &&
( PRESSURE20_OK == pressure20_read_data ( &pressure20, &pressure, &temperature ) ) )
{
log_printf ( &logger, " Pressure: %.1f mBarrn", pressure );
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.Pressure20
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.