TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137045 times)
  2. FAT32 Library (70171 times)
  3. Network Ethernet Library (56044 times)
  4. USB Device Library (46366 times)
  5. Network WiFi Library (41983 times)
  6. FT800 Library (41313 times)
  7. GSM click (29080 times)
  8. mikroSDK (26520 times)
  9. PID Library (26454 times)
  10. microSD click (25449 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

Pressure 14 click

Rating:

5

Author: MIKROE

Last Updated: 2021-02-12

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Pressure

Downloaded: 1496 times

Not followed.

License: MIT license  

Pressure 14 Click is a compact add-on board that contains a board-mount pressure sensor. This board features the ABP2LANT060PG2A3XX, a piezoresistive silicon pressure sensor offering a digital output for reading pressure over the specified full-scale pressure span and a temperature range from Honeywell Sensing and Productivity Solutions.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Pressure 14 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Pressure 14 click" changes.

Do you want to report abuse regarding "Pressure 14 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Pressure 14 Click

Pressure 14 Click

Native view of the Pressure 14 Click board.

View full image
Pressure 14 Click

Pressure 14 Click

Front and back view of the Pressure 14 Click board.

View full image

Library Description

The library covers all the necessary functions to control the Pressure 14 click board. The library performs a standard I2C interface communication.

Key functions:

  • void pressure14_measure_cmd ( void ) - Output Measurement Command function.
  • void pressure14_read_press_and_temp ( uint8_t *status_byte, uint32_t *pressure_data, uint32_t *temp_data ) - Read pressure and temperature function.
  • float pressure14_get_pressure ( uint32_t pressure_raw, uint8_t conv_unit ) - Calculate pressure function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C and UART LOG and sets INT pin as input.
  • Application Initialization - Initialization driver enables I2C.
  • Application Task - (code snippet) This is an example that demonstrates the use of the Pressure 14 click board. In this example, the output measurement command is sent first forcing the ABP2 pressure sensor to exit standby mode and enter the operating mode. The device's busy state is evaluated via the end-of-conversion pin ( INT ) following the pressure and temperature data acquisition and calculation. The results are being sent to the Usart Terminal. This task repeats every 5 sec.
void application_task ( )
{
    pressure14_measure_cmd( );
    Delay_ms( 10 );
    
    if ( pressure14_check_busy_flag_int( ) == device_busy_false )
    {
        pressure14_read_press_and_temp( &status, &pressure_tmp,
                                         &temperature_tmp );
        Delay_ms( 100 );

        pressure = pressure14_get_pressure( pressure_tmp,
                                            PRESSURE14_CONV_UNIT_MILIBAR );                                 
        temperature = pressure14_get_temperature( temperature_tmp,
                                                  PRESSURE14_CONV_UNIT_CELSIUS );

        mikrobus_logWrite( " Pressure    : ", _LOG_TEXT );
        FloatToStr( pressure, demo_txt );
        mikrobus_logWrite( demo_txt, _LOG_TEXT );
        mikrobus_logWrite( " mbar", _LOG_LINE );

        mikrobus_logWrite( " Temperature : ", _LOG_TEXT );
        FloatToStr( temperature, demo_txt );
        mikrobus_logWrite( demo_txt, _LOG_TEXT );
        mikrobus_logWrite( " C", _LOG_LINE );
        mikrobus_logWrite( "-----------------------", _LOG_LINE );
    }
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • I2C
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Knob click

0

Knob G click features a combination of high-quality quadrature rotary encoder, and a LED ring composed of 24 individual green LEDs.

[Learn More]

Motion 3 click

0

Motion 3 Click is a Click board™ based on EKMC1606112, PIR motion sensor from Panasonic Corporation that's used as human motion detector. Also featured on Motion 3 Click bord is TLP241A photorelay from Toshiba that is used to provide a reinforced galvanic isolation for the external signals used to drive some external high power electronic equipment when motion is detected. It's allowing up to 40V between the SSR contacts in OFF state, and currents up to 2A while in ON state, thanks to a very low ON-state resistance. Motion 3 Click board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.

[Learn More]

BATT-MAN 2 click

0

BATT-MAN 2 Click is a compact add-on board representing an advanced battery and power management solution. This board features the MAX77654, a single inductor, multiple-output (SIMO) power management IC (PMIC) from Maxim Integrated, now part of Analog Devices. This I2C programmable board features a buck-boost regulator that provides three independently programmable power rails from a single inductor. Also, it has one 100mA LDO output with ripple rejection for audio and other noise-sensitive applications and a highly-configurable linear charger that supports a wide range of Li+ battery capacities featuring battery temperature monitoring for additional safety (JEITA).

[Learn More]