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]
Rating:
Author: MIKROE
Last Updated: 2018-11-16
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Biometrics
Downloaded: 4093 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.
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".
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 :
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 click, USB 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.