TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137078 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46409 times)
  5. Network WiFi Library (42029 times)
  6. FT800 Library (41373 times)
  7. GSM click (29109 times)
  8. mikroSDK (26554 times)
  9. PID Library (26487 times)
  10. microSD click (25483 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

HeartRate 8 click

Rating:

5

Author: MIKROE

Last Updated: 2018-11-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 3637 times

Not followed.

License: MIT license  

Heart Rate 8 click is an optical biosensor Click board, designed for heart-rate monitoring (HRM). This Click board employs a specialized sensor that incorporates three LED drivers and two photo-sensing elements, sensitive to green and IR light.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "HeartRate 8 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "HeartRate 8 click" changes.

Do you want to report abuse regarding "HeartRate 8 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

HeartRate 8 click

HeartRate 8 click

Native view of the HeartRate 8 Click board.

View full image
HeartRate 8 click

HeartRate 8 click

Front and back view of the HeartRate 8 Click board.

View full image

Library Description

Library performs the control of the HeartRate 8 Click board. Library offers a choice to communicate with the device by using I2C interface and driver functions. Functions perform register writing and reading operations, GREEN and IR LED control, LED data reading, device configuration... For more details check documentation.

Key functions:

  • uint8_t heartrate8_writeSingleByte( uint8_t regAddr, uint8_t dataIn ) - Function writes one byte to the register.
  • uint8_t heartrate8_readBytes( uint8_t startAddr, uint8_t *dataOut, uint8_t nBytes ) - Function reads the desired number of bytes from the registers.
  • uint8_t heartrate8_getData( uint8_t dataSelect, uint16_t *ledOutON, uint16_t *ledOutOFF ) - Function gets the selected data from the determined LED Data registers.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes I2C interface and performs the device reset, after which the device configuration can be performed. The device is configured to work in Single Measurement Mode with LED pulsing. The driver which is selected is driver for the GREEN LED Data.
  • Application Task - (code snippet) - Sends command to start measurement cycle, then waits until measurement cycle is finished. When measurement cycle is done, gets LED ON and LED OFF Data for the selected LED driver (GREEN or IR LED) and performs data plotting on serial plotter every 35ms.
void applicationTask()
{
    heartrate8_startMeasure();
    intCheck = heartrate8_checkInt();
    
    while (intCheck != _HEARTRATE8_INT_ACTIVE)
    {
        intCheck = heartrate8_checkInt();
    }    
    
    heartrate8_getData( _HEARTRATE8_GREEN_DATA_GET, &ledDataON, &ledDataOFF );
    plotRes( ledDataON );
    intCheck = heartrate8_intClear();
}

Additional Functions :

  • void plotRes( uint16_t plotData )   - Performs data plotting on serial plotter.
  • void logRes()   - Performs LED Data logging on uart terminal.

Other mikroE Libraries used in the example:

  • Conversions
  • I2C
  • UART

Additional notes and information

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

Color 11 click

0

Color 11 Click is a compact add-on board that provides an accurate color-sensing solution. This board features the TCS34083M, an ALS/color sensor with selective flicker detection from ams-OSRAM. The sensor features ambient light and color (RGB) sensing and flicker detection, which suppresses cross-coupling from 940nm IR if generated by adjacent circuits. The main benefits of this sensor are invisible ALS and color sensing under any glass type, unique fast ALS integration mode, and more. It features configurable programmable gain and integration time, tailored ALS and color response, ALS/color interrupt with thresholds, and many more.

[Learn More]

EasyPull click

0

EasyPull Click is a compact add-on board designed to easily configure mikroBUS™ signals into pull-up or pull-down states, perfect for various applications. It features a universal setup with 4.7kΩ resistors to ensure stable performance across vital communication lines such as SPI, UART, I2C, and standard mikroBUS™ signals (AN, RST, PWM, INT).

[Learn More]

nRF S click - Example

6

This is a sample program which demonstrates the use of nRF S click. Programmer uses RF module for communication between two development systems. Each module can be used as transmitter and receiver.

[Learn More]