Академический Документы
Профессиональный Документы
Культура Документы
com
Document: Datasheet
Date: 10-Apr-13
Model #: 1181
ECG Sensor
View, plot or process ECG signals through this
board. Just hold the board with two thumbs and
you start getting output in analog as well as pulse
output. The sensor is battery operated and the
outputs from sensor are optocoupled to get clean
ECG signals.
Interfacing with PC or microcontroller is very
simple without any external components.
We provide PC software with source code written
in VB.NET to plot the signal.
We also provide sample C code for AT89S52 in
keil compiler to quick start your application.
Positive Pull up
Voltage
Ground
Details
Active high Pulse signal as onboard LED blinks on each
heart beat. Can connect directly to any microcontroller pin.
Time between two high going pulses can be used to
calculate heart beat.
BPM(Beats per minute) = 60,000/Time in ms between two
high going pulses
Outputs serial data. 1 byte every 5ms. The serial byte
containing analog level from 0-255 for particular time.
Usually connected to RXD pin of microcontrollers or RS232.
Voltage input from +3V to +5V for internal optocoupler pull
ups. Same voltage level is output at P and S pins.
For Example
MCU is operated at 3V then this pin has to be at 3V.
Ground level of power supply for optocoupler ground.
If using microcontroller this pin has to be board ground
Specifications
Name
Working Voltage
Typ
3V DC
3-5
5
1
4800
Unit
CR2032 battery provided
with product
V DC
Mili Seconds(ms)
Byte every 5 ms
bps
Board Details
Optocouplers to isolate board from external
circuits for clean ECG signals
ON/OFF Switch
3V Battery
CR2032
Processor
implementing Digital
FIR filtering
Thumb Pads
For Sensing
Instrumentation
Amplifier IC
Sunrom Technologies
Visit us at www.sunrom.com
Oscilloscope View
To test you can connect the sensor to oscilloscope as below.
ECG SENSOR
+5V
Oscilloscope
GND
+5V Regulated
power Supply
Sunrom Technologies
Visit us at www.sunrom.com
Block Diagram
The sensor consists of mainly below parts.
The first is instrumentation amplifier with high CMRR(Common Mode Rejection Ration) to remove
the noise induced from body and amplify the difference beween right and left body parts. The left
and right thumbs are input as signal detection of ECG.
The analog amplified ECG voltage is fed to processor to pass through digital FIR filters. High pass
and low pass filters are implemented to get ECG signal of proper range. The processor converts
these signals to analog output in serial format and pulse output. The serial data is 1 byte every 5
mili-second. Each byte can be from 0-255 indicating an analog value of the signal. The pulse output
is also fed to onboard LED to indicate the heart beat and same is output through optocoupler.
Board uses two optocouplers to isolate the board from external voltages since any little noise from
external source can be amplified as noise. So to get clean ECG signal the board is operated from
3V battery isolated from external supplies.
Instrumentation
Amplifier for
ECG Signals
Analog Output
Optocoupler
output for
Analog Serial
Pulse output
calculated from
Analog output
by detecting the
peak.
Optocoupler
output for Pulse
Pulse LED
Related Links
More about ECG basics http://en.wikipedia.org/wiki/Electrocardiography
Google for Digital FIR filter This board uses digital FIR filter method to get clean ECG signals.
https://www.google.co.in/search?q=Digital+FIR+Filters
Sunrom Technologies
Visit us at www.sunrom.com
PC Software Plotting
If you wish to plot the sensor signal on PC then we have provided software in Visual Basic.NET with
source code.
Download software+source from this link http://www.sunrom.com/files/1181.zip
Connect the sensor to PC using details given on next pages and run software as below
Source code opened in Visual Basic .NET which is part of Microsoft Visual Studio
Sunrom Technologies
Visit us at www.sunrom.com
S
P
+
-
U9
ECG Sensor SUNROM#1181
VCC
4
3
2
1
C16
100n
P2
DB9-CONN-F
1
6
2
7
3
8
4
9
5
3
2
C+
C2+
C1-
C2-
GND
C13
10uF 16V
V+
+
C14
10uF 16V
V-
14
8
13
7
4
+
C12
10uF 16V
5
6
15
T1OUT
R2IN
R1IN
T2OUT
VCC
T1IN
R2OUT
R1OUT
T2IN
VCC
16
U6
MAX232
11
9
12
10
C15
10uF 16V
VCC
http://www.sunrom.com/p
http://www.sunrom.com/p-245.html
RS232 INTERFACING
RX-IN
TX-OUT
GND
+5V
U11
USB to Serial Board SUNROM#1151/1192
1
2
3
4
4
3
2
1
S
P
+
-
U10
ECG Sensor SUNROM#1181
http://www.sunrom.com/p
http://www.sunrom.com/p-244.html
USB INTERFACING
Sunrom Technologies
http://www.sunrom.com/p
http://www.sunrom.com/p-1145.html
Visit us at www.sunrom.com
VCC
31
P3.0/RXD
P3.1/TXD
P3.2/INT0
P3.3/INT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD
EA/VPP
C9
33p
XTAL1
RST
19
R1
10K
10
11
12
13
14
15
16
17
S
P
+
-
U4
ECG Sensor SUNROM#1181
4
3
2
1
21
22
23
24
25
26
27
28
SERIAL
VCC
29
30
XTAL2
PSEN
ALE/PROG
+
C8
10uF 16V
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
Y1
18
VCC
P1.0/T2
P1.1/T2EX
P1.2
P1.3
P1.4/SS
P1.5/MOSI
P1.6/MISO
P1.7/SCK
GND
1
2
3
4
5
6
7
8
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
20
39
38
37
36
35
34
33
32
40
U2
AT89S52
VCC
11.0592
C10
33p
Sunrom Technologies
Visit us at www.sunrom.com
5V level
T1
T2
0V level
LED ON each high level
Sunrom Technologies
Visit us at www.sunrom.com
1
2
3
4
5
6
7
8
31
P3.0/RXD
P3.1/TXD
P3.2/INT0
P3.3/INT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD
EA/VPP
C9
33p
XTAL1
19
RST
GND
R1
10K
20
C8
10uF 16V
VCC
PULSE
29
30
XTAL2
PSEN
ALE/PROG
10
11
12
13
14
15
16
17
S
P
+
-
40
P1.0/T2
P1.1/T2EX
P1.2
P1.3
P1.4/SS
P1.5/MOSI
P1.6/MISO
P1.7/SCK
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
U4
ECG Sensor SUNROM#1181
Y1
18
VCC
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
21
22
23
24
25
26
27
28
4
3
2
1
39
38
37
36
35
34
33
32
C1
100n
VCC
U2
AT89S52
11.0592
C10
33p
The pulse signal is applied to the P3.7 input of U2 that is AT89S52 (Can be any 8051 type) which is
monitored by the program whenever this input goes high. Internally to U2, there is a counter which
counts how many 1ms intervals there are between two high going heart beat pulses. This number is
then divided by 60,000 and the result is the pulse rate. Lets see how we come to this value of
60,000 for dividing. For example, if the pulse rate is 60 BPM (beats per minute) there will be a pulse
every second. The duration of one heart beat will be one seconds or 1000 x 1ms. Dividing 60,000
by 1000 will give the correct result of 60 which is shown on the display. If there is invalid result
(BPM>200) it is invalid and waits for next cycle.
Sample code of this application is shown on next page.
Sunrom Technologies
Visit us at www.sunrom.com
10
Sunrom Technologies
Visit us at www.sunrom.com