Analog ECG amplifier
Years ago, a team consisting of Renata Rycyk, Sylwia Krysiak, and myself implemented a simple design of a one-channel amplifier for electrocardiogram signals. I have posted our work to highlight the potential pitfalls and share the resulting files. To anyone taking up a similar project in the future - good luck!
The design discussed here addresses the following assumptions:
| Property | Value |
|---|---|
| Input | Two-sided differential voltage |
| Frequency band | 0.05 - 250 Hz |
| QRS amplitude | 0.5 - 5 mV |
| Amplification | 1000 V/V (60 dB) |
| Desired elements | Battery supply Cable shielding |
Initial simulations were carried out in LT SPICE. The following piecewise-linear signals were used to visually model an ECG signal for time-domain simulation:
| Signal | Code |
|---|---|
| Full wave | PWL REPEAT FOR 5(0 0 80m 0 120m 1.5m 160m 0 240m 0 265m -2m 290m 5m 315m -2.5m 340m 0 440m 0 520m 2.5m 600m 0 625m 0m5 650m 0 860m 0)ENDREPEAT |
| Positive | PWL REPEAT FOR 5(0 0 80m 0 120m 1.5m 160m 0 272m 0 290m 5m 308m 0 340m 0 440m 0 520m 2.5m 600m 0 625m 0m5 650m 0 860m 0)ENDREPEAT |
| Negative | PWL REPEAT FOR 5(0 0 240m 0 265m -2m 272m 0 308m 0 315m -2.5m 340m 0 860m 0)ENDREPEAT |
*Full-wave signal model following amplification, centered around 2.5 V virtual ground.*
While we initially looked at various designs involving a Right Leg Drive, these did not work for us in practice. Whether due to electrode contacts or differences in phase shift, noise was reduced more by connecting the leg to the circuit zero. This same potential was also applied to the shielding. To allow a (nearly) +/- 5V output potential while limiting battery volume, this zero was a virtual produced by a high-resistance voltage divider. In retrospect, this was overly simplistic, and the resulting "zero" was prone to change. I recommend **at least** a [buffered ground](https://tangentsoft.net/elec/vgrounds.html).
While we initially thought it might be more economical to assemble an instrumentation amplifier from three operational amplifiers, the AD 621 in-amp chip provided better testability and consistency. As design was carried out using LT SPICE and an AD621 model was not readily available, simulations were carried out with an LT1167 model:


*(measurement spreadsheet with graphs for individual stages attached)*
The circuit was not ideal in practice, in practice, but just able to output a recognizable signal under optimal circumstances:
*Amplified RL lead as shown by oscilloscope.*
A power switch was added, along with a power indicator (lit on the right) to reduce waste (when the amplifier was not in use) and confusion as to whether the device was operating (when it was). Current through it was reduced to the smallest that would produce discernible light. The following circuit (switch not shown) was assembled:
The power indicator (lit in the image to the right, off above and below) was adequate.
The input leads entered the casing as a pair on the left, apart from the right-leg cable (right). The output was provided as two wires;
a more elegant connection was considered, but the raw form allowed easier connection of the signal to a breadboard, scope, or other system.
*Top view of amplifier and cables.*
End conclusion - if you have a choice between reading signals directly from the body and reading the output of digital sensors - choose the latter.