Jordan B Peterson is a Professor of Psychology at the University of Toronto, a clinical psychologist, a public speaker, and a creator of Self Authoring.
Electrocardiography is the study of the electrical signals produced by the heart during the cardiac cycle. Doctors monitor a person's electrocardiogram (ECG) in order to assess how the heart is functioning and can be used to diagnose a variety of cardiac diseases. The ECG is thought to have first been discovered by Alexander Muirhead1 and has become a hallmark in patient care. It turns out that an ECG is very easily obtained with a few common circuit components. I'll show you how to build a 'Super Simply Electrocardiogram (ECG) Circuit.' This Instructable assumes that you know a few basic concepts of circuit design and analysis such as: If you are a bit shaky on these topics, please consult the links provided for additional information.1 'Electrocardiography.' Accessed: November 5, 2016.
Warning: Please do not connect your ECG circuit to a wall outlet or any instrument powered through the wall outlet for safety reasons. Warning: This is not a medical device.
The Instrumentation Amplifier is probably the hallmark amplifier for bioelectrical measurements for a number of reasons, most notably: (1) high input impedance and (2) very good common mode rejection. High input impedance ensures that we do not draw current from the system that we are measuring. Since we are connected to a biological system, drawing current from that system can actually be dangerous in some instances. Additionally, electrodes are often used to interface the biological system with the circuit. We usually use metals as electrodes, which are very good conductors of electricity. Unfortunately, the impedance of an electrode can vary unpredictably when placed into a biological system for a number of reasons.
Using a high input impedance amplifier helps us nullify the effects of changing electrode impedance and maintain signal integrity.allows us to diminish the effects of background signals that distort our measurement, often called common mode noise. Instrumentation amplifiers are specifically designed to ensure we reject as much common-mode noise as we can. This parameter is reported in the amplifier's ' which is essentially the amplifier's spec sheet produced by the manufacturer of the device. You will typically find CMRR (Common Mode Rejection Ratio) or CMR (Common Mode Rejection) reported as a function of frequency and is given in units of '.' DB stands for 'decibels' and is a logarithmic relationship of voltage gain.CMRR and decibels are a bit out of the scope of this Instructable. Please see the links for more information. For the rest of this Instructable, I will use a modified circuit to use a 'single supply' with my amplifiers.
We need a few more components.Instrumentation Amplifier 1 xOp Amps 1 x1 x 1k 1 x 10k 1 x 820k 1 x 1.47M3 x 470nF+5V (1 lithium polymer battery is suggested. That would give you +3.7V. I powered mine through 5V on the Arduino, however, with my Arduino disconnected from mains.) Warning: Please do not connect your ECG circuit to a wall outlet or any instrument powered through the wall outlet for safety reasons.Accessories 3 x 3 x. I often use 'single supply' amplifiers for convenience. Many amplifiers are powered with a 'bi-polar supply' meaning that you have to give the amplifier a positive and a negative voltage for it to operate correctly. Some amplifiers are specified for 'single supply' operation meaning you only need a positive voltage and ground to operate the amplifier.
This is really convenient because it allows us to operate amplifiers with very small batteries such as lithium polymer battery (3.7 V) or even a few AAA batteries (1.5 V). Single supply operation is even more convenient when using a microcontroller with our amplifiers. Microcontrollers most often work with a single voltage supply (for example, the Arduino UNO runs off 5 V).Single supply operation poses a bit of a problem, however, for using our instrumentation amplifier for measuring ECG. Our ECG waveform is AC (alternating current) and will alternate between positive and negative voltages. As a result, we will use a Vref (voltage reference) generator, that will provide an offset voltage for the output of our instrumentation amplifier.
This ensures that the output voltage of the instrumentation amplifier will never be negative. We will set our Vref generator to 1/2 of the positive supply voltage. In my case, I powered by circuit with 5V. My Vref generator is then 2.5V.
You may find that your signal is not big enough, even after putting a bit of gain on the instrumentation amplifier. If you do, an additional amplifier circuit will do the trick.
Any number of amplifier configurations will work, but for reference sake I used an inverting amplifier. Notice from the diagram, we are also doing a bit of filtering in this stage as well, making this stage an 'active highpass filter.' You may notice a few deviations from the typical inverting amplifier configuration that you may be familiar with. First, instead of placing a ground at the non-inverting pin, we actually place our generated reference voltage from step 6. Secondly, we include a high pass filter at the input of our inverting amplifier. This filter has a pretty specific purpose. Even though we used a Vref generator for our instrumentation amplifier to ensure that our output is maintained at a specific voltage level, small deviations from this level can occur.
(Reasons for the deviations will be explained in Step 10). As such we use a high pass filter to block the unstable voltage level and re-center the signal at our generated reference voltage. Recall from op amp rules that the voltage at the inputs of our op amp are equal. Therefore, if the voltage at the non-inverting pin is Vref, then the voltage at the inverting pin is also Vref.
Furthermore, because we use a high pass filter at the input of the amplifier, there will be no DC gain by our inverting amplifier and our output voltage will also be centered around Vref. The above video demonstrates what my ECG signal looked like when a number of the following guidelines were not followed.Electrode connections. Electrode placement and contact is essential for obtaining a stable ECG signal. Please ensure that your electrodes have very good contact with the skin and are not drying out. Please use to ensure your electrodes remain moist.
We usually pick up small DC voltages with our electrodes that will subsequently be amplified by our Instrumentation amplifier. If you notice that the output of your instrumentation amplifier goes to the maximum or minimum voltage, please decrease the gain of the amplifier. You can also check the DC offset voltage on your electrodes by measuring the DC voltage at each of inputs of the instrumentation amplifier. If the difference in the DC voltage of each of your inputs multiplied by the gain of your amplifier is very large, then your signal is will be distorted by causing a strong deviation from our bias point that we set in Step 3. Try adjusting the electrodes to ensure firm contact with your skin and/or apply to ensure a good connection.Amplifier Considerations. I have noticed that any resistance smaller than 1k for Rg causes unstable behavior in the amplifier.Power-on Sequence. I suggest connecting all your electrodes to your circuit, including ground, before turning your circuit on.
If the inputs of your instrumentation amplifier are not connected to a reference point before the amplifier is turned on, they could 'float' unpredictably causing the output of your amplifier to be unstable. Immediately connecting your electrodes may not solve this problem as the amplifier has to re-adjust quickly and may not have a proper path to discharge the its output.General Guidelines.
Stay still. Moving around will distort your signal. Stay relaxed. Tensing your muscles will causes distortion by picking up electrical signals from skeletal muscles instead of the heart.A Few More SuggestionsGain and more Filtering. I made this circuit for general biopotential measurements, but once you figure out the specific signal you want to measure, you'll probably need to make more changes. For ECG, the amount of gain used is probably sufficient, but for EEG or a more sensitive signal, you'll probably need some more gain. I would recommend adding a few bandpass filters.
I usually use two bandpass filters with gains of 26.6dB and cutoff frequencies of 0.7Hz and 34Hz for EEG. A 60Hz notch filter would be nice as well. There is MUCH, MUCH more we can do to this circuit to make it robust. The purpose of this Instructable was to provide the minimal circuitry necessary to obtain a reasonable ECG signal. I have presented the circuit I used to do just that. I attached screenshots of a mock-up of a more involved circuit design. Please note that this design was simulated and not built.
I have also included the magnitude vs. Frequency response of the circuit.You can modify the simulation on. Please feel free to search the web for more sophisticated implementations of the ECG circuit, but what I have presented should get you going. There's an inconsistency here. If you build yourself an ECG, heart-monitoring machine, ie a kit of parts with wires to wrists and ankles, you all worry you might get electrocuted by your 5v mains PSU. But if you instead built say a radio or anything else powered by that same PSU, you would not be in the slightest concerned if you touched live wires during the construction process because its only 5v. But thats the same 5v, connected to your hands.
Its either dangerous in both circuits or safe in both circuits - completely irrelevant that one happens to be measuring your heart.I suggest to you that this circuit is perfectly safe, unless your mains adaptor is faulty - then it is dangerous whatever the circuit you construct!The body has a high resistance and is immune to low voltages like this. I am not in the slightest concerned to grab the terminals of a 12v car battery one in each hand. It's not the same thing - here you are deliberately connecting the terminals to the skin in such a way that the heart is on the path between them, and likely leaving the connection in place for some time.
So the consequences of your mains adaptor developing a fault, unlikely as that may be, can be far worse.I pull the cord out of my lawnmower before clearing the blade, even though there's very low likelihood the power switch will fail closed while I'm doing it.There is no failure mode of a battery, as far as I know, which can cause it to generate 110V AC or similar by itself. HelloNicely done and something close to my heart (no pun).As an ICD (Implanted Cardiac Device) patient, I owe a lot to ECG's not only for the diagnosis of my condition (complete heart block, so no natural pacemaker function) and to the wonderful device that keeps me ticking over.The ICD is a wonder of micro-electronics and presumably has all the circuitry you describe plus a lot more to store events, be interrogated contact-free and decipher what remains of my natural pacemaker before administering the correct electrical pulses. I am on ICD number two, the old one failing after 11-years use.I often wonder what patients did before basic electronics were invented.Much as I like the project, I don't think I will be trying it out, too risky.I measured a cheap PSU output and although it showed 12-V dc across the LV side, it was 120-V relative to ground, safer to stick with batteries. The circuit that you describe is called aVL, the 'a' stands for'augmented'. They are unipolars, like Vx, and they fake ground against the other arm/foot (Same thing for aVR, aVF.). Moving the electrode to the six points on the chest can give you readings, but they will be better with the 'fake ground' circuit.
Making medical diagnosis is a tricky thing, and it depends heavily on the quality of the signals. A little up or down of the baseline and you can do the wrong diagnosis. Other than this, i do agree with you. Best regards. I described a chest lead, not aVL.Your 'fake ground' is properly called 'Goldberger's Central Terminal'. It's all described nicely in the Wikipedia linked from the original article - ieFor measuring the the chest leads V1-V6 the exact ground does not really matter, and using the two wires connected to right arm and a leg will be quite OK.The main quality issue with this circuit is that the author has not implemented a low-pass filter to get rid of the 50 Hz mains hum (60 Hz if you are unlucky enough to be ruled by Mr Trump!).
I must agree with you. Calling it 'fake ground' was just a simplistic way to kickstart the original question. But, I must quote Wikipedia:'Leads aVR, aVL, and aVF are the augmented limb leads. Well, a colleague after all:-). More to agree than to diverge.
Sorry to hear about you lost Windows patent. What a shame. How would you name your company?
(When i think of it, I do remember an old Mel Brooks movie. The evil was called 'Bite and Devours' or something like that.) Just joking. Dont take me wrong.
By the way, i am from Argentina. If somehow i do manage to go to Switzerland (very unlikely, i am afraid), let me buy you a beer.You are right. Is getting too long. I am getting too old too.
I must shut up. Best regards.