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: 2019-11-29
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Biometrics
Downloaded: 3153 times
Not followed.
License: MIT license
The Heart Rate 9 click is a Click boardâ„¢ which features PIC16F1779 8-bit MCU and SFH 7060 heart rate and pulse oximetry monitoring sensor. This Click boar employs a very sensitive analog front-end IC with high dynamic range, which ensures accurate and reliable readings.
Do you want to subscribe in order to receive notifications regarding "Heart Rate 9 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Heart Rate 9 click" changes.
Do you want to report abuse regarding "Heart Rate 9 click".
Library Description
Initializes and defines UART bus driver, and defines driver's functions for reading Heart Rate data uses Heart Rate 9 clicks.
Key functions:
uint8_t heartrate9_read_byte()
- Read Single Byteuint8_t heartrate9_byte_ready()
- Check for new byte received/li>Examples description
The application is composed of three sections :
void applicationTask()
{
char hr9_rx_data;
char console_rx_data;
uint8_t hr9_drdy_flag;
uint8_t console_drdy;
console_drdy = UART_Rdy_Ptr( );
if ( console_drdy != 0 )
{
console_rx_data = UART_Rd_Ptr( );
if ( ( console_rx_data == 's' ) || ( console_rx_data == 'S' ) )
{
mikrobus_logWrite( " >> [s or S] - START << ", _LOG_LINE );
start_app_flag = 1;
}
if ( ( console_rx_data == 'b' ) || ( console_rx_data == 'B' ) )
{
mikrobus_logWrite( " >> [b or B] - BREAK << ", _LOG_LINE );
start_app_flag = 0;
}
if ( ( console_rx_data == 'h' ) || ( console_rx_data == 'H' ) )
{
mikrobus_logWrite( " >> [h or H] - HELP << ", _LOG_LINE );
heartrate9_help( );
}
}
if ( start_app_flag == 1 )
{
hr9_drdy_flag = heartrate9_byte_ready( );
if ( 1 == hr9_drdy_flag )
{
hr9_rx_data = heartrate9_read_byte( );
mikrobus_logWrite( &hr9_rx_data, _LOG_BYTE );
}
}
}
Commands : 'S or s' - Start logging 'B or s' - Break logging 'H or h' - Help
Additional Functions :
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.