Author Topic: ECG Analog FE. Heading in the right direction?  (Read 695 times)

0 Members and 1 Guest are viewing this topic.

Offline DmeadsTopic starter

  • Regular Contributor
  • *
  • Posts: 171
  • Country: us
  • who needs deep learning when you have 555 timers
ECG Analog FE. Heading in the right direction?
« on: May 25, 2024, 07:29:39 am »
Hello all!

After some cool work in my DSP class on ECG signals, I would like to work with my own on an arduino (real-time).

I am starting with the analog front end, and wondering if my circuit so far looks okay?

Im concerned about the modeling of the actual right and left arm signals. I would like to add 60 Hz noise as well as the electrode offset (which I think is opposite polarity with abs of 300mV?). Is this simulated correctly?

I am using the AD8232 https://www.analog.com/media/en/technical-documentation/data-sheets/ad8232.pdf

My LTspice schematic is zipped with the ad8232.cir file, and pictures are below.

The output waveform shape looks great, however the gain is not what I expected. I am using the reference circuit from the AD8232 datasheet for cardiac monitoring (pg 28). Gain should be 1100, but I am not getting that. input waveform is max 2mV, getting 10mV out. The gain coming out of "IAOUT" looks correct @ 100, its the lowpass filter on the "OPAMP+" and "OPAMP-" terminals that seems to be messing it up.

Additionally, is it correct to connect the right leg drive feedback to the input right arm and left arm signals to close the loop? I have never simulated with feedback other than normal opamp feedback loops. 
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2523
  • Country: gb
  • Recovering Electrical Engineer
Re: ECG Analog FE. Heading in the right direction?
« Reply #1 on: May 25, 2024, 10:36:46 am »
RLD is right leg for a reason, it’s as far away from the measuring electrodes as you can get.
This helps balance out the source impedances for the common mode signal seen at the measuring electodes.
Note that RLD provcies some DC feedback to reduce the effects of the half cell potentials.
It can be tricky to get right and poor phase margin will cause intsability.

Use the circuits in the data sheet unmodified for best performance. You can buy the ready assembled module for $3 on alaiexpress.

I have found that the back of the right shoulder was a good enough CM drive point.
Like all bioelectrode amplifiers it wont work properly if it has a path to mains ground. Any path, even high impedance via a power supply or a scope or next signal chain item will pretty much guarantee poor or no performance. Even with RLD the preamp CMRR is never enough to deal with the high 50/60Hz fields encountered in moden environments.

The options here are an all battery set-up or full isolation of the AFE ciruits. Icouplers and iso DC-DC stuff for lab work is cheap enough.
Not in the small print of this particular devcie is this fact that is intended for use in portable systems without a connection the mains earth.






« Last Edit: May 25, 2024, 10:56:27 am by Terry Bites »
 
The following users thanked this post: Dmeads

Online daisizhou

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: cn
Re: ECG Analog FE. Heading in the right direction?
« Reply #2 on: May 25, 2024, 11:06:31 am »
Do you have plans to build a patient simulator?
daisizhou#sina.com #=@
 

Offline DmeadsTopic starter

  • Regular Contributor
  • *
  • Posts: 171
  • Country: us
  • who needs deep learning when you have 555 timers
Re: ECG Analog FE. Heading in the right direction?
« Reply #3 on: May 25, 2024, 06:43:46 pm »
probably not, just this simple AFE. I am more focused on DSP, but want to make sure I have basic grasp of a single lead ecg front end.
 

Offline DmeadsTopic starter

  • Regular Contributor
  • *
  • Posts: 171
  • Country: us
  • who needs deep learning when you have 555 timers
Re: ECG Analog FE. Heading in the right direction?
« Reply #4 on: May 25, 2024, 06:53:18 pm »

The options here are an all battery set-up or full isolation of the AFE ciruits. Icouplers and iso DC-DC stuff for lab work is cheap enough.
Not in the small print of this particular devcie is this fact that is intended for use in portable systems without a connection the mains earth.

gotcha thanks. I was going to use the 5V on the Arduino board but will opt for a battery instead. Looks like max +Vs is 3.5 anyway.

Thanks for the pdfs. I can see how they modeled the electrodes which is helpful.
 

Online daisizhou

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: cn
Re: ECG Analog FE. Heading in the right direction?
« Reply #5 on: May 25, 2024, 07:22:46 pm »
Hello all!

After some cool work in my DSP class on ECG signals, I would like to work with my own on an arduino (real-time).

I am starting with the analog front end, and wondering if my circuit so far looks okay?

Im concerned about the modeling of the actual right and left arm signals. I would like to add 60 Hz noise as well as the electrode offset (which I think is opposite polarity with abs of 300mV?). Is this simulated correctly?

I am using the AD8232 https://www.analog.com/media/en/technical-documentation/data-sheets/ad8232.pdf

My LTspice schematic is zipped with the ad8232.cir file, and pictures are below.

The output waveform shape looks great, however the gain is not what I expected. I am using the reference circuit from the AD8232 datasheet for cardiac monitoring (pg 28). Gain should be 1100, but I am not getting that. input waveform is max 2mV, getting 10mV out. The gain coming out of "IAOUT" looks correct @ 100, its the lowpass filter on the "OPAMP+" and "OPAMP-" terminals that seems to be messing it up.

Additionally, is it correct to connect the right leg drive feedback to the input right arm and left arm signals to close the loop? I have never simulated with feedback other than normal opamp feedback loops.

As a digression, are you familiar with this DSP chip?
daisizhou#sina.com #=@
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf