Вы находитесь на странице: 1из 12

EE3SPR: SIGNAL PROCESSING

ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

EE3SPR
SIGNAL PROCESSING
ASSESSMENT 1

By:
CHUA Kok Vee
(074152883)

School of Engineering & Applied Science


Aston University, Birmingham.

Submitted for the Degree of Bachelor of Engineering (Honours)


in Communication Engineering.

Submitted on
23rd April 2009.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

SIGNAL PROCESSING ASSESSMENT 1

The aim of this assessment is to design a low pass filter using the MATLAB
software. The following report shows how the design of the filter is done to achieve
the objectives as given in the question.

Objectives:-

• Using MATLAB to design a low pass analogue filter.


• Cut off frequency of 3 kHz.
• At least 20 dB of attenuation at 5 kHz.

Designs Approach.

There are two approaches in achieving the above objectives for the assessment.
One approach would be to place poles and zeros in the s-plane to give a suitable
frequency response; to adopt an active or passive filter implementation; and to
calculate component values appropriately.

Another approach that can be used to achieve the above objectives are by
investigating classical filter designs, for example Butterworth filter, Chebychev type 1
filter, Chebychev type 2 filter or Elliptic filter.

The following report here is based on the later approach where an investigation of
classical filters between the Butterworth filter and the Chebychev which are
compared and investigated.

Before implementing the filters, there are several MATLAB library functions which
are useful to the assessment. These are stated on the next topic.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

MATLAB Library Functions.

Some procedure and steps have to be taken in designing the low pass filter. Apart
from those procedures, library files are also used for easy implementation. The
library files that are used in designing the low pass filters are ‘lp2lp’, ‘zp2tf’, ‘cheb1ap’
and ‘buttap’.

‘lp2lp’ means low pass to low pass analogue transformation. It simply transforms the
low pass filter prototype NUM(s)/DEN(s) with unity cut off frequency of 1 rad/s. The
command to use this function is shown below:-
[NUM, DEN] = LP2LP (NUM, DEN, Wo);
where NUM = Numerator,
DEN = Denominator,
Wo = Cut off Frequency.

‘zp2tf’ function is used to convert zero-pole to transfer conversion. It returns the


coefficients of the numerator and denominator in descending power of s. The
command to use this function is shown below:-
[NUM, DEN] = ZP2TF (Z,P,K);
where Z = Zeros,
P = Poles,
K = Gain,
N = Order of filter,
Rp = Decibels of ripple in passband.

‘cheb1ap’ is a type 1 analogue low pass filter prototype that is available in the
MATLAB library. It returns the zeros, poles and gain of an Nth order normalised low
pass filter when used. The command to use this function is shown below:-
[Z,P,K] = CHEB1AP(N, Rp);
where Z = Zeros,
P = Poles,
K = Gain,
N = Order of filter,
Rp = Decibels of ripple in passband.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

‘buttap’ is a command use to investigate Butterworth filters that is available in the


MATLAB library. Using the command, it returns the zeros, poles and gain for an Nth
order normalized prototype Butterworth analogue lowpass filter. The command to
use this function is shown below:-
[Z, P, K] = BUTTAP (N);
where Z = Zeros,
P = Poles,
K = Gain,
N = Order of filter.

Designs of Low Pass Filter Using 4th Order Chebychev Type 1.


Program Listings:-
================================================================
Filter_Order = 4;

[z, p, k] = cheb1ap(Filter_Order,0.5);

[num, denum] = zp2tf(z, p, k);


wb = 2 * pi * 3000;
[nc, dc] = lp2lp (num, denum, wb);
bode(nc, dc);
==============================================================

The filter designed is a 4th order Chebyshev type 1 filter. The passband ripple
selected is 0.5dB. The cut-off frequency as above on the program listing is
programmed to be 3000 Hz where it is converted to radians as shown above in line
4. Figure below shows all the characteristics of the frequency response for the low
pass filter designed.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Frequency Response of 4th Order Chebychev Type 1 Filter:-

As shown on figure of frequency response above, it can be seen that the cut-off
frequency for the filter designed is 3.27 kHz at -3dB point and also it has at least
20dB of attenuation at 5 kHz as required for the design objectives.

After this filter has been finalized, certain coefficients and values can be determined
from MATLAB. With these values and the transfer function of the filter known, the
component values can be determined and also pole-zero can be plotted.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Designed Filter Coefficients of 4th Order Chebychev Type 1 Filter:-

Below are the coefficients of the filter designed obtained from the MATLAB. These
coefficients are the transfer function for a low pass filter of chebyshev type 1 filter:-

nc(s) = 4.5175e+016
dc(s) = 1.0e+016 *
(0.0000 0.0000 0.0000 0.0007 4.7852)

s4 s3 s2 s1 s0

Using the coefficients, the transfer function of the chebyshev filter looks like this:-

Then using the function ‘tf2zp’, we can convert the transfer function with the
coefficients above to give the position of poles and zeros. The command to do this is
shown below. It will return the coefficients of poles, zeros and gain of the filter.

