Previous in Forum: Need Information About Wirefire Card   Next in Forum: ARM Microcontroller
Close
Close
Close
7 comments
Rate Comments: Nested
Active Contributor

Join Date: Jul 2011
Posts: 20

Digital Filter Usage

07/10/2011 2:12 PM

I have a 5 Vp-p 50Hz sinusoidal signal being sampled at 3kHz and after sampling a digital IIR filter(single pole,32 bit resolution) is applied whoes transfer function is H(z)=z/(z-a)the value of 'a' is a=1-(1/2^6) or 1-(1/2^11), the doubt that i have, surfaced when i calculated the -3db cutoff frequency of the transfer function for two values of 'a' using |H(e^jw)|=1/(1-a){max value} at w=0.the cutoff for a=1-(1/2^6) was found to be 7.45Hz and for the other vlaue of 'a' the cutoff was 0.23Hz my doubts/queries are as follows

1)is the method i have used to derive at the cutoff correct

2)for a sampled 60Hz input signal is application of a filter whoes cutoff is .23 or 7.45Hz justifiable.

3)i have a hunch that these cutoff frequencies may be sensible if i consider removal of quantization noise or Bit Error Rate(32 bit resolution) am i correct?

any comments/suggestions are welcome.

__________________
bharath.manogna@lnties.com
Register to Reply
Pathfinder Tags: iir filter
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Jan 2008
Posts: 1753
Good Answers: 59
#1

Re: Digital Filter Usage

07/11/2011 7:17 PM

Something is wrong with your premise / setup. And I do not understand some details. BUT, a 3kHz sampling filter of 60Hz, takes it well beyond Nyquist. Much beyond it, unnecessarily, unless harmonics needed to be reproduced properly. You forgot to mention any of it.

A properly designed filter for such a purpose supposed to carry all components from DC up to whatever frequency component is desired.

Any lower frequency corner??!?? What for? Explain!

Register to Reply
Active Contributor

Join Date: Jul 2011
Posts: 20
#2
In reply to #1

Re: Digital Filter Usage

07/12/2011 12:36 AM

hello leveles thank u for ur response

i have a piece of code written for a ups which is supposed to calculate the mean square value of the input signal, the comment of the code contains the transfer function which i mentioned and the value of 'a' is as stated in my question, my task is to identify the spec of the digital filter used using the transfer function and the coefficient 'a' ,if u can see in my calculations, u can see that i used the magnitude value of H(e^jw) to compute the maximum magnitude from where i calculated the -3db point and found out the corresponding frequency since the input to the digital filter is a squared value of the raw ADC output i think this filter is used to remove the quantization noise (low cutoff .23Hz,7.5Hz).

now if u could answer to my queries in the numerical fasion that i asked them it would be very help ful,

hope the additional info that i provided is helpful....

__________________
bharath.manogna@lnties.com
Register to Reply
Guru

Join Date: Dec 2010
Posts: 1686
Good Answers: 116
#7
In reply to #2

Re: Digital Filter Usage

07/12/2011 1:49 PM

Try referring to the following :-

http://www.bores.com/courses/intro/iir/5_eq.htm

I got to that by using a search for "digital filter" in "Wikipedia"

http://en.wikipedia.org

[which has a number of free filter design software links] - which got me to :-

http://en.wikipedia.org/wiki/Digital_filter#Types_of_digital_filters

-- and then the "see also..." part of that had a link to "infinite impulse response" - which led to the external link listed first.

I guess the basic formula you give has to be modified for sample rate.

Also, a routine to calculate the rms value of a real mains frequency voltage would have to include the major harmonics like 3rd, 5th, 7th to have good accuracy - hence a low-pass filter with passband to say 50 Hz x 7 = 350 Hz at -3 dB.

A low pass filter leaving just the fundamental (e.g. -3 dB at 50 Hz) would make rms processing pointless, because the output would be a sine form and using the mean value would be as effective for a control loop as rms.

Register to Reply
Guru

Join Date: Jan 2008
Posts: 1753
Good Answers: 59
#3

Re: Digital Filter Usage

07/12/2011 3:00 AM

Hallo Bharat!

It seems to me, that you misunderstood the very nature of this website we are conversing on. Here, you ask whatever you want to, and I or somebody else answers as we see fit.

In this particular case, I fail to see sense in the question. Let me explain, why. In a negative feedback loop a DC value and many higher frequency components have to be carried. There are amplitude and phase requirements, hence the requirement for some specific filter. BUT, DC sets the operating point. The rest is valuable enhancement only: like fast response, low noise.

You may have an exquisitely digitized system. But, in any synchronous digitized system, THERE IS NO LOWER BANDPASS EDGE, NONE. I cannot comprehend the need for one. Digitization noise at a low frequency? What the heck you are talking about in the first place?? I have never met one. Explain, fully now.

Register to Reply
Active Contributor

Join Date: Jul 2011
Posts: 20
#4
In reply to #3

Re: Digital Filter Usage

07/12/2011 5:12 AM

hello Leveles

plz excuse my questioning methods , u see i am a new user of this website and i am just getting started.........

i will make it simple

i have a transfer function H(Z)=z/(z-a) with a<1 (a=0.984375) ---------(1)

i conceive it as a first order single pole low pass filter,

what other specification can it get by just using the info in------------------(1).

__________________
bharath.manogna@lnties.com
Register to Reply Off Topic (Score 5)
Active Contributor

Join Date: Jul 2011
Posts: 20
#5
In reply to #3

Re: Digital Filter Usage

07/12/2011 5:43 AM

and i am sorry i meant higher cutoff (0.23Hz/7.5Hz)............

__________________
bharath.manogna@lnties.com
Register to Reply Off Topic (Score 5)
Active Contributor

Join Date: Jul 2011
Posts: 20
#6
In reply to #3

Re: Digital Filter Usage

07/12/2011 5:45 AM

and i am sorry its higher cutoff(.23Hz and 7.5Hz)

__________________
bharath.manogna@lnties.com
Register to Reply Off Topic (Score 5)
Register to Reply 7 comments
Copy to Clipboard

Users who posted comments:

67model (1); bharathmanogna (4); leveles (2)

Previous in Forum: Need Information About Wirefire Card   Next in Forum: ARM Microcontroller

Advertisement