VAV Press click
VAV Press Click is a compact add-on board that contains a board-mount pressure sensor. This board features the LMIS025B, a low differential pressure sensor from First Sensor (part of TE Connectivity). It is based on thermal flow measurement of gas through a micro-flow channel integrated within the sensor chip. The innovative LMI technology features superior sensitivity, especially for ultra-low pressures ranging from 0 to 25Pa. The extremely low gas flow through the sensor ensures high immunity to dust contamination, humidity, and long tubing compared to other flow-based pressure sensors.
click Product page
Click library
- Author : Nenad Filipovic
- Date : Mar 2021.
- Type : I2C type
Software Support
We provide a library for the VavPress 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 VavPress Click driver.
Standard key functions :
vavpress_cfg_setup
Config Object Initialization function.
void vavpress_cfg_setup(vavpress_cfg_t *cfg)
VAV Press configuration object setup function.
VAV Press Click configuration object.
Definition vavpress.h:131
vavpress_init
Initialization function.
err_t vavpress_init(vavpress_t *ctx, vavpress_cfg_t *cfg)
VAV Press initialization function.
VAV Press Click context object.
Definition vavpress.h:115
vavpress_default_cfg
Click Default Configuration function.
err_t vavpress_default_cfg(vavpress_t *ctx)
VAV Press default configuration function.
Example key functions :
vavpress_set_default_sensor_param
VAV Press set default sensor parameter function.
err_t vavpress_set_default_sensor_param(vavpress_t *ctx, vavpress_sensor_param_data_t *param_data)
VAV Press set default sensor parameter function.
vavpress_sensor_param_data_t param_data
Definition main.c:37
VAV Press Click sensor parameter data.
Definition vavpress.h:175
vavpress_get_dif_press_and_temp
VAV Press get differential pressure and temperature function.
err_t vavpress_get_dif_press_and_temp(vavpress_t *ctx, vavpress_sensor_param_data_t *param_data, float *diff_press, float *temperature)
VAV Press get differential pressure and temperature function.
vavpress_retrieve_electronic_signature
VAV Press retrieve electronic signature function.
err_t vavpress_retrieve_electronic_signature(vavpress_t *ctx, vavpress_el_signature_data_t *el_signature_data)
VAV Press retrieve electronic signature function.
vavpress_el_signature_data_t el_signature_data
Definition main.c:36
VAV Press Click electronic signature.
Definition vavpress.h:156
Example Description
This library contains API for the Vav Press click driver. This demo application shows an example of differential pressure and temperature measurement.
The demo application is composed of two sections :
Application Init
Initialization of I2C module and log UART. After driver initialization and default settings, the app display retrieve the electronic signature and set the sensor parameters data.
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_printf( &logger, "\r\n" );
log_info( &logger, " Application Init " );
if ( init_flag == I2C_MASTER_ERROR ) {
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
log_info( &logger, " Application Task " );
Delay_ms ( 100 );
Delay_ms ( 100 );
log_printf( &logger, "--------------------------------\r\n" );
log_printf( &logger, "--------------------------------\r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 100 );
}
#define VAVPRESS_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition vavpress.h:103
void application_init(void)
Definition main.c:39
char output_type
Definition vavpress.h:161
uint16_t pressure_range
Definition vavpress.h:160
float firmware_version
Definition vavpress.h:157
char part_number[12]
Definition vavpress.h:158
uint16_t scale_factor
Definition vavpress.h:162
uint8_t week_number
Definition vavpress.h:164
uint16_t sequence_number
Definition vavpress.h:166
uint8_t year_number
Definition vavpress.h:165
char lot_number[7]
Definition vavpress.h:159
char calibration_id[2]
Definition vavpress.h:163
uint16_t readout_at_known_temperature
Definition vavpress.h:178
float known_temperature_c
Definition vavpress.h:179
uint16_t scale_factor_press
Definition vavpress.h:177
uint16_t scale_factor_temp
Definition vavpress.h:176
Application Task
This is an example that shows the use of a Vav Press click boardâ„¢. Logs pressure difference value [ Pa ] and temperature [ degree Celsius ] value. Results are being sent to the Usart Terminal where you can track their changes.
log_printf( &logger, " Diff. Pressure : %.4f Pa\r\n", diff_press );
log_printf( &logger, " Temperature : %.4f C\r\n", temperature );
log_printf( &logger, "--------------------------------\r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
} else {
log_error( &logger, " Communcation Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
}
void application_task(void)
Definition main.c:98
@ VAVPRESS_OK
Definition vavpress.h:146
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.VavPress
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.