Recall that the function of a differential or instrumentation amplifier is to ignore or reject anything that is present on both input leads. Up till now, we have used this principle to reject the ambient 60Hz electrical noise. By repositioning the electrodes directly over a muscle we can also use the same CMR principle to reject the EKG too.
I used the tibialis anterior muscle on the shin because it usually gives a nice large and clear EMG signal, but you can try any muscle - e.g. biceps on your arm.
EMG of tibialis anterior
muscle.
In order to reduce noise (both AC and EKG) to a minimum, it is best
to attach the two electrodes as close together as possible. In fact you
can even buy special EMG electrodes which come in pairs. The common (ground)
electrode is best attached to an area where there is no muscle, e.g. over
a bony prominence such as the knee cap or shin bone.
To block 60 Hz, R = 27kW
and C = 0.1mF (fo = 1 / 2pRC)
In practice, it is sometimes difficult to get the component values
exactly right, and it is difficult to tune this circuit, because all three
resistors need to be adjusted simultaneously. The frequency of the notch
of this alternative filter (from Horowitz) can be tuned with one preset,
and its depth can then be tuned for maximum attenuation with the second
preset:
There are three remaining limitations of this filter:
This one has a notch width of only 0.3 Hz, with 60 dB per decade rolloff.
The opposite of a bandstop filter, by the way, is called a bandpass filter, and is used whenever we want to just let one frequency through (e.g. in the EEG project).
![]() |
![]() |
| Raw EMG is biphasic | The force generated by a muscle is always contractile |
| EMG has a high frequency content (up to 250-500 Hz) | Muscle force has a low frequency content (up to 3-5 Hz) |
In order to convert the raw EMG into a signal resembling the muscle force, we need to do two things:
Modulated (high frequency)
carrier wave
Demodulated
signal produced by detection
Detection is performed very simply by using a diode.
This is done by a very low pass filter. Note that this is a completely different efect from filtering before the detection, since the only frequency present at that time was the high frequency carrier wave.
For EMG, the frequency used to produce this linear envelope depends on the twitch time of the muscle. This varies a little depending on the type of muscle - in general smaller muscles (such as the muscles that move the eyeball) have faster twich times, whereas large muscles (e.g. gluteus maximus and quadriceps) have slow twitch times. For most of the muscles involved in walking, a low-pass filter of about 3 Hz has been found to produce an envelope similar in shape to the force pattern generated by the muscle.
Uses
of the EMG signal 
The gain of the differential amplifier is set by RG.

The gain is a trade-off between CMRR and frequency response:

Since EMG has a very low amplitiude (about 0.5 mV), the total gain of the amplifier will need to be about 2,000. Although we could do all this with the AD620, it is probably better to add a second stage op-amp with a gain of about 20. So, the AD620 gain should be about (2,000/20) = 100.