How does it work?
Barometer 7 Click as its foundation uses the KP264XTMA1, a high-accuracy digital barometric air pressure sensor from Infineon Technologies, to measure air pressure in a specific environment. The sensor is individually calibrated and temperature compensated, reducing software complexity by directly reading pressure and temperature. The KP264XTMA1 provides a fast startup time of less than 10ms, measures pressure in a range from 40kPa up to 115kPa with an accuracy of ±1.5kPa, ideally suited to the harsh environmental conditions prevalent in industrial and consumer applications.
This Click board™ communicates with MCU through a standard SPI interface that enables high clock speeds up to 5MHz. The KP264XTMA1 converts pressure into a 10-bit digital value and sends the information via the SPI interface. In addition, a temperature sensor is also integrated into this chip. The 10-bit temperature information will also be transmitted via the SPI interface based on the received SPI command.
The KP264XTMA1 is fully calibrated and has a linear transfer function between the applied pressure and the digital output signal. Its unique reliability feature is the integrated diagnostic mode, which tests the sensor cells and the signal path, triggered with an SPI command.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use 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 many more
On-board modules
KP264XTMA1 – high-accuracy digital barometric air pressure sensor from Infineon Technologies
Key Features
Low power consumption, high accuracy, integrated temperature sensor, 10-bit pressure and temperature resolution, self-diagnosis features, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Barometer 7 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 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Barometer 7 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Pressure Range | 40 | – | 115 | kPa |
Accuracy (0 – 85°C) | -1.5 | – | +1.5 | kPa |
Resolution | – | 10 | – | bits |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the Barometer 7 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 7 Click driver.
Key functions
-
barometer7_get_pressure
Barometer 7 get pressure function. -
barometer7_get_temperature
Barometer 7 get temperature function.
Example Description
This library contains API for Barometer 7 Click driver. The demo application reads and calculate temperature and pressure data.
void application_task ( void )
{
static float pressure;
static float temperature;
barometer7_get_pressure( &barometer7, &pressure );
if ( BAROMETER7_NO_ERROR != barometer7.diagnosis )
{
display_error( );
}
log_printf( &logger, " Pressure : %.0f mbarrn", pressure );
barometer7_get_temperature( &barometer7, &temperature );
if ( BAROMETER7_NO_ERROR != barometer7.diagnosis )
{
display_error( );
}
log_printf( &logger, " Temperature : %.2f Crn", temperature );
log_printf( &logger, "--------------------------rn" );
Delay_ms( 2000 );
}
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.Barometer7
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.