Best comb filter

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Best comb filter

#1 Post by LGR » 13 Nov 2006 20:39

Here's a general question for the DSP experts out there: What's a better algorithm for comb filtering 50/60 hZ noise and it's harmonics from a signal? FIR, or IIR?
If you know what you're doing, you're not learning anything.

Bob Lawrence
Posts: 300
Joined: 18 Aug 2004 11:55
Location: Lwr Sackville, Nova Scotia, Canada

C+ Example - 5 cascaded band stop filters - Second Order IIR

#2 Post by Bob Lawrence » 10 Mar 2007 17:53

Larry,

I can't answer your question directly but I have source code for a DSP example written in C+ that uses the following:

- Band stop filter with high Q
- For 16 bit numbers the attenuation of Notch freqs - better than 90dB-
- Second Order IIR cascaded network of n = 5 band stop filters

Harmonics Removed :

60Hz
120 Hz
180 Hz
240 Hz
300 Hz

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

#3 Post by LGR » 11 Mar 2007 15:40

That sounds like a good candidate for the projects section. Removal of 60 hz (adjustable to 50 hz, if necessary) harmonics is a pretty standard procedure for sensitive DC input signals.
If you know what you're doing, you're not learning anything.

mcampeau
Posts: 1
Joined: 29 May 2013 00:48

Re: Best comb filter

#4 Post by mcampeau » 29 May 2013 00:53

Hi Bob,

I am working on a project that requires a 60Hz comb filter for a DSP. I would like to talk to you about the code you written. Thanks.

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”