TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136971 times)
  2. FAT32 Library (70083 times)
  3. Network Ethernet Library (56022 times)
  4. USB Device Library (46343 times)
  5. Network WiFi Library (41959 times)
  6. FT800 Library (41269 times)
  7. GSM click (29051 times)
  8. mikroSDK (26483 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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 4 click

Rating:

7

Author: MIKROE

Last Updated: 2019-07-30

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 5963 times

Not followed.

License: MIT license  

Heart rate 4 click carries the MAX30101 high-sensitivity pulse oximeter and heart-rate sensor from Maxim Integrated. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target MCU over I2C interface, with additional functionality provided by INT pin on the mikroBUS line.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Heart rate 4 click" changes.

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

Do you want to report abuse regarding "Heart rate 4 click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
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 4 click

Heart rate 4 click

Native view of the Heart rate 4 click board.

View full image

Library Description

The library covers all the necessary functions that enables the usage of the Heart rate 4 Click board. It initializes and defines the I2C bus driver and drivers that offer a choice for writing and reading and setting a new value. Also, user can set, clear or check many different interrupts, as well as read from FIFO register.

Key functions:

  • void heartrate4_setDefaultSettings() - Function is used to apply default settings.
  • uint8_t heartrate4_getInt1() - Function is used to read the main interrupt group.
  • uint32_t heartrate4_getRedVal() - Function is used to read the RED value.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C module, LOG and GPIO structures, sets INT pin as input.
  • Application Initialization - Initalizes I2C driver, applies default settings, and makes an initial log.
  • Application Task - This example demonstrates the use of Heart rate 4 board. It is set in heart rate mode, and reads reflected red values and displays the results on USART terminal.
void applicationTask()
{
    if( heartrate4_getInt1() & 0x40 )
    {
        redSamp = heartrate4_getRedVal();
        if( redSamp > 0 && redSamp < 32000 )
        {
            mikrobus_logWrite( "Place Finger On Sensor", _LOG_LINE );
        }
        else if( redSamp != 0 )
        {
            LongWordToStr( redSamp, logTxt );
            Ltrim( logTxt );
            mikrobus_logWrite( "Heart rate : ", _LOG_TEXT );
            mikrobus_logWrite( logTxt, _LOG_LINE );
        }
        mikrobus_logWrite( "------------------------------", _LOG_LINE );
        Delay_ms( 1000 );
    }
    else
    {
        Delay_ms( 1 );
    }
}

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • 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.

Heartrate 4 click

Heartrate 4 click

Front and back view of the Heartrate 4 click board.

View full image

ALSO FROM THIS AUTHOR

Expand 9 click

0

Expand 9 Click is a compact add-on board that contains a multi-port I/O expander. This board features the SX1509QB, the world’s lowest voltage level shifting GPIO expander from Semtech Corporation. The SX1509QB comes in a 16-channel configuration and allows easy serial expansion of I/O through a standard I2C serial interface. It also has a built-in level shifting feature making it highly flexible in power supply systems where communication between incompatible I/O voltages is required, an integrated LED driver for enhanced lighting, and a keypad scanning engine to implement keypad applications up to 8x8 matrix.

[Learn More]

6DOF IMU 6 Click

5

6DOF IMU 6 Click features a 6-axis MotionTracking device that combines a 3-axis gyroscope, a 3-axis accelerometer, and a Digital Motion Processorâ„¢ (DMP) labeled as ICM-20689.

[Learn More]

CO click

0

CO click carries the MQ-7 gas sensor with high sensitivity to carbon monoxide. The click is designed to run on a 5V power supply only. It communicates with the target microcontroller over the AN pin on the mikroBUS™ line.

[Learn More]