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 (137001 times)
  2. FAT32 Library (70119 times)
  3. Network Ethernet Library (56027 times)
  4. USB Device Library (46348 times)
  5. Network WiFi Library (41966 times)
  6. FT800 Library (41286 times)
  7. GSM click (29055 times)
  8. mikroSDK (26489 times)
  9. PID Library (26451 times)
  10. microSD click (25413 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 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-03-18

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 2375 times

Not followed.

License: MIT license  

Heart Rate 2 Click is a Click board based on MAXM86161 a complete, integrated, optical data acquisition system, ideal for optical pulse oximetry and heart-rate detection applications.

No Abuse Reported

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

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

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

Heart Rate 2 Click

Native view of the Heart Rate 2 Click board.

View full image
Heart Rate 2 Click

Heart Rate 2 Click

Front and back view of the Heart Rate 2 Click board.

View full image

Library Description

Library provides a full contol over Heart Rate 2 click. It provides generic functions for reading and writing, default configuration and reading fifo data, and if you are willing you can set your configuration.

Key functions:

  • uint8_t heartrate2_generic_read ( uint8_t reg_adr ) - Generic function for reading data.
  • void heartrate2_generic_write ( uint8_t reg_adr, uint8_t write_data ) - Generic function for writing data.
  • void heartrate2_default_configuration ( uint8_t cfg_led ) - Function for setting default config and turning on one led with cfg_led parameter.
  • void heartrate2_read_fifo ( heartrate2_fifo_data_t *fifo ) - Function for reading fifo data and tag values from device.

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of I2C module and additional pins
  • Application Initialization - Resets device, checks ID and configures device to desired led
  • Application Task - Reading fifo data and logs it with time
void application_task ( )
{
    char demo_txt[ 30 ];
    heartrate2_fifo_data_t fifo_object;

    heartrate2_read_fifo( &fifo_object );

    if ( fifo_object.tag == HEARTRATE2_FIFO_TAG_PPG1_LEDC1 )
    {
        LongWordToStr( fifo_object.data_val, demo_txt );
        Ltrim( demo_txt );
        Rtrim( demo_txt );
        mikrobus_logWrite( demo_txt, _LOG_TEXT );
        mikrobus_logWrite( ",", _LOG_TEXT );
        LongWordToStr( counter_tm++, demo_txt );
        Ltrim( demo_txt );
        Rtrim( demo_txt );
        mikrobus_logWrite( demo_txt, _LOG_LINE );
    }
    
    Delay_ms( 4 );
}

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.

ALSO FROM THIS AUTHOR

RS485 5 click

0

The RS485 5 Click is a Click board™ equipped with the MAX485, low-power, slew-rate-limited transceiver for RS-485 and RS-422 communication, from Maxim Integrated. This device supports half-duplex RS-485 communication and can be used as an interface between the TTL level UART and the RS485 communication bus.

[Learn More]

RadioStation click

5

RadioStation click is a unique click boardâ„¢ that can be used to broadcast the music via the FM radio band. It features the Si4713-B30 from Silicon Labs, the best in class integrated FM broadcast stereo transmitter, which can also broadcast RDS/RDBS data.

[Learn More]

DIGI POT 11 click

0

DIGI POT 11 Click is a compact add-on board representing a digitally controlled potentiometer. This board features a double pack of the MAX5387, a dual, 256-tap, volatile, low-voltage linear taper digital potentiometer from Analog Devices. This way, four digitally I2C-controlled potentiometers are realized with end-to-end resistance values of 50kΩ. Operating from a single +3.3V power supply, this device provides a low 35ppm/ºC end-to-end temperature coefficient.

[Learn More]