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: 2018-11-02
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Pressure
Downloaded: 3855 times
Not followed.
License: MIT license
Pressure 6 click features a simple, yet highly accurate and reliable pressure sensor labeled as BM1386GLV, produced by ROHM. This sensor is a piezo-resistive pressure sensor with internal thermal compensation, which greatly simplifies the pressure reading.
Do you want to subscribe in order to receive notifications regarding "Pressure 6 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Pressure 6 click" changes.
Do you want to report abuse regarding "Pressure 6 click".
Library Description
The library initializes and defines the I2C bus driver and drivers that offer a choice for writing data in register and read data from register. The library includes function for read Temperature data and Pressure data. The user also has the function for power ON and porew OFF procedure and function for reads Interrupt state.
Key functions:
uint16_t pressure6_getPressure()
- Functions for read Pressure dataExamples description
The application is composed of the three sections :
void applicationTask()
{
pressure6_waitingForNewData();
Pressure = pressure6_getPressure();
Temperature = pressure6_getTemperatre();
// Logs Pressure and Temperature data
IntToStr(Pressure, demoText);
mikrobus_logWrite(" Pressure : ", _LOG_TEXT);
mikrobus_logWrite(demoText, _LOG_LINE);
IntToStr(Temperature, demoText);
mikrobus_logWrite(" Temperature : ", _LOG_TEXT);
mikrobus_logWrite(demoText, _LOG_LINE);
mikrobus_logWrite(" ", _LOG_LINE);
Delay_ms( 1000 );
}
Additional notes and information
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.