pressure7 2.0.0.0
|
Pressure 7 click features an integrated digital barometric pressure and temperature sensor labeled as MS5837. This sensor relies on the advanced MEMS technology by MEAS Switzerland, a well-known high-volume MEMS manufacturer.
We provide a library for the Pressure7 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Pressure7 Click driver.
- Initialization function.void pressure7_cfg_setup ( pressure7_cfg_t *cfg );
PRESSURE7_RETVAL pressure7_init ( pressure7_t *ctx, pressure7_cfg_t *cfg );
void pressure7_default_cfg ( pressure7_t *ctx );
- This function starts measurement and calculation data.uint8_t pressure7_read_PROM( pressure7_t *ctx );
void pressure7_get_sensor_data( pressure7_t *ctx, float *Temperature, float *Pressure );
This example reads temperature and pressure and logs it every 3 seconds.
The demo application is composed of two sections :
Initialize Logger and Click object and call pressure7_read_PROM() function.
Get sensor data on every 3 seconds and send measured temperature and pressure to logger.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.