pressure13 2.0.0.0
Main Page

Pressure 13 click

‍Pressure 13 Click is a compact add-on board that contains an integrated pressure sensor for manifold air pressure measurement applications. This board features the KP229E2701, a miniaturized analog manifold air pressure sensor based on a capacitive principle from Infineon.

click Product page


Click library

  • Author : Stefan Ilic
  • Date : Aug 2021.
  • Type : ADC type

Software Support

We provide a library for the Pressure13 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 Pressure13 Click driver.

Standard key functions :

Example key functions :

Example Description

‍This is an example which demonstrates the use of Pressure 13 Click board.

The demo application is composed of two sections :

Application Init

‍Initialization driver enables - GPIO, initializes ADC, also write log.

void application_init ( void ) {
log_cfg_t log_cfg;
pressure13_cfg_t pressure13_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
pressure13_cfg_setup( &pressure13_cfg );
PRESSURE13_MAP_MIKROBUS( pressure13_cfg, MIKROBUS_1 );
if ( ADC_ERROR == pressure13_init( &pressure13, &pressure13_cfg ) )
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
log_info( &logger, " Application Task " );
log_printf( &logger, "-------------------------\r\n", voltage_val );
}
#define PRESSURE13_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition pressure13.h:106
void application_init(void)
Definition main.c:35

Application Task

‍Measure and display pressure ( mBar ). Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart approximately every sec.

void application_task ( void ) {
if ( pressure13_get_pressure( &pressure13, &pressure_val ) != ADC_ERROR ) {
log_printf( &logger, " Pressure: %.3f [mBar]\r\n", pressure_val );
}
log_printf( &logger, "-------------------------\r\n" );
Delay_ms ( 1000 );
}
void application_task(void)
Definition main.c:66

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.Pressure13

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.