heartrate3
2.0.0.0
|
Heart rate 3 click is a mikroBUS add-on board whose functionality is determined by two components: an OSRAM’s SFH7050 pulse oximetry and heart rate monitoring module, and a TI AFE4404 (analong-front-end) IC specialized for bio-sensing.
We provide a library for the HeartRate3 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 HeartRate3 Click driver.
void heartrate3_cfg_setup ( heartrate3_cfg_t *cfg );
HEARTRATE3_RETVAL heartrate3_init ( heartrate3_t *ctx, heartrate3_cfg_t *cfg );
void heartrate3_default_cfg ( heartrate3_t *ctx );
uint32_t heartrate3_read_u32 ( heartrate3_t *ctx, uint8_t reg_adr );
void heartrate3_rst_state ( heartrate3_t *ctx, uint8_t state );
void heartrate3_write_data ( heartrate3_t *ctx, uint8_t reg_adr, uint32_t wr_data );
The demo application shows reflected red, green and ir values.
The demo application is composed of two sections :
Initalizes click driver, resets the device, applies default settings and makes an initial log.
This example demonstrates the use of Heart rate 3 board. It is set in default mode,
and reads reflected red, green and ir values and displays the results on USART terminal.
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.