Heart rate 3 click
Heart rate 3 click
IC/Module
AFE4404
(http://www.ti.com/lit/ds/symlink/afe4404.pdf)
SFH7050 (http://www.osram-
os.com/media/resource/HIRES/541656/246267/light-
is-wearable---flysheet-biomon-sensor-sfh-7050-
gb.pdf)
Interface I2C
Power
supply
3.3V
Website www.mikroe.com/click/heart-rate-3
(http://www.mikroe.com/click/heart-rate-3)
Schematic also available in PDF (http://cdn-
docs.mikroe.com/images/d/d1/Heart_Rate_3_click_s
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
Heart rate 3 click
From MikroElektonika Documentation
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.
Features and usage notes
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.
The SFH7050 multichip package contains 3
LEDs and one photodiode separated with a
light barrier to prevent optical crosstalk. When
the three LEDs shine through a subject’s
finger, some of the light is absorbed by the
pulsating blood.
The analog reading from the SFH7050 is
forwarded to the AFE chip that is able to
derive pulse readings from the intensity of the reflected light.
AFE4404 is highly-configurable and adaptable for different usage scenarios (different lighting
conditions or skin tones) making Heart Rate 3 click a robust heart rate monitoring solution.
The board communicates with the target MCU through the mikroBUS™ I2C interface, with
additional functionality provided by RST, CLK and RDY pins.
Heart Rate 3 click works on a 3.3V power supply, but an onboard jumper allows you to set the
voltage for driving the SFH7050 LEDs at either 3.3V or 5V.
Programming
Setting up of Heartrate 3 click and external interrupt to read values at 100hz and using an algorithm to find a heartrate.
#include <stdint.h>
#include "heartrate_3.h"
#include "resources.h"
// HeartRate 3 GPIO
sbit RST at GPIOC_ODR.B2;
void system_setup( void );
void setup_interrupt();
char uart_text[20] = {0};
uint64_t int_count =0; //Used by timer to calibrate sampling freq.
void main()
{
//Local Declarations
uint16_t rate =0;
char txt[15] = {0};
system_setup(); // GPIO / HeartRate 3 / UART / I2C Setups
Delay_ms(200);
initStatHRM(); // Initializes values to 0
setup_interrupt(); // Setup interrupt handler
while(1)
{
rate = hr3_get_heartrate();
IntToStr( rate, uart_text );
UART1_Write_Text( uart_text );
UART1_Write_Text( "\r\n" );
}
}
void system_setup( void )
{
//Local Declarations
char text[40] = { 0 };
Page 1 of 2