Design of ECG Transmitter Report
Design of ECG Transmitter Report
ECG Transmitter
BY
MANU MITRA 0795410
UNIVERSITY OF BRIDGEPORT
2008-2009
i University of Bridgeport
Electrical Engineering
ECG Transmitter
Student Id : - 0795410
Comments:-
ii University of Bridgeport
Electrical Engineering
ECG Transmitter
Contents
1. Project overview
1.1 Introduction
1.2 Importance of work and aims of project
1.3 Project Outline
2. Background
2.1 ECGs
2.2 Holter monitors
2.3 Electrical Safety
2.4 Mains Interference
2.5 Defibrillator Protection
2.6 Low Pass Filter
2.7 Telemetry
3. Isolated ECG Hardware
3.1 ECG Amplifier
3.2 Driven-Right-Leg Systems
3.3 Defibrillator Protection
i University of Bridgeport
Electrical Engineering
ECG Transmitter
5. Simulation
6. References
ii University of Bridgeport
1 Introduction
1.1 Introduction
The purpose of this project is to design ECG transmitter using the software
Agilent ADS.
1.3.1 Tasks
1 University of Bridgeport
Defibrillator Protection
Low pass filtering
High pass filtering
Gain stage (for maximum signal)
Analogue to Digital Conversion
2 University of Bridgeport
2 Background of ECG
2.1 ECGs
In order to be able to design an ECG recording device, one must have some
background into the physiology of the heart (with respect to its bio potentials) and
an understanding of exactly what it is an ECG is, and its function.
“In a healthy heart, the size, duration, and timing of the deflection waves
tend to be consistent. Thus, changes in the pattern or timing of the ECG may reveal
a diseased or damaged heart or problems with the heart’s conduction system.”
3 University of Bridgeport
(Figure 1): An electrocardiogram tracing (lead 1) illustrating the three normally recognizable deflection
waves and the important intervals
4 University of Bridgeport
(Figure 2): Position and orientation of the three bipolar limb leads. (Leads I, II, and III)
The frontal plane of an ECG consists of three basic leads, as can be seen in
figure 2. These leads are the result of the various combinations of pairs of
electrodes located on the right arm (RA), the left arm (LA) and the left leg (LL) of
the patient. The resulting leads are: lead I, LA to RA; lead II, LL to RA; and lead
III, LL to LA. Very often an electrode is also placed on the right leg (RL) and
grounded or connected to a Driven-Right-Leg circuit.
5 University of Bridgeport
(Figure 3): Voltage and Frequency Ranges for Some Important Parameters that are measured in the Human
Body
A Holter monitor is a small portable ECG device named after its inventor,
the American biophysicist Norman Holter. The device records the electrical
activity of the heart, typically over a 24-hour period, while the patient keeps a
diary recording their activities and any symptoms felt. The ECG recording is then
analyzed, and irregular heart activity is correlated with the patient’s record of their
activities and symptoms. The Holter monitor is useful for identifying disturbances
which are sporadic and which are not readily identified with the usual resting
electrocardiogram test. In some instances, the patient may manually activate an
“event” if they are experiencing symptoms such as palpitations, chest pain, or
irregular rhythms are noticed.
6 University of Bridgeport
2.3 Electrical Safety
“The danger in one’s exposure to various electrical devices is not the voltage
but the magnitude and pathways of electrical current that flows through body tissue
and major organs. In addition, for electrically sensitive organs such as the heart,
physiological effects are also dependent on the frequency and waveform of the
current.”
7 University of Bridgeport
When a medical device (e.g., electrocardiogram or blood pressure monitor)
is connected directly to a patient, there must be some sort of patient input isolation.
“An isolated patient connection not only limits leakage current levels from the
patient contact points to very low levels but also reduces the amount of current that
can flow into the patient connection from another (defective) device. It is
recommended that equipment with isolated patient leads be used whenever the
device is to be in contact with the heart or with a fluid-filled catheter located within
the heart of great vessels.”
8 University of Bridgeport
There are several different methods of blocking the common-mode voltage.
The first being to use good quality limb leads that have been twisted and insulated.
Following this, the ECG amplifier should have a common-mode rejection ratio
(CMRR) of at least 100dB, and finally low-pass filtering the signal below 50 Hz
will cause the common mode signal to be removed.
Many ECG devices use neon glow lamps across the input lines, which
bypass the voltage, and series resistors, which serve to limit the current flow. The
neon lamps are primarily a pair of electrodes mounted in a glass casing, which has
been evacuated and filled with low-pressure neon gas, or a mixture of inert gases.
The impedance across the electrodes is usually very high; however the impedance
will suddenly drop to a very low value if the voltage across the electrodes exceeds
the ionization potential of the gas. Most lamps used in medical monitors have a
firing potential between 45 and 70V. When a defibrillator is used, most of the
charge is bypassed to ground and the gas inside of the lamps will ionize.
9 University of Bridgeport
(Figure 4): Basic Second Order Low-Pass Filter.
Where fc is the corner frequency and Q is the quality factor. When f<<fc Equation
10 University of Bridgeport
[2.6.2-1] reduces to K, and the circuit passes signals multiplied by a gain factor K.
When f=fc, Equation [2.6.2-1] reduces to –jKQ, and signals are enhanced by the
factor Q. When f>>fc, Equation [2.6.2-1] reduces to –K(fc/f)2 and signals are
attenuated by the square of the frequency ratio, which indicates a second order
low-pass filter.
Figure 5 shows the Sallen-Key circuit configured for low-pass:
11 University of Bridgeport
2.6.3 Quality factor considerations:
This now means that fc and Q are independent of one another, thus simplified
greatly. The gain (K) of the circuit now determines Q. RC sets fc, (the capacitor is
chosen and the resistor calculated).
Theoretically, any values of R and C that satisfy the equations may be used,
but practical considerations call for component selection guidelines to be followed.
In the case of the low-pass Sallen-Key filter, the ratio between the output
impedance of the amplifier and the value of filter component R sets the transfer
functions seen at frequencies well above cut-off. The larger the value of R, the
lower the transmission of signals at high frequency. Making R too large has
consequences in that C may become so small that the parasitic capacitors,
including the input capacitance of the amplifier, cause errors.
The best choice of component values depends on the particulars of your circuit and
the tradeoffs you are willing to make. General recommendations are as follows:
12 University of Bridgeport
1. Capacitors
Avoid values less than 100 pF.
Use NPO if at all possible. X7R is OK in a pinch. Avoid Z5U and other low
quality dielectrics. In critical applications, even higher quality dielectrics
like polyester, polycarbonate, mylar, etc., may be required.
Use 1% tolerance components. 1%, 50V, NPO, SMD, ceramic caps in
standard E12 series values are available from various sources.
Surface mount is preferred.
2. Resistors
Values in the range of 10k_ to 200k_ are best.
Use metal film with low temperature coefficients.
Use 1% tolerance (or better).
Surface mount is preferred.
2.7 Telemetry
In recent years the USA, Europe and Australia have all introduced a new
unlicensed band (ISM band) for Industrial Scientific and Medical applications.
Australia has reserved the 918-926 MHz band for ISM applications. The US has a
similar yet wider ISM band with the frequency range from 902-928 MHz reserved.
Therefore a device can be designed in Australia and be distributed in the US, with
absolutely no need for alteration.
13 University of Bridgeport
3. Isolated ECG hardware
In order to have a good signal to noise ratio, differential amplifiers are used.
Since the output is proportional to the difference between the two voltages, this
circuit has a fairly good common mode rejection. Unfortunately, the differential
amplifier’s performance is limited due to low input impedance. This problem has
been avoided by incorporating a dual Instrumentation amplifier in place of a
differential amplifier.
14 University of Bridgeport
(Figure 7): INA321 Internal diagram and basic connections
The INA321 is designed to provide accurate gain, with gain error guaranteed
to be less than 0.1%. Setting gain with matching TC resistors will minimize gain
drift. Errors from external resistors will add directly to the guaranteed error, and
may become dominant error sources.
A gain of 10 was chosen for this stage of the circuit, therefore, R1 = R2 =
100kohms.
15 University of Bridgeport
3.2 Driven-Right-Leg System
(Figure 8): Schematic showing Right-Leg-Drive, Defibrillator protection, and Instrumentation amplifier
16 University of Bridgeport
The right-leg-drive circuit can be seen in the lower section of Figure 8. It
consists of a buffer (which gets its common mode input from the Instrumentation
Amplifier), followed by a common Driven-Right-Leg circuit.
VCM should be made very small. This can be done by making Rf >> Ra, and Rf =
Ro.
Typically, Ro should be quite large, (around 5Mohms).
When Rf = 5M_, Ra = 25k_, then typically id = 0.2_A. This then sets VCM at
2.5mV, which is very small.
17 University of Bridgeport
Choose real and available resistor values close to these:
Rf = Ro = 4.7Mohms
Ra/2 = 10kohms
An unpopulated resistor R35 was added in the design for an alternative right-leg-
drive circuit that was not used.
As discussed in chapter 2, ECG devices use neon glow lamps across the
input lines, to provide defibrillator protection. These neon lamps are used to bypass
large voltages. The maximum strike voltage (firing potential) of the lamps being
used in the design is 90V. A 330k_ resistor is placed in series on each input line,
which limits the current flow. 1206 Resistors have been used here, as they have a
maximum voltage rating of 200V, and a power rating of .125W, which far exceeds
the ratings of smaller resistors, which are being used for the remainder of the
circuit due to size restrictions.
ECGs have a frequency range from between 0.1 to 250 Hz. Due to noise at
50Hz from the power mains, the acquired signal requires low-pass filtering below
50 Hz. For these devices, the corner frequency has been selected at 34 Hz. To
block any wandering DC effects, a high-pass filter with a very low cut-off
frequency has also been implemented.
18 University of Bridgeport
3.4.2 Low Pass Filter Design & Calculations
An LT1496 quad channel op-amp from Linear Technologies has been chosen for
use in the positive feedback amplifier. Two cascaded second order sallen-key
filters have been used for the Low Pass filter. By cascading the filters, sharper roll-
off and better attenuation is achieved.
Step 1: Calculate the gain of the filter from the ideal Quality factor.
fc = 34 Hz. Q=0.707 (flat response, sharp falloff).
19 University of Bridgeport
Step 2: Calculate the resistor divider circuit from the known gain.
20 University of Bridgeport
3.4.3 Final Gain Stage
The final gain stage has been designed around a simple non-inverting
amplifier circuit similar to the one seen in Figure 9.
To calculate the final gain, the gains from all the previous stages must be
calculated.
ECG expected input: 2.7 mV
21 University of Bridgeport
Instrumentation Amplifier: 10
Low pass filter: 1.588
Maximum voltage output: 1.3V
22 University of Bridgeport
3.6 Isolation
For the isolation of signal lines, coming out of the A/D converter, very low-
power opto couplers from Agilent (HCPL0730A) can be used. Each channel can be
driven with an input current as low as 40 μA. These high gain couplers use a LED
and an integrated high gain photo detector to provide an extremely high current
transfer ratio between input and output.
23 University of Bridgeport
4. Antennas
This section describes the geometry and the electrical equivalent circuit for a
rectangular loop antenna. Physical dimensions for the antenna are used to calculate
the components in the antenna equivalent circuit and the antenna efficiency. The T
matching method is presented in order to match the impedance of the antenna to a
transmitter/receiver.
For a loop antenna fabricated on a printed circuit board (PCB), the thickness
of the loop conductor b1 means the thickness of the copper layer on top of the
substrate. In order to calculate the electrical parameters of the antenna, the
rectangular loop has to be modeled as an equivalent quadratic loop, and the planar
loop conductor has to be modeled as a wire conductor with an equivalent circular
radius.
From the parameters above the equivalent quadratic sides of the loop are
given by:
24 University of Bridgeport
The calculated equivalent quadratic sides are used in the formulas below for the
loop area A, and the inductances LA and LI.
The loop area is given by:
The equivalent electrical circular radius of the loop conductor is given by:
In electrostatic, the equivalent radius represents the radius of a circular wire whose
capacitance is equal to that of the noncircular geometry.
Directivity of antenna:
25 University of Bridgeport
The maximum effective aperture is calculated by:
Electrically, the loop is about 13 times larger than its physical size. To be effective,
a small loop must be larger electrically than its physical size.
The equivalent circuit for the input impedance of a small loop when the loop
is used as a transmitting antenna is shown in Figure 10.
26 University of Bridgeport
(Figure 10): Loop Antenna Equivalent Circuit (Transmit mode)
27 University of Bridgeport
c is the speed of light equal to 3×108 m/s
f0 is the resonance frequency in Hz.
f0 = 915MHz
28 University of Bridgeport
The loss resistance of the loop inductor is given by
29 University of Bridgeport
The reactance Xi of the loop conductor can be computed using the inductance Li of
the loop. For a single turn this can be approximated by:
The additional ohmic losses that is introduced mainly because of ESR (Equivalent
Series Resistance) of the capacitor Cp is given by:
30 University of Bridgeport
As the above expression indicates, the main determinate of the maximum
quality factor (Q) of a loop antenna is the ESR (i.e. the quality factor) of the
capacitor Cp. The addition of a resistor Rq in parallel with Cp can be used to
control the Q-value of the antenna at the same time as reducing the input
impedance of the antenna.
31 University of Bridgeport
4.1.3. Antenna impedance and Q-value with chip capacitors in the loop
The antenna impedance is dependent of both feed length and Q-value (read
parallel resistor RQ). The Q-value is independent of the impedance of the antenna,
which means that one chooses a Q-value and then chooses the feed length.
The tol variable is the percentage tolerance of the capacitors. The equation
assumes that the variation in radiated power due to capacitor variations should be
lower than 3dB. If the tolerance is 4% the Q-value will be 50. If a higher Q-value
is chosen, each antenna has to be tuned to keep the variation in radiated power
lower than the assumed 3dB.
32 University of Bridgeport
4.1.4. Range calculations
Unlike optical IR systems, RF systems operations in the UHF band are not
restricted to line-of-sight coverage. This is because of the diffraction and reflection
of radio waves at edges and conductive surfaces as well as the capability of RF
waves to penetrate dielectric materials.
The range calculation parameters are:
When the transmitter and receiver have a clear, unobstructed line-of-sight path
between them, the free space propagation model is used to predict received signal
strength.
This loss factor accounts for the losses due to the spherical spreading of the
energy by the antenna. From the equation it can be seen that the received power
strength is dependent upon the square of the transmitter-receiver separation
distance. This implies that the received power decays with distance R at a rate of
20 dB/decade.
33 University of Bridgeport
This equation assumes that the two antennas are separated by a distance
Given the required range R, assumed losses Lx, sensitivity S and equal TX/RX
antennas, the necessary output power PRF is given by:
34 University of Bridgeport
4.1.5. Selection of Capacitors and Resistor
35 University of Bridgeport
The manufacturer of the transceiver chip (Nordic VLSI) recommends the use of an
18kohm 1% resistor for R q.
36 University of Bridgeport
4.2 Wireless link hardware implementation
The Transceiver and Receiver circuits are very similar. To have a matched
wireless link, the antennas need to be identical, and the Transceiver chip’s external
circuitry remains the same. The majority of the external components were taken
directly from the nRF903 Transceiver datasheet, with the exception of the antenna
components which were calculated in the Antenna design section (4.3) of this
project
4.2.1. Transmitter
The Transmitter circuit begins with a rotary locking FPC connector along
which the power and four output lines from the primary ECG device are input. One
of the data lines serves to power up the wireless board, by switching on a P-
channel MOSFET. When there is no signal, the MOSFET is off, because the data
line is high at 3.3V and no current is drained across the resistor. When the line is
switched to an active high, the data line will read low at 0V, and the MOSFET will
turn on, thus providing power to the Transmitter circuit.
The three other data lines are used in the following way: Data line for the
transmission of serial data; a Clock line to read the data in from; and a Transmit
enable line which when high, tells the on-board microcontroller (MSP430F1232)
to put the Transceiver chip into transmit mode, by passing along a high to the
TXEN pin.
The microcontroller (MSP430F1232) is the link between the input data lines
and the Transceiver chip. It initiates and configures the nRF903 and is responsible
for the passing of ECG waveform data to the wireless link.
4.2.2. Receiver
37 University of Bridgeport
38 University of Bridgeport
5. Simulation
The smart antenna transmit system consists of one base band up-converter,
one IF amplifier, two IF filters, one RF up-converter, two RF filters, one RF pre-
amplifier, and one RF power amplifier. We need to make sure that the system will
have enough output power, linearity and sufficient attenuation on unwanted
frequency spectrum.
Because all the RFIC chips have detailed specifications, the parameter
settings in each corresponding model should be set up as close as what can be
gotten from the specifications. In setting parameter to an amplifier, it is important
to use correct parameter such as noise figure, gain, power saturation point (Psat),
three order intercept (TOI) power. The gain compress characteristic parameter of
amplifier is fundamental to system nonlinearity characteristic simulation. While
setting parameter of a mixer, P lomin should be taken care of. The meaning of Plomin
is the minimum Local oscillator input power before mixer starved. But for some
unknown reason, it had better to leave it blank. Otherwise, an error convention
gain would occur.
Filter is the only kind of component determining the system band pass
characteristic; correct filter models should be selected to emulate real filter
performance. In the design, all the filters selected are Butterworth type. All the
39 University of Bridgeport
parameters of filters, such as center frequency, insertion loss, pass band width, stop
bandwidth, pass band ripple, and stop band attenuation, etc., are adopted from the
real filter specifications.
PLL frequency synthesizers are used as the first local oscillator and the second
local oscillator for up convention, in order to achieve enough short term and long-
term frequency stability. The phase noise of the two synthesizers is derived from
the performance of selected reference frequency and VCO. Both of the two local
sources use oscillator with phase noise in frequency domain source library to
simulate. The phase noise parameter of the two models depends on the derived
result.
Simulation Result
Conclusions
40 University of Bridgeport
parameter limits, and (3) to tune the component parameter to keep the system in
the best working status. The system simulated is an experimental transmitter, in
which many practical factors are not considered, such as the fast frequency
hopping and large amount user etc. More simulations, such as ACPR
characteristics, PLL time domain and frequency domain responding characteristics,
and inter-modulation characteristics, etc., should also be carried out in designing
commercial products.
41 University of Bridgeport
Figure.2 Simulation Tools used in ADS
42 University of Bridgeport
43 University of Bridgeport
6. References
44 University of Bridgeport