heartrate2
2.0.0.0
|
Heart Rate 2 Click is an add-on board based on MAXM86161 from Maxim Integrated a complete, integrated, optical data acquisition system, ideal for optical pulse oximetry and heart-rate detection applications. The optical readout has a low-noise signal conditioning analog front-end (AFE), including 19-bit ADC, an industry-lead ambient light cancellation (ALC) circuit, and a picket fence detect and replace algorithm.
We provide a library for the HeartRate2 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 HeartRate2 Click driver.
void heartrate2_cfg_setup ( heartrate2_cfg_t *cfg );
HEARTRATE2_RETVAL heartrate2_init ( heartrate2_t *ctx, heartrate2_cfg_t *cfg );
void heartrate2_default_cfg ( heartrate2_t *ctx );
void heartrate2_set_en ( heartrate2_t *ctx, uint8_t state );
void heartrate2_soft_reset ( heartrate2_t *ctx );
void heartrate2_read_fifo ( heartrate2_t *ctx, heartrate2_fifo_data_t *fifo );
This app measures heart rate.
The demo application is composed of two sections :
Resets device, checks ID and configures device to desired led.
Reading fifo data and logs it with time.
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.