Pressure 11 Click Board
Pressure 11 Click Board
The Pressure 11 Click Board™ is a digital barometer on a Click Board™. Pressure 11 is equipped with the LPS33HW, an absolute piezoresistive pressure sensor, manufactured using proprietary technology. This sensor offers many benefits, including low power consumption, high resolution of the pressure data, embedded thermal compensation, FIFO buffer with several operating modes, temperature measurement, etc.
The most distinctive feature of this sensor is its ability to measure the pressure within the wide range between 260 - 1260hPa, offering calibrated readings over the SPI or I2C digital interface.
Software Support
We provide a library for the Pressure 11 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library initializes and defines the I2C or SPI bus driver and drivers that offer a choice for writing data in register and reads data form register. The library includes function for read Pressure data in mBar and Temperature data in C. The user also has the function for read device ID and function for read interrupt state.
Key Functions
float pressure11_getPressure()
- Functions for pressure reading.float pressure11_getTemperature()
- Functions for temperature reading.
Example Description
The application is composed of the three sections :
- System Initialization - Initializes SPI module and sets CS pin as OUTPUT and INT pin as INPUT.
- Application Initialization - Initializes SPI driver and checks chip ID.
- Application Task - Reads Pressure and Temperature values and displays it on UART LOG.
void applicationTask() { float Temperature; float Pressure; Temperature = pressure11_getTemperature(); FloatToStr(Temperature,demoText); mikrobus_logWrite( "Temperature: ", _LOG_TEXT ); mikrobus_logWrite( demoText, _LOG_TEXT ); mikrobus_logWrite( " C", _LOG_LINE ); Pressure = pressure11_getPressure(); FloatToStr(Pressure,demoText); mikrobus_logWrite( "Pressure: ", _LOG_TEXT ); mikrobus_logWrite( demoText, _LOG_TEXT ); mikrobus_logWrite( " hPa (mBar)", _LOG_LINE ); mikrobus_logWrite( "----------------------", _LOG_LINE ); Delay_ms( 500 ); } The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
SPI
Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The Pressure 11 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.
Pressure 11 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.