How Do You Design a Digital FIR Filter to Remove a 70Hz Disturbance?

AI Thread Summary
To design a digital FIR filter to remove a 70Hz disturbance at a sampling frequency of 280Hz, the initial calculations involve determining the normalized frequency w0 as pi/2. The zeros of the filter are calculated using complex exponentials, leading to a transfer function expressed as Z2H(z) = (z - exp(i*(pi/2)))(z - exp(-i*(pi/2))). However, the resulting filter function y(n) = x(n) + x(n - 2) with coefficients a(0) = 1, a(1) = 0, and a(2) = 1 is identified as incorrect due to errors in the expansion and simplification process. Correcting these errors is essential for achieving the desired filter design.
BriWel
Messages
2
Reaction score
0
I have a question which is to design a filter of the form:

y(n) = a(0)x(n) + a(1)x(n-1) + a(2)x(n-2) to remove a narrowband disturbance with frequency f0 = 70Hz.
The sampling frequency, fs is 280Hz.

I've made an attempt at answering it, but don't think my result is correct:

w0 = (2*pi)* (f0/fs) = pi/2

I then calculate the zeros of the filter from the definition of w

z1 = exp(i*(pi/2))[
z2 = exp(-i*(pi/z))
where i = sqrt(-1)

The transfer function of the filter is therefore;

Z2H(z) = (z - exp(i*(pi/2))[ )(z - exp(-i*(pi/z)) )

When expanded and simplified this gives

H(z) = z2 + 1, so the filter function

y(n) = x(n) + x(n - 2),
giving
a(0) = 1
a(1) = 0
a(2) = 1

Which I'm pretty sure is wrong. Can anyone tell me where I have gone wrong?
 
Physics news on Phys.org
You did wrong while expanding and simplifying
 

Similar threads

Replies
2
Views
2K
Replies
2
Views
2K
Replies
6
Views
3K
Replies
12
Views
11K
Replies
1
Views
2K
Replies
3
Views
3K
Back
Top