Manual

manual

manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 5

DownloadManual
Open PDF In BrowserView PDF
6/30/2018

Heart Rate Monitor Sensor SKU: SEN0213 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com

Heart Rate Monitor Sensor SKU: SEN0213
Contents
1
2
3
4

Introduction
Specification
Board Overview
Tutorial
4.1 Requirements
4.2 Connection Diagram
4.3 Sample Code1
4.4 Expected Result
4.5 Sample Code2
4.6 Expected Result
5 FAQ
6 More

(https://www.dfrobot.com/product-1510.html)
Heart Rate Monitor Sensor SKU: SEN0213
(https://www.dfrobot.com/product-1510.html)

Introduction
The DFRobot Heart Rate Monitor Sensor is used to measure the electrical activity of the heart. This electrical activity can be charted as an
ECG (https://en.wikipedia.org/wiki/Electrocardiography) and output as an analog reading. An ECG signal can be extremely noisy so we have
included an AD8232 chip on the PCB which will provide a clear signal from the PR and QT Intervals. Using the Arduino IDE "Serial Plotter"
feature you are also able to view plotted ECG output on your PC!
Please Note: This product is NOT a medical device and is not intended to be used as such
(/wiki/index.php/File:Warning_yellow.png) or as an accessory to such nor diagnose or treat any conditions.

Specification
Input Voltage: 3.3 - 6V (5V recommended)
Output Voltage: 0 - 3.3V
Operating current: <10mA
Dimension: 35 x 22(mm), 1.378" x 0.866"(in)
Interface Type: PH2.0-3P

Board Overview

(/wiki/index.php/File:Heart_rate_SEN0213_overall.png)

Tutorial
Requirements
Hardware
DFRduino UNO (https://www.dfrobot.com/product-838.html) (or similar) x 1
Heart Rate Monitor Sensor (https://www.dfrobot.com/product-1540.html) x 1
Sensor cable - Electrode Pads (3 connectors) x 1
Biomedical Sensor Pad x 1
Jumper wires
Software
Arduino IDE V1.6.6 or above, Click to Download Arduino IDE from Arduino® (https://www.arduino.cc/en/Main/Software)

Connection Diagram
https://www.dfrobot.com/wiki/index.php/Heart_Rate_Monitor_Sensor_SKU:_SEN0213

1/5

6/30/2018

Heart Rate Monitor Sensor SKU: SEN0213 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com

(/wiki/index.php/File:Heart_Rate_Sen0213_dia.png)
NOTE: An ECG signal can be quite noisy because of muscle activity. The further sensor pads are from the heart, the more muscle noise
you will see. To improve the signal quality, follow these simple tips:
Keep sensor pads as close to the heart as you can
Make sure the RA and LA sensor pads are on correct sides of the heart
Try not to move too much while taking a measurement
Try to use fresh pads for each measurement. The pads loose the ability to pass signals with multiple applications
Prepare and clean the area you plan to stick pads. This will help make a good connection (hair is not a good conductor)
You may have to adjust sensor placement for different individuals

Sample Code1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/*!
* @file HeartRateMonitor.ino
* @brief HeartRateMonitor.ino Sampling and ECG output
*
* Real-time sampling and ECG output
*
* @author linfeng(490289303@qq.com)
* @version V1.0
* @date 2016-4-5
*/
const int heartPin = A1;
void setup() {
Serial.begin(115200);
}
void loop() {
int heartValue = analogRead(heartPin);
Serial.println(heartValue);
delay(5);
}

Expected Result
1. Open the Arduino IDE 1.6.6 (or above) "Serial Plotter";

(/wiki/index.php/File:Arduino_Serial_Plotter.png)
Open "Serial Plotter"

https://www.dfrobot.com/wiki/index.php/Heart_Rate_Monitor_Sensor_SKU:_SEN0213

2/5

6/30/2018

Heart Rate Monitor Sensor SKU: SEN0213 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com

2. Then you could see the output signal from the microcontroller - A1 port, the ECG.

(/wiki/index.php/File:Heart_Rate_SEN0213_checking.png)
Sample output of this sensor

NOTE: If you found there was a lot of jamming waveforms, they may come from the body's static electricity. Touch something metal to
discharge any static electricity. More read on WikiHow. (http://www.wikihow.com/Remove-Static-Electricity)

Sample Code2
click to download the head file HeartSpeed (https://github.com/lfwag/HeartSpeed)

https://www.dfrobot.com/wiki/index.php/Heart_Rate_Monitor_Sensor_SKU:_SEN0213

3/5

6/30/2018

Heart Rate Monitor Sensor SKU: SEN0213 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

/*!
* @file heart_test.ino
* @copyright
[DFRobot](http://www.dfrobot.com), 2016
* @copyright
GNU Lesser General Public License
* @author [jianghao](hao.jiang@dfrobot.com)
* @version V1.0
* @date 20160-07-8
*/
/*!
* @brief Library for DFRobot's IR Position RAW_DATA
* @author [jianghao](hao.jiang@dfrobot.com)
*/
#include "HeartSpeed.h"
HeartSpeed heartspeed(A1);
//HeartSpeed heartspeed(A1,RAW_DATA);

///
Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
Page Count                      : 5
Creator                         : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Producer                        : Skia/PDF m67
Create Date                     : 2018:06:30 16:25:40+00:00
Modify Date                     : 2018:06:30 16:25:40+00:00
EXIF Metadata provided by EXIF.tools

Navigation menu