Hello! Welcome back to your course on Medical Instrumentation.
In our last few lessons, we've focused on interpreting the ECG signal—identifying its waves and intervals. Now, we shift our focus from analysis to synthesis. How do we build the machine that captures this faint, noisy signal from the body in the first place?
Today’s lesson directly tackles this question. The learning outcome is to design a complete ECG acquisition system, specifying amplifier, filter, and safety requirements. We will assemble, block by block, the electronic system required to go from skin-surface potentials to a clean, digitized waveform ready for analysis.
This is a core topic in biomedical engineering, and the design principles are highly transferable. The challenges of amplifying a tiny signal (~1 mV) in the presence of large interference are not unique to ECG. The exact same concepts for amplification, noise rejection, and safety are critical for designing the EEG and EMG systems relevant to your work at Neuraease.
The Big Picture: ECG Acquisition System Architecture
At its heart, an ECG machine is a specialized differential voltmeter. It measures the tiny voltage difference between two points on the body. However, building a system to do this reliably requires several specialized stages.

While this diagram shows the basic idea, a clinical-grade system includes more sophisticated blocks for noise rejection and safety. The video below from Texas Instruments provides an excellent overview of a modern ECG front-end architecture.
Key considerations for designing electrocardiogram (ECG) front-end circuit
The video 'Key considerations for designing electrocardiogram (ECG) front-end circuit' provides a great high-level overview of the main functional blocks in an ECG system.
Please watch the first 2 minutes and 9 seconds (00:00 - 02:09). Pay attention to the names of the key blocks: Protection, Lead-off Detection, Instrumentation Amplifier (INA), Right Leg Drive (RLD), and the Analog-to-Digital Converter (ADC).
Based on this overview, a complete ECG system must address three main challenges:
- Amplification: The ECG signal is tiny (0.5 to 4 mV) and must be amplified significantly.
- Filtering: The body and environment are electrically noisy. We need to filter out everything that isn't the ECG signal.
- Safety: The device is connected to a person. We must guarantee that no harmful electrical currents can ever pass through the patient, and we must also protect the device from external electrical events like defibrillation.
Let's break down the design for each of these requirements.
1. The Core Amplifier: The Instrumentation Amplifier (INA)
The central component of our system is the amplifier. Because the ECG is a differential signal measured across a body that has a large common-mode voltage (e.g., 50/60 Hz noise coupled from power lines), we need a differential amplifier.
However, a simple single op-amp differential amplifier isn't sufficient. Its input impedance is often too low, which would load the electrode-skin interface and distort the very signal we're trying to measure. The solution is a specialized multi-stage amplifier called an Instrumentation Amplifier (INA).
An INA is typically built with three op-amps. This configuration provides:
- Very High Input Impedance: This is crucial to avoid drawing current from the biological source, ensuring the measurement doesn't alter the signal.
- High Common-Mode Rejection Ratio (CMRR): This is its most important feature. It allows the amplifier to selectively amplify the tiny difference between the electrodes while strongly rejecting the large noise signal that is common to both.
- Stable and Precise Gain: The gain can be set accurately with a single external resistor.
For a detailed breakdown of the fundamental requirements of a biopotential amplifier and the INA circuit, please review the following resource.
The presentation slides 'Biopotential Amplifiers' from Dr. Kurtuluş Erinç Akdoğan provide a concise summary of amplifier requirements and the rationale for using an instrumentation amplifier.
Please read the first slide titled 'Basic Requirements' to understand the key specifications. Then, navigate to the slides discussing the 'DIFFERENTIAL AMPLIFIER' and the 'THREE-OP-AMP DIFFERENTIAL AMPLIFIER' to see why the INA is superior for this application.
Key Amplifier Specifications for an ECG Design:
- Input Impedance: > 10 MΩ
- CMRR: > 90 dB (ideally > 110 dB) at 50/60 Hz
- Gain: Typically around 1000, often split between a pre-amplifier stage (e.g., gain of 10-25) and a second stage (e.g., gain of 40-100).
- Input-Referred Noise: As low as possible, typically < 10 µV peak-to-peak in the ECG band.
2. Signal Conditioning and Filtering
The raw signal from the INA still contains unwanted components. We use filters to clean it up. The typical diagnostic bandwidth for an ECG is 0.05 Hz to 150 Hz.
- High-Pass Filter (HPF): Set at ~0.05 Hz. This filter is essential for removing very low-frequency noise, primarily baseline wander caused by patient breathing and movement. It also blocks the large, variable DC offset voltage (~300 mV) that develops at the electrode-skin interface.
- Low-Pass Filter (LPF): Set at ~150 Hz. This filter removes high-frequency noise, such as electromyographic (EMG) signals from muscle contractions and other external RF interference. It also serves as an anti-aliasing filter, which is required before any signal is digitized by an ADC.
- Notch Filter: A very narrow filter specifically designed to eliminate 50 Hz or 60 Hz power-line interference. While the INA's CMRR handles most of this, a notch filter provides additional rejection.
These filters can be implemented using active op-amp circuits or, increasingly, as digital filters in the microcontroller after the ADC.
The Right-Leg Drive (RLD) Circuit: An Active Noise Cancellation Technique
Even with a high-CMRR amplifier, a mismatch in the impedance between the two measurement electrodes can cause some of the common-mode noise to be converted into a differential signal, which then gets amplified. To combat this, a clever technique called the Driven-Right-Leg (RLD) circuit is used.
Instead of connecting the patient reference (right leg) directly to ground, it's connected to the output of an auxiliary amplifier. This amplifier:
- Senses the common-mode voltage present at the inputs of the INA.
- Inverts this voltage.
- "Drives" the inverted common-mode signal back onto the patient's body through the right leg electrode.
This negative feedback loop actively cancels out the common-mode interference, dramatically improving the CMRR of the entire system.
Let's return to the TI video to see a visualization of filtering and the RLD circuit.
Key considerations for designing electrocardiogram (ECG) front-end circuit
This segment explains the role of filters and, most importantly, the function of the Right Leg Drive (RLD) circuit.
Please watch from 02:09 to 04:08 to understand the filtering stage before the INA. Then, watch from 06:47 to 09:23 to see why CMRR is so important and how the RLD circuit works to actively suppress common-mode noise.
3. Safety and Protection Requirements
Safety is the most important design consideration. We must protect both the patient from the device and the device from the environment.
Patient Safety: Electrical Isolation
A patient connected to an ECG must be protected from any possibility of electric shock. The primary method for ensuring this is electrical isolation. The entire patient-connected portion of the circuit (the "front-end") is designed to be electrically "floating" and separated from the earth-grounded parts of the system (like the power supply and computer interface).
This separation is created using an isolation barrier. Common methods include:
- Optical Isolation (Optocouplers): Data is transmitted across the barrier using light.
- Transformer-based Isolation: Data and power are transferred across the barrier using magnetic fields.
The isolation barrier must be rated to withstand several thousand volts. Regulations strictly limit the maximum leakage current that can flow to the patient to a very low level (e.g., less than 10 µA).
The following resource contains critical safety advice that is paramount for anyone building or experimenting with biopotential circuits.
Electrocardiogram (ECG) Solutions
The 'ECG Solutions' guide from Analog Devices provides a stark and necessary warning about safety when connecting circuits to humans.
Please read the 'Safety Considerations' section. The key takeaway is to never connect a human to a circuit that is powered from a wall outlet without certified medical-grade isolation. For prototyping, always use battery power and be aware that connecting other grounded equipment (like an oscilloscope) defeats the isolation.
Device Protection: Defibrillator Pulses
Patients on ECG monitors are often at risk of cardiac arrest and may require defibrillation—a massive electrical shock (up to 5000 V) applied to the chest. The ECG input must survive this without being destroyed.
This is achieved with transient voltage suppression (TVS) circuits at the very front end. These usually consist of current-limiting resistors in series with each electrode lead, followed by clamping components like Zener diodes or gas-discharge tubes that short the high-voltage pulse safely to ground.
A Complete ECG System Design
Let's assemble all these pieces into a final block diagram that specifies our complete ECG acquisition system.
- Electrodes (RA, LA, RL): Connect to the patient.
- Input Protection: Each lead has:
- A series resistor (~10-20 kΩ) to limit current.
- Diode clamps to protect against defibrillator shocks.
- Instrumentation Amplifier (INA): High input impedance (>10 MΩ), high CMRR (>100 dB). Initial gain of ~25.
- High-Pass Filter: Active filter with a cutoff frequency of ~0.05 Hz to remove DC offset and baseline wander.
- Second Amplifier Stage: Provides additional gain (e.g., 40) for a total system gain of 1000.
- Low-Pass (Anti-Aliasing) Filter: Cutoff frequency of ~150 Hz to remove high-frequency noise and prevent aliasing.
- (Optional) Notch Filter: At 50/60 Hz for extra power-line noise rejection.
- Driven-Right-Leg (RLD) Circuit: Senses common-mode voltage from the INA inputs and drives an inverted signal back to the RL electrode.
- Analog-to-Digital Converter (ADC): Samples the final analog signal. Resolution of 16 to 24 bits is common. Sampling rate should be at least double the LPF cutoff (e.g., 500-1000 Samples/sec).
- Isolation Barrier: A medical-grade digital isolator (e.g., ADuM4160 for USB).
- Microcontroller/Processor: Receives the digital data, performs any further digital filtering, and communicates with a display or host PC.
This architecture provides a robust, safe, and effective system for acquiring high-quality ECG signals.
Test your understanding!
You are designing an ECG front-end for a wearable device. You notice a large 60 Hz sine wave corrupting your signal, even though you are using an INA with a high CMRR of 110 dB.
What are two likely causes for this persistent interference, and what is the primary specialized circuit you would add to the design to actively address this problem?
Show answer
-
Likely Causes:
- Mismatched Electrode Impedances: Even a small difference in the skin-contact resistance between the two measuring electrodes can cause the common-mode 60 Hz signal to be converted into a differential signal, which the INA will then amplify.
- Capacitive Coupling: The electrode wires can act as antennas, picking up the 60 Hz field from nearby power lines.
-
Solution: The primary circuit to add is a Driven-Right-Leg (RLD) circuit. This circuit actively senses and cancels the common-mode voltage on the body, providing a much more effective noise rejection than relying on the INA's passive CMRR alone.
Conclusion
In this lesson, you've moved from being an observer of the ECG signal to being the architect of the system that captures it. You have learned how to specify the requirements for a complete data acquisition pipeline, from the electrode to the microprocessor.
Key Takeaways:
- An ECG system is built around a high-performance Instrumentation Amplifier (INA) chosen for its high input impedance and high CMRR.
- A cascade of filters (High-Pass, Low-Pass, Notch) is used to isolate the desired ECG frequency band (0.05-150 Hz) from DC offset, baseline wander, and high-frequency noise.
- A Driven-Right-Leg (RLD) circuit is a critical design element that actively cancels common-mode interference, far more effectively than passive rejection alone.
- Safety is paramount. Patient-connected circuits must be electrically isolated from mains power, and inputs must be protected against high-voltage events like defibrillation.
Preview of the Next Lesson:
With our robustly designed system providing a clean ECG signal, we can now return to signal analysis. In the next lesson, we will use the R-R interval from our captured data to calculate instantaneous and average heart rate, the most fundamental vital sign derived from the ECG.
Can't find a good explanation? Sign up and we'll make it for you
Sign up