How does it work?
Pressure 16 Click as its foundation uses the WSEN-PADS, a high-resolution, ultra-compact piezoresistive absolute pressure sensor from Würth Elektronik. This MEMS-based absolute pressure sensor includes a sensing element, analog to digital converter, filters, and digital interface that sends the digital pressure data to the host controller. The MEMS-based sensing element consists of piezo-resistors on a thin Si-diaphragm connected in a Wheatstone bridge configuration, which detects absolute pressure in a range of 26 up to 126kPa with selectable output data rate up to 200Hz. This measurement range corresponds to the altitude range from -1877m (below sea level) to 10,109m (above sea level).
The absolute accuracy of the sensor, which is the output deviation from an ideal transfer function over the operating pressure range, is 100Pa that corresponds to approximately 8 meters in altitude. The piezoresistive sensing element of the WSEN-PADS is also sensitive to temperature changes and causes offset errors during pressure measurement. Therefore, real-time temperature compensation of the measured pressure plays an essential role in achieving high accuracy performed with the on-chip temperature sensor.
Pressure 16 Click allows using both I2C and SPI interfaces with a maximum frequency of 100kHz in Standard and 400kHz in Fast mode for I2C and 8MHz 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 the Click board™ may become unresponsive. While the I2C interface is selected, the WSEN-PADS allows the choice of the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled as ADDR SEL.
Also, the WSEN-PADS features an interrupt signal routed on the INT pin of the mikroBUS™ socket, which indicates when a new set of measured pressure data are available, simplifying data synchronization in the digital system that uses the device.
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 weather station equipment, altimeter and barometer applications, industrial, consumer applications, and many more
On-board modules
WSEN-PADS – high-resolution, ultra-compact piezoresistive absolute pressure sensor from Würth Elektronik
Key Features
Low power consumption, high precission, MEMS based piezo-resistive sensing principle, fully calibrated 24 bit pressure output, selectable output data rate up to 200Hz, embedded temperature sensor, interrupt feature, and more
Interface
I2C,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Pressure 16 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-JP4 | COMM SEL | Right | Communication Interface Selection SPI/I2C: Left position SPI, Right position I2C |
JP5 | ADDR SEL | Right | I2C Address Selection 0/1: Left position 0, Right position 1 |
Pressure 16 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating Pressure Range | 26 | – | 126 | kPa |
Output Data Rate | 0 | – | 200 | Hz |
Pressure Output Data Resolution | – | 24 | – | bit |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Pressure 16 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 Pressure 16 Click driver.
Key functions:
pressure16_cfg_setup
– Config Object Initialization function.pressure16_init
– Initialization function.pressure16_default_cfg
– Click Default Configuration function.
Examples description
This library contains API for the Pressure 16 Click driver. This demo application shows an example of pressure and temperature measurement
The application is composed of three sections :
void application_task ( void ) { static float pressure, temperature; pressure16_get_press_temp( &pressure16, &pressure, &temperature ); log_printf( &logger, " Pressure : %.2f mbar rn", pressure ); log_printf( &logger, " Temperature : %.2f C rn", temperature ); log_printf( &logger, "---------------------------rn" ); Delay_ms( 1000 ); }
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.Pressure16
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.