TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136668 times)
  2. FAT32 Library (69910 times)
  3. Network Ethernet Library (55924 times)
  4. USB Device Library (46252 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41129 times)
  7. GSM click (28973 times)
  8. PID Library (26406 times)
  9. mikroSDK (26346 times)
  10. microSD click (25350 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

Heart Rate 9 click

Rating:

5

Author: MIKROE

Last Updated: 2019-11-29

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 2570 times

Not followed.

License: MIT license  

The Heart Rate 9 click is a Click boardâ„¢ which features PIC16F1779 8-bit MCU and SFH 7060 heart rate and pulse oximetry monitoring sensor. This Click boar employs a very sensitive analog front-end IC with high dynamic range, which ensures accurate and reliable readings.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Heart Rate 9 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Heart Rate 9 click" changes.

Do you want to report abuse regarding "Heart Rate 9 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

Heart Rate 9 click

Heart Rate 9 click

Native view of the Heart Rate 9 click board.

View full image
Heart Rate 9 click

Heart Rate 9 click

Front and back view of the Heart Rate 9 click board.

View full image

Library Description

Initializes and defines UART bus driver, and defines driver's functions for reading Heart Rate data uses Heart Rate 9 clicks.

Key functions:

  • uint8_t heartrate9_read_byte() - Read Single Byte
  • uint8_t heartrate9_byte_ready() - Check for new byte received/li>

Examples description

The application is composed of three sections :

  • System Initialization - Initializes UART module
  • Application Initialization - Initializes Driver init and logs instructions on commands and format of response data
  • Application Task - Waits for valid user input and executes functions based on set of valid commands
void applicationTask()
{
    char hr9_rx_data;
    char console_rx_data;
    
    uint8_t hr9_drdy_flag;
    uint8_t console_drdy;

    console_drdy = UART_Rdy_Ptr( );

    if ( console_drdy != 0 )
    {
        console_rx_data = UART_Rd_Ptr( );
        
        if ( ( console_rx_data == 's' ) || ( console_rx_data == 'S' ) )
        {
            mikrobus_logWrite( " >> [s or S] - START << ", _LOG_LINE );
            start_app_flag = 1;
        }
        
		if ( ( console_rx_data == 'b' ) || ( console_rx_data == 'B' ) )
        {
            mikrobus_logWrite( " >> [b or B] - BREAK << ", _LOG_LINE );
            start_app_flag = 0;
        }
        
		if ( ( console_rx_data == 'h' ) || ( console_rx_data == 'H' ) )
        {
            mikrobus_logWrite( " >> [h or H] - HELP << ", _LOG_LINE );
            heartrate9_help( );
        }
    }
    
    if ( start_app_flag == 1 )
    {
        hr9_drdy_flag = heartrate9_byte_ready( );

        if ( 1 == hr9_drdy_flag )
        {
            hr9_rx_data = heartrate9_read_byte( );
            mikrobus_logWrite( &hr9_rx_data, _LOG_BYTE );
        }
    }
}


Commands : 'S or s' - Start logging 'B or s' - Break logging 'H or h' - Help

Additional Functions :

  • void heartrate9_help() - commands and response data help

Other mikroE Libraries used in the example:

  • 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

HVAC click

5

HVAC Click is a compact add-on board that contains Sensirion’s next-generation miniature CO2 sensor. This board features the SCD41, a carbon dioxide sensor build on the photoacoustic sensing principle, and Sensirion’s patented PASens® and CMOSens® technology to offer high accuracy at a minor form factor. On-chip signal compensation is realized with the build-in humidity and temperature sensor. It operates within a specified range from 400 to 5’000 ppm, configurable through the I2C interface with a single shot mode supported. This Click board™ is also suitable for indoor air quality applications using an additional SPS30 that allows smart ventilation systems to regulate ventilation in the most energy-efficient and human-friendly way, maintaining low CO2 concentration for a healthy, productive environment.

[Learn More]

Pressure 12 click

5

Pressure 12 click is a barometric gauge pressure measuring Click board, equipped with the Amplified Basic Pressure sensor series (ABP), which features a ratiometric analog output, which is proportional to the applied pressure.

[Learn More]

Angle 3 click

6

Angle 3 click carries the AK7451, a magnetic rotational angle sensor. The click is designed to run on a 5V power supply. It communicates with the target microcontroller over SPI interface.

[Learn More]