We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-10-21
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Pressure
Downloaded: 1967 times
Not followed.
License: MIT license
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.
Do you want to subscribe in order to receive notifications regarding "Pressure 13 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Pressure 13 click" changes.
Do you want to report abuse regarding "Pressure 13 click".
Library Description
The library covers all the necessary functions to control Pressure 13 click board.
Key functions:
void pressure13_gpio_driver_init( pressure13_obj_t gpio_obj )
- Function initializes GPIO driver for the desired MIKROBUS1.Examples description
The application is composed of three sections :
void application_task ( )
{
adc_value = pressure13_adc_read( );
WordToStr( adc_value, log_text );
Ltrim( log_text );
mikrobus_logWrite( " ADC : ", _LOG_TEXT );
mikrobus_logWrite( log_text, _LOG_LINE );
calculate_pressure( );
FloatToStr( v_out, log_text );
mikrobus_logWrite( " Vout : ", _LOG_TEXT );
mikrobus_logWrite( log_text, _LOG_TEXT );
mikrobus_logWrite( " V", _LOG_LINE );
FloatToStr( pressure, log_text );
mikrobus_logWrite( " Pressure: ", _LOG_TEXT );
mikrobus_logWrite( log_text, _LOG_TEXT );
mikrobus_logWrite( " mBar", _LOG_LINE );
mikrobus_logWrite( "-------------------------", _LOG_LINE );
Delay_ms( 5000 );
}
void calculate_pressure ( void )
- Calculate Voltage Reference and Pressure.Other mikroE Libraries used in the example:
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.