Author Topic: Heart beat measuring analog circuit  (Read 7024 times)

0 Members and 1 Guest are viewing this topic.

Offline logicnibbleTopic starter

  • Contributor
  • Posts: 13
  • Country: pt
Heart beat measuring analog circuit
« on: June 06, 2011, 06:12:44 pm »
Hi!
I was trying to make a circuit to measure the heart rate using those electrodes you stick in the skin (can be a coin).
I've tried an instrumentation amplifier (LT1167) with gain set to 1000, so I was expecting a signal of 1V, but I got so much 50Hz mains noise, that the amplifier output saturates.
Several circuits on the internet use filtering after the amplifier, but I need to get rid of the noise before it enters the amplifier.
How can I reduce this mains noise?
Do you suggest using any particular circuit?

Thanks!
LN

 

Offline Zad

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: gb
    • Digital Wizardry, Analogue Alchemy, Software Sorcery
Re: Heart beat measuring analog circuit
« Reply #1 on: June 06, 2011, 06:39:31 pm »
Have you tried using a 3 terminal system? The use of a third (virtual ground) terminal allows the removal of the induced mains hum. Analog Devices have a huge amount of info on ECG systems http://healthcare.analog.com/en/patient-monitoring/ecg-consumer-grade/segment/health.html


alm

  • Guest
Re: Heart beat measuring analog circuit
« Reply #2 on: June 06, 2011, 07:21:33 pm »
Note that care should be taken to isolate the body from any transients or leakage current. If you had to choose how to best electrocute someone without cutting open their body, ECG electrodes would be it. Resistance is much lower this way. Look at the requirements for medical grade power supplies for some inspiration.
 

Offline johnmx

  • Frequent Contributor
  • **
  • Posts: 285
  • Country: pt
Re: Heart beat measuring analog circuit
« Reply #3 on: June 06, 2011, 11:23:32 pm »
The differential mode of amplification should remove the 50Hz mains interference.
Advice, limit the amplifier’s bandwidth from 0.5Hz to 100Hz.

If you want more help you need to show us the schematic.

I made once an ECG, see the result in the attached picture.
Best regards,
johnmx
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9203
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Heart beat measuring analog circuit
« Reply #4 on: June 07, 2011, 01:58:01 am »
Note that care should be taken to isolate the body from any transients or leakage current. If you had to choose how to best electrocute someone without cutting open their body, ECG electrodes would be it. Resistance is much lower this way. Look at the requirements for medical grade power supplies for some inspiration.
EKG signals are very low bandwidth so it would be trivial to build a battery-operated wireless sensor. In fact, that's going to be part of my senior design project. The DC/DC converter that steps up 10-22V from the pedal alternator to 170-190V for the inverter needs an EKG signal for MPPT operation. Wireless just happens to be the best and most convenient way to get the necessary isolation (for both safety and noise reasons) as well as not requiring the user to be physically connected to the device.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline logicnibbleTopic starter

  • Contributor
  • Posts: 13
  • Country: pt
Re: Heart beat measuring analog circuit
« Reply #5 on: June 07, 2011, 09:24:32 am »
The differential mode of amplification should remove the 50Hz mains interference.
Advice, limit the amplifier’s bandwidth from 0.5Hz to 100Hz.

If you want more help you need to show us the schematic.

I made once an ECG, see the result in the attached picture.
Can you show your design schematic?
To limit the amplifier's bandwidth - should I just choose one with low bandwidth or do that by circuit design?
 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: Heart beat measuring analog circuit
« Reply #6 on: June 07, 2011, 10:28:15 am »
You have to set the transfer function by design,while the amplifier has to be in excess of Gain-BW.

There are ready-made instrumentation amplifiers, which are made for differential input, otherwise you can use an opamp in differential configuration, which allows to use both input and feedback for filtering, but a gain of 1000x would be difficult this way.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 

Offline logicnibbleTopic starter

  • Contributor
  • Posts: 13
  • Country: pt
Re: Heart beat measuring analog circuit
« Reply #7 on: June 07, 2011, 05:12:12 pm »
I'm using the LT1167 with +-5V supply. Reference pin is on GND.
The gain resistor RG was first set to 49R (G=1000).
Output saturates either on ~4V or ~-4V.
I've tried with 49k (G=2) and I got the same results.
Should it be the Common Mode Voltage that is beyond the +-5V and then the outputs saturates immediately?
 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: Heart beat measuring analog circuit
« Reply #8 on: June 07, 2011, 06:10:40 pm »
Sorry, you're already using an instrumentation amplifier.

BW can be set on the input (capacitors in series with R-C parallel), and then you can do further filtering on the output.

If the input terminals come both from body and are treated as differential (i.e. symmetrical paths, and twisted cable if it is worth), you should be able to eliminate the common-mode mains signal.



One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 


Offline logicnibbleTopic starter

  • Contributor
  • Posts: 13
  • Country: pt
Re: Heart beat measuring analog circuit
« Reply #10 on: June 09, 2011, 11:39:33 am »
Check the following resources:

http://www.robots.ox.ac.uk/~neil/teaching/lectures/med_elec/downloads.html#lecture
http://www.picotech.com/applications/ecg.html
http://www.docstoc.com/docs/70647467/ECG-(electrocardiogram)-is-a-test-that-measures-the-electrical
Thanks! These are good information sites regarding ECGs.

I've made some progress but I think I'm having problems with Common-Mode voltage at the instrumentation amplifier inputs:
the output is often at V+(+5V) or V-(-5V) and sometimes it goes from V+ to V- (or vice-versa) slowly, taking ~10s.
During this time, I have the ECG waveform after filtering it between 0.5Hz and 30Hz.
Can I just connect one input to GND to avoid this?
 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: Heart beat measuring analog circuit
« Reply #11 on: June 09, 2011, 12:42:46 pm »
Can I just connect one input to GND to avoid this?

I'm not an expert, but as said above and IIRC in some of the articles linked, it seems that a third electrode connected to the body and to your gnd could solve the problem. Besides this, I'd twist the two input wires (which should be the same length) and avoid using a too much high input resistance.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 

Offline mjkuwp

  • Supporter
  • ****
  • Posts: 260
  • Country: us
  • mechanical engineering defector
    • The Mz Lab
Re: Heart beat measuring analog circuit
« Reply #12 on: June 11, 2011, 12:35:40 pm »
on fitness equipment there are contact assemblies for the LH and for the RH.  Each side has two paddles.  This makes 4 total contact pads but two of them are the same.  You need the RH, the LH and one of the others.  In other words, yes you need 3 connections.

this link looks to have some good information.  i go there via one of the previous links...I think.

http://www.analog.com/library/analogDialogue/archives/37-11/ecg.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf