How does it work?
Air Flow Click as its foundation uses the LHDULTRAM012UB3, an LHD ULTRA series flow-based 2-in-1 differential pressure sensor from TE Connectivity Measurement Specialties. It consists of two combined calorimetric micro-flow channels and two sensor elements on a single chip. The first sensing element ensures precise measurement of low differential pressures with high resolution, and the second sensing element is optimized for pressures in the upper measuring range. A fast-response 24-bit onboard controller delivers precise measurement results across the entire dynamic measuring range from 0 to 1250Pa.
The specific concept of the LHDULTRAM012UB3 ensures continuous operation that is highly reliable and economically efficient in addition to the outstanding long-term stability, precision with patented real-time offset compensation, and linearization techniques. The LHD ULTRA’s high flow impedance ensures product-specific insensitivity to dust/moisture as well as minimal flow leakage.
Air Flow Click provides the possibility of using both I2C and SPI interfaces with a maximum frequency of 100kHz for I2C and 1MHz for SPI communication. The selection can be made by positioning SMD jumpers labeled as COMM SEL to an appropriate position. Note that all the jumpers’ positions must be on the same side, or else the Click board™ may become unresponsive.
While the I2C interface is selected, the LHDULTRAM012UB3 allows the choice of the least significant bit (LSB) of its I2C slave address using the SMD jumpers labeled as A0 and A1 to an appropriate position marked as 0 and 1. Also, an additional ready signal, routed on the INT pin of the mikroBUS™ socket, is added, indicating that new data is ready for the host.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Pressure
Applications
Can be used for industrial and medical applications that demand high precision, extended measurement range, and the convenience of a single device
On-board modules
LHDULTRAM012UB3 – LHD ULTRA series flow-based 2-in-1 differential pressure sensor from TE Connectivity Measurement Specialties
Key Features
Low power consumption, ultra-low pressure ranges, based on thermal microflow measurement, high flow impedance, outstanding long-term stability, on-chip temperature sensor and barometer, SPI/I2C interfaces, and more
Interface
I2C,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Air Flow Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1/JP2/JP5 | COMM SEL | Left | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP3-JP4 | COMM SEL | Left | Multifunctional Selection SPI lines/I2C Address Selection: Left position 0, Right position 1, Upper position SPI lines |
Air Flow Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Pressure Measurement Range | 0 | – | 12.5 | mbar |
Accuracy | – | 1.5 | – | % |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Air Flow 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Air Flow Click driver.
Key functions:
airflow_cfg_setup
– Config Object Initialization function.airflow_init
– Initialization function.airflow_default_cfg
– Click Default Configuration function.
Examples description
This example showcases ability for device to read differential pressure, atmospheric pressure and ambient temperature.
The demo application is composed of two sections :
void application_task ( void ) { float pressure_data, temperature_data; airflow_get_differential_pressure( &airflow, &pressure_data ); log_printf( &logger, "Differential pressure[Pa]: %.2frn", pressure_data ); airflow_get_atmospheric_pressure( &airflow, &pressure_data, &temperature_data ); log_printf( &logger, "Atmospheric pressure[mBar]: %.2frnTemperature[degC]: %.2frn", pressure_data, temperature_data ); log_printf( &logger, "***********************************************************rn" ); Delay_ms( 500 ); }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.AirFlow
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.
mikroSDK
This 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.
For more information about mikroSDK, visit the official page.