For a university lab I am building a single-lead ECG amplifier to feed a microcontroller ADC with a 3.3 V range. My first attempt with an ordinary op-amp differential stage gives mostly 50 Hz hum and a baseline that wanders off to the supply rail.
What signal levels and frequencies should I design for, how should the gain be split between stages, and what has to be done so that a circuit like this is safe to connect to a person?