[Z, P, K] = tf2zp (nc, dc)

Zeros (Z) = No Zeroes


Poles (P) = 1.0e+004 *
-0.3305 + 1.9156i  p1
-0.3305 - 1.9156i  p1*
-0.7980 + 0.7935i  p2
-0.7980 - 0.7935i  p2*
Gain (K) = 4.5175e+016

From the pole-zero coefficients, the diagram for zero-pole plot can be drawn also
using the MATLAB program. To plot the zero-pole figure, the command used is
shown.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Zero-Pole Plot of 4th Order Chebychev Type 1 Filter:-

Command used to plot the figure:


plot (-0.3305, 1.9156, 'rx', -0.3305, -1.9156, 'rx', -0.7980,
0.7935, 'rx', -0.7980, - 0.7935, 'rx')

From the plot above, there are no zeroes and there are 4 poles located on the left
hand side of the s-plane. This determines that the filter is stable and it is in the order
of 4.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Designs of Low Pass Filter Using 5th Order Butterworth Filter.


Program Listings:
================================================================
Filter_Order = 5;

[z, p, k] = buttap(Filter_Order);

[num, denum] = zp2tf(z, p, k);


wb = 2 * pi * 3000;
[nc, dc] = lp2lp (num, denum, wb);
bode(nc, dc);

================================================================

The filter designed is based on a 5th order Butterworth filter. The cut-off frequency as
above on the program listing is programmed to be 3000 Hz where it is converted to
radians as shown above in line 4. Figure below shows all the characteristics of the
frequency response for the low pass filter designed.

Frequency Response of 5th Order Butterworth Filter:-

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

As shown on figure of frequency response above, it can be seen that the cut-off
frequency for the filter designed is 2.99 kHz at -3dB point and also it has at least
20dB of attenuation at 5 kHz as required for the design objectives.

After this filter has been finalized, certain coefficients and values can be determined
from MATLAB. With these values and the transfer function of the filter known, the
component values can be determined and also pole-zero can be plotted.

Designed Filter Coefficients of 5th Order Butterworth Filter:-

Below are the coefficients of the filter designed obtained from the MATLAB. These
coefficients are the transfer function for a low pass filter of 5th Order Butterworth
Filter:-

nc(s) = 2.3796e+021
dc(s) = 1.0e+021 *
(0.0000 0.0000 0.0000 0.0000 0.0004 2.3796)

s5 s4 s3 s2 s1 s0

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Using the coefficients, the transfer function of the 4th order Butterworth filter looks like
this:-

Then using the function ‘tf2zp’, we can convert the transfer function with the
coefficients above to give the position of poles and zeros. The command to do this is
shown below. It will return the coefficients of poles, zeros and gain of the filter.

[Z, P, K] = tf2zp (nc, dc)

Zeros (Z) = No Zeroes


Poles (P) = 1.0e+004 *
-0.5825 + 1.7927i  p1
-0.5825 - 1.7927i  p1*
-1.8850  p2
-1.5250 + 1.1079i  p3
-1.5250 - 1.1079i  p3*
Gain (K) = 2.3796e+021

From the pole-zero coefficients, the diagram for zero-pole plot can be drawn also
using the MATLAB program. The zero-pole plot is shown below. To plot the zero-
pole figure, the command used is also shown

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Zero-Pole Plot of 5th Order Butterworth Filter:-

Command used to plot the figure:


plot (-0.5825, 1.7927, 'bx', -0.5825, - 1.7927, 'bx', -1.8850,
0, 'bx', -1.5250, 1.1079, 'bx', -1.5250, - 1.1079, 'bx')

From the plot above, there are no zeroes and there are 5 poles located on the left
hand side of the s-plane. This determines that the filter is stable and it is in the order
of 5.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING
EE3SPR: SIGNAL PROCESSING
ASSESSMENT 1: DESIGN OF ANALOGUE FILTERS

Comparison of Filters Investigated.

From the above investigation of the two filters, namely the Butterworth Filter and the
Chebychev Filter, there are some differences required in the design to achieve the
required objectives in designing a low pass analogue filters as required for the
assessment. Also these two filters have different characteristics. These differences
are:-

 The Chebychev filter only needs a 4th order to achieve the following objectives
while the Butterworth filter requires an order of 5 only then it can achieve the
objectives.

 Chebychev has a steeper roll off rate as compared to the Butterworth filter. As
a result, the Butterworth requires a higher order in order to achieve an
attenuation of 20dB at 5 kHz.

Conclusions

In conclusion with investigating the two above filters as described, a low pass
Chebychev filter is more efficient than a low pass Butterworth filter. This is because a
Chebychev filter requires a lesser amount of order to achieve the main objectives of
the design as compared to Butterworth filter as investigated above. This is because
of the characteristics of the Chebychev filter which has a steeper roll off rate than the
Butterworth filter. Overall the Chebychev filter requires lesser components to build.

CHUA KOK VEE (074152883)


B. ENG COMMUNICATION ENGINEERING

Вам также может понравиться