This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

60 Hz notch filter and baseline wander filter for ECG applications

Other Parts Discussed in Thread: ADS1298, ADS1291

Ti had free source code available for a 60Hz notch filter and baseline wander filter for ECG applications.  It may have been associated with the ADS1298 demo. We would like to port the filters to an OMAP L138.  Can anyone please direct me to a link to this source code?  Thanks.

  • Hi Bill,

    I found someone to look into this request for you. Here is the response I received:

    Here is the source code for the ECG kit on C5515 using ADS1298

    http://code.google.com/p/c5505-ezdsp/

    Download the package ADS1298 ECG MDK mentioned under C5515. The 60 Hz Notch filter co-efficients can be found in the file ECG_Filter_Co-efficients.c. The ECG data filtering process is implemented in C55x assembly but appears to simple convolution of fir filter coefficients with the input data. You can find optimized FIR filter implementation in the c674x DSPLIB. I did not find the baseline wander filter in that package but I will look inside other packages that are linked on that page and let you know.

    Bill if I receive any more information I will be sure to let you know.

  • Franklin:

    Thank you for your help.  We did download the optimized FIR filter in the c674x DSPLIB.  We are still searching for the baseline wander filter.  Any help would be appreciated.  Thanks.

    Bill

  • Bill,

    On the same url that Franklin shared, you can download the MDK_Stethoscope_C5515EVM package. In that package, you can find a simple implementation of a baseline wander filter using moving average FIR filter. Look for the filter implementation under the path MDK_Stethoscope_C5515EVM\StethSystem_v_0_12\projects\STETHSystem\src.  Will this suffice your requirements?

    Regards,

    Rahul

  • Hi Rahul

    I am using ADS1291 in a ECG project, the sample rate is 125 or 250 sps, but demo source code is based on 500 sps. it is a little bit tough for me to design filter. do you have any suggestion or link to make this design easier?

    Sincerely,

    David Sun