heartrate 2.0.0.0
|
Heart Rate click is a heart rate monitoring and pulse oximetry measuring Click boardâ„¢. It features an advanced oximeter and heart rate monitoring sensor, which relies on two integrated LEDs, a photosensitive element, and a very accurate and advanced low noise analog front end, to provide clean and accurate readings.
We provide a library for the HeartRate Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for HeartRate Click driver.
- Initialization function.void heartrate_cfg_setup ( heartrate_cfg_t *cfg );
HEARTRATE_RETVAL heartrate_init ( heartrate_t *ctx, heartrate_cfg_t *cfg );
void heartrate_default_cfg ( heartrate_t *ctx );
- Using this function we can read IR and RED values.uint8_t heartrate_data_ready ( heartrate_t *ctx );
uint8_t heartrate_read_ir_red ( heartrate_t *ctx, uint16_t *ir_buff, uint16_t *red_buff );
void heartrate_generic_read ( heartrate_t *ctx, uint8_t reg, uint16_t len, uint8_t *data_buf );
This click features an advanced oximeter and heart rate monitoring sensor, which relies on two integrated LEDs. It is enough to place an index finger on a top of the sensor to get both of the heart rate and blood oxygen saturation via the I2C interface.
The demo application is composed of two sections :
Initializes heartrate driver and set the click board default configuration.
Reading values from both Ir and Red diode and displaying their average values on the USB UART.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
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.