heartrate10 2.0.0.0
|
Heart Rate 10 Click is a compact add-on board suitable for heart rate monitoring applications. This board features the MAX86916, an integrated optical sensor with applications in bio-sensing, proximity, and color from Maxim Integrated.
We provide a library for the HeartRate10 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for HeartRate10 Click driver.
heartrate10_cfg_setup
Config Object Initialization function. heartrate10_init
Initialization function. heartrate10_default_cfg
Click Default Configuration function. heartrate10_generic_write
Writing function. heartrate10_reset
Reset device. heartrate10_read_complete_fifo_data
Read all led samples. This example showcases ability for device to read Heart Rate with 4 different diodes.
There is IR, Red, Green and Blue. You can control every one of them individualy, and change theirs sequence in FIFO register. All leds data is read from FIFO register, it's 19bit data for every led.
The demo application is composed of two sections :
Initialization of host communication periphrials and interrupt pin. Configures default
configuration to device where device is reset, checks Part ID and enables all 4 leds and sets sequence as IR-Red-Green-Blue. Sets their power to maximum, and enables interrupt on new data ready.
Reads FIFO data for all 4 didoes and logs them with separation character ','.
For testing this example application SerialPlot was used.
There you can see heart rate graphicly shown.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.