analog EKG

I built this with a classmate in Circuits and Signals (EECE 2150). An AD627 instrumentation amplifier takes the 1–3 mV signal from the electrodes, rejects common-mode noise, and applies all of the gain (about 96). Two unity-gain active filters follow it. A 0.40 Hz high-pass strips the DC offset that electrodes pick up at the skin, and a 15.9 Hz low-pass cleans up noise, though it rounds off the sharpest part of the QRS complex. The whole circuit runs on ±1.5 V from AA batteries.
Turns a 1–3 mV signal at the skin into a readable heartbeat, running on AA batteries, with heart rate estimated in MATLAB.
The signal was digitized at 150 Hz on a 14-bit NI USB-6001 and processed in MATLAB. Processing used Butterworth low-pass filters, a bandstop around 60 Hz for mains hum, and a threshold detector that counts heartbeats to estimate heart rate. The QRS came out upside down in our recording, so the signal is flipped before detection.
