next up previous
Next: Digital filter design with Up: Some real (as against Previous: Some simple digital filters

Mains frequency rejection filter

Interference at the 50Hz mains frequency and its harmonics can be a nuisance for high gain amplifiers used in measurement systems. Show that 50Hz and its harmonics at 100Hz and 150Hz can be suppressed using a filter whose transfer function is :

displaymath928

Solution

displaymath929

displaymath930

displaymath931

Check that tex2html_wrap_inline942 for tex2html_wrap_inline944 .

So the response has nulls (zeros) at these 4 digital frequencies. So we want a digital frequency of tex2html_wrap_inline946 to correspond to a frequency of 150Hz. So the sampling frequency must be 300Hz.

Use zplane to plot the positions of the poles and zeros of H(z). Recall from our simple band rejection filter how a complex conjugate pair of zeros on the unit circle gives a null response at a particular frequency.

num=[1 0 0 0 0 0 -1];
den=[1];
zplane(num,den);
title('Circles are zeros of H(z)=(z^6-1)/z')

Use freqz to plot the magnitude and phase responses :

num=[1 0 0 0 0 0 -1];
den=[1];
[H,q]=freqz(num,den,512);
mag=abs(H);
phase=angle(H);
plot(q,mag,'.');
title(' Multiple notch filter - use 300Hz sampling')
xlabel(' Digital Frequency')
ylabel(' Magnitude Response')

The equivalent DE is found as follows :

displaymath932

displaymath933

Take the inverse z-transform :

displaymath934



Keith Jones
Tue Oct 27 11:32:15 EST 1998