Professional Documents
Culture Documents
II. METHODS
The final ECG circuit consists of three main sub-circuits based on operational amplifiers, as well as the
auxiliary circuit used to modulate the battery power supply. The final ECG circuit is shown below.
C2
R3
+4.5V
Black (LR) R2 R4
3
+4.5V
2
- 7
Vout
Vin +
+
1
7 AD741
Ra 6
6 A 3
B Ro AD620 + 4
Ra 5
Vin - 8 C1 -4.5V
2
-- 4
R1
White (RR) -4.5V
R4
4.5V
2
- 7
6
R5
AD741
3
+ 4
-4.5V
Green (LL)
Electrodes
R3
+4.5V
R2 R4
2
- 7
Vout
AD741
Vin 3 6
+ 4
C1 -4.5V
R1
Figure 2. Main amplifier circuit, showing necessary resistor and capacitor components.
The following equations were used to calculate the value of resistors needed.
1 1
f c1 = fc2 =
2R1C1 2R3C 2
Fc1 was intended to be 0.5Hz, with C1 chosen to be 1uF (theoretical value). The experimental value of C1
was measured to be .997uF and the theoretical value of R1 was calculated as 319267Ω. Likewise, Fc2 was
intended to be 100Hz, with C2 chosen to be 0.01uF (actual 0.01uF), so R2 theoretical was 2327Ω. Overall gain
within the op-amp’s passing frequencies was intended to be 70:
Vout R3
G= = +1
VA R2
From actual values of R2, theoretical R3 was chosen to be 159155Ω. Finally, a bias current compensation
resistor was used, with its value based on theoretical R1, R2 and R3:
R2 R3
R4 = R1 − R1
R2 + R3
49.4 K
G= +1
RG
Vi (+) 3
+ 7
1
6
RG AD620
Vo
8 5
_ 4
Vi (-) 2
Ref
-4.5V
Figure 3. Diagram of equivalent pre-amplifier circuits. RG is the equivalent resistance of two series Ra which are
in parallel with Ro; in actual circuit construction, three resistors were used to form the RG equivalent resistance.
Ra was chosen as 33kΩ; based on experimental values of Ra, theoretical Ro was chosen to be 4815Ω.
After the circuit was constructed as shown and connected to the necessary power supplies, function generator
input was set at 10Hz and 100mVpp sine wave, and the experimental gain was recorded. The gain was also
recorded at 0.5, 100 and 200Hz signal inputs. Finally, a cardiac signal with 1Hz and 100mVpp was input and
the output recorded. (For this step our group substituted the sinusoidal output by accident).
Circuit Part III Connection and testing of ECG Amplifier (Pre-amplifier + Main Amplifier)
The output node (Vo) of the pre-amplifier was connected to the input node (Vin) of the main amplifier. A 100:1
voltage divider using (theoretical values) 99kΩ and a 1kΩ resistors was constructed and tested using a higher
Vpp so that the output would be measurable (10Hz frequency). After verifying the function of the voltage
divider, the Vpp was lowered to 100mVpp, maintaining a 10Hz frequency; gain of the entire circuit was re-
measured and verified to be over 800. The frequency response in terms of corner frequencies and band pass
functionality was recorded. Finally, the function generator output was set to cardiac signal, with 1Hz frequency,
and amplitude either 100mVpp, 200mVpp or 300mVpp. Calibration parameters based on output V per input
mV was calculated.
Circuit Part IV Connection and testing Battery Power Supply and Driven-Right-Leg Circuit
For safety reasons a battery must be used; to modify the battery power to suit the circuit’s need the following
circuit was constructed as shown below. In addition, to provide grounding resistance a driven-right-leg-circuit
was constructed as shown below.
+4.5 V
Rp
0V or ground 9V Battery
D 1N5229B
-
-4.5 V
All theoretical values were either explicitly chosen (C1, C2) or calculated from experimental values of other
components (all resistors, frequencies and gain). The experimental corner frequencies were unable to be
determined very accurately since the output did not change measurably with changes of tenths of a Hz so their
error could be an artifact of low instrument sensitivity. If overall circuit gain had been too low, the gain of the
main amplifier would’ve been increased, but the overall ECG circuit gain turned out to be sufficient. Since the
gain of the pre-amplifier was higher than needed, it acted to negate the slightly lower gain of the main amplifier
circuit when the two were used in conjunction.
The theoretical output at 10Hz, 100mVpp where the input voltage was actual 106mVpp is calculated as:
Vout R3
G= = + 1 ; Vo = G*Vi = 68.774*106mVpp = 7.29Vpp
VA R2
Figure 6. Plot of gain vs frequency (logarithmic scale) in the main amplifier circuit.
Circuit Part II – Pre-Amplifier Construction and Testing
Table 3. Circuit component and properties: theoretical/experimental values, and percent error. The theoretical
value of RG was calculated based on the experimental values of Ra top/bottom and Ro. Theoretical gain was
calculated based on experimental RG.
Circuit Part III Connection and testing of ECG Amplifier (Pre-amplifier + Main Amplifier)
The voltage divider was verified to work with a 2 Vpp 10Hz sine wave, where the expected output of the
voltage divider (20mV) was close to the actual output; however at small amplitudes the inaccuracy of the
oscilloscope makes exact numbers hard to obtain.
Table 6. Frequency response of combined pre-amplifier and main amplifier (100mVpp, variable frequency). VD
is the assumed voltage divider output, which is the theoretical voltage potential at the input node of the pre-
amplifier. The approximate corner frequencies are highlighted.
Circuit Part IV Connection and testing Battery Power Supply and Driven-Right-Leg Circuit
Table 8. Battery power circuit component and properties: theoretical/experimental values, and percent error.
Component Theoretical Actual Percent Error
Rp (Ω) 460 452.4 1.65
Table 9. Driven right-leg circuit component and properties: theoretical/experimental values, and percent error.
Component Theoretical Experimental Percent Error
R4 (MΩ) 5.4 5.478 1.44
R5 (MΩ) 5.4 5.58 3.33
Figure 9. ECG output waveforms for both lab members; Josh on the left and Emil on the right.
Table 11. Summary of heart beat time intervals (5 trials), averages, minimums and maximums for both partners;
the maximum heart rate is based on the minimum beat time interval, while the minimum heart beat rate is based
on the maximum beat time interval, since the heart beat rate is inversely proportional to the beat time interval.
The ECG circuit consists of three op-amp circuits connected with one another. In this construction, it also
includes a battery power supply to provide safe power (as opposed to the benchtop DC power supply. The
pre-amplifier serves to calculate the potential of the cardiac vector based on the values of the three leads,
which are black (left arm), white (right arm) and green (right leg). One of the inputs to the pre-amplifier
comes from the driven-right-leg circuit, which provides a grounded reference point on the patient. The
output of the pre-amplifier goes to the main amplifier, which was two main functions: it greatly amplifies
the ECG signal to the point that it can be visualized on the recorder (oscilloscope in this case), and it carries
out bandpass filtering to remove interference outside of the needed range, so that the range of signal
processing is just enough as needed; this improves the signal-to-noise ratio (SNR).
The circuit achieved all of its main functions, albeit with some unexpected caveats. The main amplifier
achieved its needed characteristics, with near-70 gain and frequency-dependent active bandpass filtering.
The gain was slightly lower than required, and we admittedly should’ve chosen new components based on
this observation. On the other hand, the pre-amplifier correctly interpreted and amplified the cardiac signal
by a factor greater than 12. Overall, when the pre-amplifier and main amplifier were connected together, the
circuit functioned as expected, having the needed gain and frequency dependence (the higher gain of the
pre-amplifier made up for the slightly lower gain of the main amplifier.
The purpose of the voltage divider circuit was to test the circuit’s ability to amplify tiny signals (~1 mV)
and assess its gain without saturating the output of the entire circuit. If a 100mV input was used at the input
pin of the pre-amplifier, with a gain of 1000+ which we observed for sine waves, the output would have
been well saturated before the theoretical 100V output. Therefore, shrinking the input signal amplitude to 1
mV simultaneously allowed testing of whether the ECG amplifiers were sensitive to such small amplitudes,
as well as assessing its gain before output signal saturation (based on the power source of the circuit, 9V
battery).
There were three ECG electrodes, which are black (left arm), white (right arm) and green (right leg). The
three leads used in vector analysis of the cardiac signal are 1 (left arm – right arm), 2 (right leg – right arm),
3 (right leg – left arm), based on Einthoven’s triangle; only two of the leads are mathematically independent
(lead 2 = lead 1 + lead 3). The ground reference on the patient body is provided by the driven-right-leg
circuit, and which is processed with the other two electrodes by the pre-amplifier to yield the ECG vector.
In the final calculation of gain using the voltage divider circuit, the gain was calculated to be 792 at its
highest when using a cardiac function output from the function generator. The output amplitude of the ECG
for my heart beats was 888 mV. This means that my heart exhibits a maximum of around 1.12 mV. From a
previous study, the maximum amplitude of the QRS wave in the frontal plane (which we measured in this
lab) is 1.38 mV (Castini et al., 1996). Allowing for some signal noise and inaccuracy, my ECG amplitudes
are within normal ranges. My heart minimum, maximum and average heart rates were approximately 58, 63
and 70 beats per minute. These are within healthy ranges (60 – 80 beats per minute).
V. CONCLUSION
In this lab, we learned about how to build a complex electrical circuit by breaking down the work into
compartmentalized modules, and ensuring the correct completion of each part before moving on, is an
important framework for approaching the construction of electrical circuits. In addition, we learned about
the important considerations when constructing biomedical instruments, such as filtering, high gain, high
input impedance, safety considerations, and how to interpret basic ECG data pertaining to signal amplitude
and heart beats per minute.
Building on experience gained in previous lab, we correctly chose component values based on the actual
measured values of other components, ensuring that the values were close as possible. We compensated for
undershooting the target gain of the main amplifier by overshooting the target gain of the pre-amplifier; this
produced the necessary overall gain. However, we contend that we should’ve tested using the cardiac signal
earlier, since that might have given more of an indication of the final circuit gain than did the sinusoidal
signal. The gain exhibited a marked decrease in gain when the function type was simply changed from
sinusoidal to cardiac; the reason for this is perplexing. However the gain still hovered around 800 and the
results were sufficient, so we did not need to change components near the end of the experiment, which
would have been quite the arduous task.
In a way, this lab represents the mirror image of ECG circuitry built in freshman year; then we built a circuit
to generate a simulated heart beat electric potential pattern complete with three output electrodes; now we
have constructed an ECG circuit to analyze such a signal.
VI. REFERENCES
Castini, D., Vitolo, E., Ornaghi, M., Gentile., F. (1996). Demonstration of the relationship between heart
dimensions and QRS voltage amplitude. Journal of Electrocardiology. Volume 29, Issue 3, July 1996, Pages
169-173.