Although the internal pressure sensing element is thermally compensated, the thermal readings are also available on a separate 16-bit register. The conversion data can be either stored on the internal FIFO buffer or directly accessed over the I2C interface. The BM1386GLV offers an IIR filtering, which allows further signal conditioning and increased accuracy.
The BM1386GLV sensor requires a low number of external components, allowing a very compact design. Therefore, an additional I2C level translator is used on the Pressure 6 click, expanding its connectivity options to a much wider range of microcontrollers (MCUs). Features such as the long-term stability, linearity, and good reproducibility, are achieved by employing very advanced piezo-resistive micromachining processes so that the sensor can be used for development of the industry-related applications, as well as in the healthcare applications, mobile devices, smartphone applications, and similar.
How does it work?
The main component of the Pressure 6 click is the BM1386GLV, a pressure sensor IC, produced by ROHM Semiconductor company. This is a highly integrated piezo-resistive absolute pressure sensor, with some advanced features, such as the thermal compensation of the pressure micro-electromechanical sensing element (MEMS), signal conditioning by the embedded IIR filtering section, and a FIFO buffer. The FIFO buffer has 32 slots for storing the data from both the thermal and the pressure sensor. The FIFO buffer can be disabled if the application needs to read the data directly. The interrupt pin DRI can be configured to alert the host MCU about the FIFO full buffer, FIFO watermark threshold exceeded event, and Data Ready event. The DRI is configured as an open-drain output pin, pulled up by a resistor on the Pressure 6 click. The presence of DRI pin allows more efficient firmware to be written, saving the host MCU from constantly having to poll the status register. The DRI pin is routed to the mikroBUS™ INT pin.
The pressure readings are stored in three pressure registers, while the temperature readings are stored in two thermal registers. The pressure data is 20 bits long, while the thermal data is 16 bits long. The same 16-bit A/D converter is used for both sensors, but the readings from the pressure sensor are further conditioned by the on-chip signal processing section. After the conversion interval is completed, the RD_DRDY bit will indicate that there is data ready for reading on the respective output registers. Once this bit has been read, it will be reverted to 0, waiting for a new conversion interval to be finished. The state of this bit can be redirected to the DRI pin, allowing an interrupt event to be triggered on a host MCU, whenever there is new data available.
The conversion data is available over the I2C interface, as mentioned before. The I2C bus lines (SDA and SCL) are routed to the respective I2C mikroBUS™ pins which are pulled up by resistors on the Click board™ itself, allowing the Click board™ to be used right out of the box. The datasheet of the BM1386GLV IC offers conversion formulas which can be used to convert the raw binary values from the respective registers to physical, human-readable format. However, Pressure 6 click comes with the library that contains functions which output properly formatted thermal and pressure readings.
In addition to the BM1386GLV IC, Pressure 6 click incorporates an additional IC. It is the PCA9306, a well-known bi-directional I2C level translator from Texas Instruments, used on many different Click board™ designs, due to its simplicity and reliability. Since the BM1386GLV IC is limited to 3.3V operation, this IC allows it to be used with 5V too, expanding the connectivity of the Pressure 6 click to MCUs which use 5V levels for the I2C communication. The logic voltage level selection can be made by switching the small onboard SMD jumper labeled as VCC SEL, to a proper position (3V3 or 5V).
Specifications
Type
Pressure
Applications
It can be used for weather stations, mobile devices, healthcare devices, but also for development of industrial-related applications
On-board modules
BM1386GLV, a pressure sensor IC, produced by ROHM Semiconductor company; PCA9306, a bi-directional I2C level translator from Texas Instruments
Key Features
Very accurate pressure and temperature readings, on-chip IIR filtering and data conditioning, thermal compensation of the internal MEMS sensor, it can be used with the wide range of different microcontrollers, both operating with 3.3V and 5V communication levels
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on the Pressure 6 click corresponds with the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard jumpers and settings
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED indicator |
JP1 | VCC SEL | Left | Logic level voltage selection: left position 3.3V, right position 5V |
Pressure 6 click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Pressure range | 300 | – | 1300 | hPa |
Pressure measurement resolution (absolute / relative) | -0.12 / -1 | – | +0.12 / +1 | hPa |
Temperature range | -40 | – | +85 | ˚C |
Temperature measurement resolution | -2 | +2 | ˚C |
Software Support
We provide a library for the Pressure 6 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Library Description
This library contains API for Pressure 6 Click driver.
Key functions
-
This function gets the temperature data from the sensor.
-
This function turns the sensor on.
-
This function gets pressure data from the sensor.
Example Description
The example gets the pressure and temperature values from the sensors and logs on terminal.
void application_task ( void )
{
// Task implementation.
pressure6_waiting_for_new_data( &pressure6 );
Pressure = pressure6_get_pressure( &pressure6 );
Temperature = pressure6_get_temperature( &pressure6 );
log_printf( &logger, "Pressure: %urn", pressure);
log_printf( &logger, "Temperature: %urn", temperature);
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Other MIKROE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Pressure6
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.
For more information about mikroSDK, visit the official page.