Académique Documents
Professionnel Documents
Culture Documents
Figure 1 Inspirational design from [3]. The schematic uses practical pinout
diagrams for the ICs.
pass filter is needed between the two stages. This high pass filter is also useful to
get rid of low frequency noise. But in the case of Figure 1, only a capacitor was
used instead of a combination of resistor and capacitor. This showed itself to be a
problem while trying to implement the circuit. The problem is: since we are
using a virtual ground, without the resistor, what is the reference of the filter?
The virtual ground or the real ground? This ambiguity seemed to be faced by the
circuit as well. Most part of the time it would not work. We believe thats because
the real ground is the reference, so the signal is moved back to zero volt and the
second stage gets saturated. Sometimes though, the circuit would magically
work! We didnt figure out the circumstances for it to work, so we decided to end
this ambiguity by adding a resistor and connecting it to the virtual ground. In
Figure 4 is the schematic of the circuit we built. We used the OPA4131 [6]
instead of the OPA2241. We removed the low pass filter after the last stage
because we intended to make a better filter afterwards.
Figure 4 Schematic with the resistor added to form an RC filter between the
two stages.
So, the design above may work for EMG. But the purpose of our project
was to build an EEG amplifier. For that, two things are still necessary: better
noise filtering and higher gain. Because we are dealing with very small signals,
the 60 Hz noise coming from the power lines is of major concern. This noise can
mask the signal completely to the point that we cant even see it. First, we
addressed the gain problem: We want to amplify the signal sufficiently so we can
see it. But how do we know its there if all we see is 60 Hz noise? Eye blink is
known to be a very common artifact in EEG signals. In this case, we could
actually make use of it. Our first goal was to observe eye blink, which can be seen
even with a lot of 60 Hz noise. Then our next goal was to reduce the 60 Hz noise
so we could see the EEG signal.
To address the gain issue, we had at least two options: increase the gain
of one or both the stages we already had; or add stages to add more gain. Its not
a good idea to increase the gain of the first stage because the first stage has two
main purposes [7]: 1) have a good CMRR to deal with the common mode voltage
coming from the body (mainly 60 Hz noise); 2) deal with the huge DC offset
coming from the electrodes, which requires the first stage to be low gain. We
could increase the gain of the second stage, but it intuitively does not seem a
good idea (we would be requiring much from a single stage). So we decided to
add a third stage. Because of the reasons explained above, a high pass filter is
needed between each stage. We brushed up the circuit we already had (replaced
the INA122 by the INA128 and changed some resistor values) and moved the
potentiometer from the second stage to the third stage. Its a good idea to have
adjustable gain because, even though the books might give a good estimate of the
amplitude of the signal, these things vary from person to person, from moment
to moment. So we kept one stage as an adjustable gain stage.
Figure 5 Schematic after adding a third stage and brushing the circuit up.
Figure 6 Signal recorded from the forehead using the schematic in figure 5. It
captures an eye blink. The basic configuration we used to record signals from the
forehead was: Vin+ of the amplifier is connected to the forehead, Vin- and Vref
are connected each to one mastoid bone behind each ear.
Figure 7 60 Hz noise
The next thing to address was the filtering. The two non-inverting stages
we already had could easily be upgraded to active low pass filters. All we needed
to do was add capacitors in parallel to the feedback resistors. To avoid that the
adjustable gain of the third stage changed its cutoff frequency, the potentiometer
was placed in the input resistance instead of the feedback resistance. Now we
can see a little bit better the EEG signal, but there is still a lot of 60 Hz noise.
Because our bandwidth of interest was between 1 to 30 Hz, we could do
something we couldnt with ECG or EMG signals: utilize a notch filter. More
specifically we built two notch filters, based on [8]. The two notch filters reduce
the 60 Hz noise a lot, but the amount of noise in the signal still depends a lot on:
the amount of noise present in the room; cables positioning; electrode contact to
the skin; among many other sources of noise that may not have been addressed.
More about sources of noise can be found at [9].
Figure 9 Signal recorded from the forehead using the schematic in figure 8. The
gain in this figure is higher than the gain in figure 6.
When we got to the step of moving the circuit from the breadboard to the
perforated board, we made some changes. We changed resistor values to avoid
too many series and parallel combinations. We also changed the potentiometer
from the Third to the second stage. The reason behind this last change was
because we tried to combine the second and third stage in a single 1000 gain
stage and measured a DC offset of approximately 1V in its output. We concluded
that this huge DC offset was associated with the high gain.
After that, we abandoned the idea of combining the second and third
stages. We also concluded it was not good design to leave the higher gain for the
last stage (that means, leave the potentiometer in the last stage). The amplitude
of its input signal is higher than that of the second stage. If huge gain is really
associated with huge DC offset, as we thought it was, then the last stage would
get saturated more easily. Not to mention the fact that we dont have high pass
filter after the last stage.
Figure 12 Signals from three channels of the board in figure 11. Recorded using
Arduino Mega with 256 sampling rate. Plotted using MATLAB. The basic
recording configuration was: Vin- from all channels are connected to each other
and to a mastoid bone behind one ear. Vref is the same for all channels and is
connected to the other mastoid bone behind the other ear. Each Vin+ of each
channel is connected to a different place in the forehead.
The final design looks pretty similar to open source designs like the
ModularEEG [10].
with one resistor much higher than the other: Vout = (Rbig/(Rbig+Rsmall))Vin
(Rbig/Rbig )Vin = Vin.
Why not Driven Right Leg circuit?
The Driven Right Leg circuit is a circuit commonly used in biomedical
applications to improve the amplifier CMRR (Common Mode Rejection Ratio)
and increase human protection. Better descriptions on how it works can be
found in [15]. What it basically does is try to get the common mode voltage (the
gain resistor from the instrumentation amplifier is split into 2 to try to get this
voltage), invert it, and feed it back to the body. Many different designs can be
found in different sources. In some of them, a simple inverting amplifier is used.
In others, a single capacitor is placed in the feedback instead of a resistor. In
others, a resistor is placed between the output and the feedback resistor
terminal. And many others can be found out there. One problem was found while
trying to implement the circuit in the INA128 datasheet [2]. The EEG amplifier
output measured by the oscilloscope would become a fog from one rail to
another. We searched for reasons why it could be happening and figured out it
was because of amplifier instability. We then inspired ourselves in [16]. Again,
we tried to apply a very practical approach. We knew from [17] that we had to
use a capacitor in parallel with the feedback resistor. We tried the schematic in
figure 14, which is one of the schematics from [16]. It didnt work. We then left
just the 100k resistor and the 1uF capacitor in the feedback. Same result. We
then tried to change the capacitor value from 1uF to 220nF. It worked! The
output was back to normal! Interestingly, though, the previous design (100k and
1uF) would work with the INA128, even though it didnt work with the INA122.
The second design worked with both, so we kept it. What is strange is that the
instrumentation amplifier is not even the amplifier used to build the DRL circuit
(which was the OPA4131). We couldnt find an explanation for this issue.
MicroPOWER
OPERATIONAL
[5] Paul Horowitz and Winfield Hill, Student Manual for The Art of Electronics
2nd ed., Cambridge University Press, 1989, pp. 3-23.
[6] Texas Instruments,
General-Purpose FET-INPUT OPERATIONAL
AMPLIFIERS, OPA4131 datasheet, Nov. 1994 [Revised Dec. 2002].
[7] John G. Webster, Ed., Medical Instrumentation: Application and Design, 4 th
ed., New York, NY: John Wiley & Sons, Inc., 2010, p 274
[8] Michel Maharbiz, Vivek Subramanian, Electroencephalograph (EEG) Final
Project Part 1: Design and Simulation University of California, Berkley Robotics
Lab,
2013.
[Online].
Available:
http://robotics.eecs.berkeley.edu/~pister/42x100sp13/Resources/Lab_8_EEG.
pdf. [Accessed: Aug. 12, 2014], pp. 8-13
[9] MettingVanRijn, A. C., Peper, A. and Grimbergen, C. A. (1990) High quality
recording of bioelectric events. Part 1: Interference reduction, theory and
practice." Med. & Biol. Eng. & Comput., 28, 389-397.
[10] OpenEEG, The ModularEEG, OpenEEG, 2014. [Online]. Available:
http://openeeg.sourceforge.net/doc/modeeg/modeeg.html. [Accessed: Aug. 12,
2014]
[11] Texas Instruments, A7800 SERIES POSITIVE-VOLTAGE REGULATORS,
LM7805 datasheet, May. 1976 [Revised May. 2003].
[12] NTE Electronics, Low Power Dual Operational Amplifier, NTE928M
datasheet.
[13] John G. Webster, Ed., Medical Instrumentation: Application and Design, 3rd
ed., New York, NY: John Wiley & Sons, Inc., 1998, p. 259.
[14] Analog Devices, Basic Linear Design, Analog Devices Inc., 2006, p. 1.6.
[15] John G. Webster, Ed., Medical Instrumentation: Application and Design, 4th
ed., New York, NY: John Wiley & Sons, Inc., 2010, pp. 267-269
[16] Matthew Hann, Texas Instruments, Use Spice to analyze DRL in an ECG
front
end,
EDN.com,
Jan
5,
2012.
[Online].
Available: