TOP Contributors

  1. MIKROE (2658 codes)
  2. Alcides Ramos (355 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 (136910 times)
  2. FAT32 Library (70036 times)
  3. Network Ethernet Library (56005 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41236 times)
  7. GSM click (29024 times)
  8. PID Library (26434 times)
  9. mikroSDK (26405 times)
  10. microSD click (25387 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 10 click

Rating:

5

Author: MIKROE

Last Updated: 2020-06-15

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Pressure

Downloaded: 1699 times

Not followed.

License: MIT license  

Pressure 10 Click features a digital interface barometric pressure sensor, labeled as HSPPAD042A. Barometric pressure is detected by the MEMS sensor that is placed on this Click boardâ„¢ using the piezoresistive bridge circuit formed on the silicon diaphragm.

No Abuse Reported

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

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

Do you want to report abuse regarding "Pressure 10 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 10 Click

Pressure 10 Click

Native view of the Pressure 10 Click board.

View full image
Pressure 10 Click

Pressure 10 Click

Front and back view of the Pressure 10 Click board.

View full image

Library Description

The library contains basic functions for reading temperature and pressure. The user has the ability to set the configuration of the measurement module.

Key functions:

  • float pressure10_get_temperature ( void ) - Get Temperature data in C
  • float pressure10_get_pressure ( void ) - Get Pressure data in %RH
  • void pressure10_control_cfg ( uint8_t ctrl_reg, uint8_t wr_data ) - Set the configuration in the control registers

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C or SPI module and all necessary GPIO pins
  • Application Initialization - Initialization driver init, check communication and configuration module for measurement.
  • Application Task - Reads pressure data and temperature data every 1500ms.
void application_task( )
{
    float temperature;
    float pressure;
    char demo_text[ 20 ];

    pressure = pressure10_get_pressure( );
    temperature = pressure10_get_temperature( );

    FloatToStr( temperature, demo_text );
    mikrobus_logwrite( ">> Temperature: ", _LOG_TEXT );
    mikrobus_logwrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( " C", _LOG_LINE );

    FloatToStr( pressure, demo_text );
    mikrobus_logwrite( ">> Pressure: ", _LOG_TEXT );
    mikrobus_logwrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( " %RH", _LOG_LINE );
    
    mikrobus_logwrite( "-----------------------", _LOG_LINE );
    Delay_ms( 1500 );
}

Other mikroE Libraries used in the example:

  • I2C Library
  • SPI Library
  • Conversions

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

Expand 2 click

6

Expand 2 click is an accessory board in mikroBUS form factor. It includes a 16-bit I/O expander MCP23017 with SPI clock speeds up to 10 MHz for higher throughput applications. Three HARDWARE ADDRESS SEL jumpers allow you to configure board address and connect up to eight devices on the bus.

[Learn More]

TV remote relay switch

1

This is a simple demonstration of using NEC protocol remote control with the IR click, Relay click and STM32 M4 clicker board. Upon a button press, an appropriate relay will toggle.

[Learn More]

BLE 9 click

0

BLE 9 Click is a fully embedded stand-alone Bluetooth 5.2 Energy connectivity module, equipped with the EFR32BG22 Series 2 Modules, an ultra-small, high-performing, standalone Bluetooth low energy module for easy integration of Bluetooth low energy connectivity (BLE) into various electronic devices. This module combines a high-performance Arm® Cortex®-M33 CPU microprocessor with FPU, and state-of-the-art power performance. Reliable and easy to use, BLE 9 click is a perfect solution for development of various IoT applications, smart home applications, BLE enabled toys, advanced robotics, and other similar applications.

[Learn More]