0% found this document useful (0 votes)
64 views10 pages

IIR Digital Filter Design Project

This document describes a student project to design different types of Infinite Impulse Response (IIR) digital filters using MATLAB. The project involves designing Butterworth, Chebyshev Type I and II, and elliptic IIR filters. The document provides the MATLAB code used to design Chebyshev Type I and II filters, as well as Butterworth filters. It also includes the output of running the MATLAB code. The overall goal of the project is to present the design of different IIR filters using MATLAB along with their graphical and numerical representations.

Uploaded by

SurajSingh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views10 pages

IIR Digital Filter Design Project

This document describes a student project to design different types of Infinite Impulse Response (IIR) digital filters using MATLAB. The project involves designing Butterworth, Chebyshev Type I and II, and elliptic IIR filters. The document provides the MATLAB code used to design Chebyshev Type I and II filters, as well as Butterworth filters. It also includes the output of running the MATLAB code. The overall goal of the project is to present the design of different IIR filters using MATLAB along with their graphical and numerical representations.

Uploaded by

SurajSingh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Dr. M.G.R.

EDUCATIONAL AND RESEARCH INSTITUTE


Deemed to be University U/s 3 of the UGC Act 1956)
Accredited with B+ by NAAC | AICTE Approved - NBA Accredited
An ISO 9001:2008 Certified Institution

MINI PROJECT

Design of Different IIR Digital Filters

ABSTRACT:
Infinite Impulse Response (IIR) filter is of recursive type
filter. Some of the classical IIR filters, Butterworth, Chebyshev
Types I and II, elliptic, and Bessel. .The present output sample of
an IIR filter depends on the present input samples, past input
samples and past output samples. There are a number of techniques
available to determine the digital IIR Filters. This paper is based on
the computer based approach to design the digital IIR filter using
different digital mapping techniques such as for eg : analog to digital
mapping technique .

In this project we are going to use MATLAB software to present the


designs
Of different types of IIR FILTERS, along with there respective
graphical as well as numerical representation. In this project we are
also going to discuss about the difference between the IIR FILTER
AND FIR FILTER.

Keywords: IIR filter, Digital filter, High pass filter, analog to digital
mapping, FIR filter
INTRODUCTION:
Filters play a very important role in signal processing. In this paper
the IIR digital filter is discussed which is very essential in Digital
Signal Processing (DSP).In DSP, there are two types of systems. The
first type of system performs signal filtering in time domain. They are
known as Digital filters. Another type of system provides signal
representation in frequency domain. They are known to as Spectrum
analyser. The term IIR comes from infinite impulse response
meaning that the impulse response of filter is of infinite duration
whereas the impulse response of a FIR (Finite Impulse Response)
filter is of finite duration.
IIR filter processes certain properties such as width of the pass-band,
width of the stop-band, maximum allowable ripple at pass-band and
maximum allowable ripple at stop-band. A preferred design of IIR
filter can be done with help of those properties. There are various
processes to design IIR Digital filter. Basically IIR digital filter is
designed from an analog filter. Then using analog to digital mapping
technique or frequency transformation an IIR Digital filter can be
designed suitably.
An analog filter generally constructed by resistors, capacitors and op
amps to produce the required filtering effect. Those filter circuits can
be widely used in reduction of noise, video signal enhancement,
graphic equalizers in hi-fi systems, and many other areas. Those
analog filters are actually designed as per specific requirement for
producing satisfying filtering output. Digital filters perform many
filtering works by replacing the analog filters. The digital filters have
many features for which we can replace the analog filters and use the
digital filters and the features are high accuracy and reliability, small
physical size and reduced sensitivity to component tolerances.
Analog filter can be designed by either active element or passive
element.
Design Of CHEBYCHEV 1 Filter :

MATLAB CODING :

%Normalised Frequency units w/pi [0 1] ripple in db


%passband edge (0.2/pi)

passband = 0.2*pi/pi;

%stopband edge (0.9/pi)

stopband = 0.3*pi/pi;

%Lowest amplitude tolerable in passband is 0.9 pass


ripple is
% (-ve) sign is because we are taking positive value
in db

passrip = -20*log10(0.9);

%value we wish to have maximum gain in stop band 10^-


3
stopatten = -20*log10(0.001);

%finding the order of filter

[Nc1,Wc1] =
cheb1ord(passband,stopband,passrip,stopatten);

%finding the filter coefficients

[Bc1,Ac1] = cheby1(Nc1,passrip,Wc1);

figure;freqz(Bc1,Ac1);title('IIR Filter magnitude


Response');ylabel('Gain in dB');
xlabel('Normalised frequency');
OUTPUT :
Design Of CHEBYCHEV 2 Filter:

Matlab Coding :

%Normalised Frequency units w/pi [0 1] ripple


in db
%passband edge (0.2/pi)

passband = 0.2*pi/pi;

%stopband edge (0.9/pi)


stopband = 0.3*pi/pi;

%Lowest amplitude tolerable in passband is 0.9


pass ripple is
% (-ve) sign is because we are taking positive
value in db
passrip = -20*log10(0.9);

%value we wish to have maximum gain in stop


band 10^-3
stopatten = -20*log10(0.001);

%finding the order of filter


[Nc1,Wc1] =
cheb1ord(passband,stopband,passrip,stopatten);

%finding the filter coefficients


[Bc1,Ac1] = cheby2(Nc1,passrip,Wc1);
figure;freqz(Bc1,Ac1);title('IIR Filter
magnitude Response');ylabel('Gain in dB');
xlabel('Normalised frequency');
OUTPUT:
Design Of Butterworth Filter :

MATLAB CODING :

%Normalised Frequency units w/pi [0 1] ripple


in db
passband = [0.4*pi 0.6*pi]/pi;

%stopband edge (0.2*Pi/pi)


stopband = [0.2*pi 0.8*pi]/pi;

%Lowest amplitude tolerable in passband is 0.95


pass ripple is
% (-ve) sign is because we are taking positive
value in db
passrip = -20*log10(0.95);

%value we wish to have maximum gain in stop


band 10^-3
stopatten = -20*log10(0.01);

%finding the order of filter


[Nc1,Wc1] =
buttord(passband,stopband,passrip,stopatten);

%finding the filter coefficients


[Bc1,Ac1] = butter(Nc1,passrip,stopatten,Wc1);
figure;freqz(Bc1,Ac1);title('IIR Filter
magnitude Response');ylabel('Gain in dB');
xlabel('Normalised frequency');
OUTPUT:
Digital Signal Processing Project Report

Department of Electrical& Electronic Eng.

This report has been submitted by


...... Of class
for the DSP Project using Matlab Software during the
year 2015.

Signature of sub-in-charge Signature of Head of the Dept.

Submitted for the project examination held on________.


Dr. M.G.R. EDUCATIONAL AND RESEARCH INSTITUTE
UNIVERSITY
Madhuravoyal , channai-600095
(Declared u/s 3 of the UGC Act 1956)

DIGITAL SIGNAL PROCESSING


(PROJECT)
Design Of IIR Filters

Dept. of Electrical & Electronics Engineering(EEE)

B. Tech. -3rd year/"A"sec / v Semester

SURAJ SINGH (131091101050)

SATISH KUMAR (131091101043)

ROSHAN KUMAR (131091101042)

ROHIT KUMAR (131091101041)

Common questions

Powered by AI

MATLAB is critical in the design and analysis of IIR filters as it provides a robust platform for implementing complex mathematical calculations required for filter design, such as determining filter coefficients through mapping techniques. It allows for precise numerical simulations and visualization of filter responses, enabling designers to test and refine their filters efficiently. MATLAB's graphical tools help illustrate concepts like frequency response curves, which are essential for understanding and optimizing filter performance . Furthermore, MATLAB's flexibility and extensive libraries enable the exploration of various design parameters and testing of different filter types, such as Butterworth, Chebyshev, and Bessel filters .

IIR filters have an infinite impulse response duration, meaning their output depends not only on the current and past input samples but also on past output samples. Conversely, FIR (Finite Impulse Response) filters have an impulse response duration that is finite, only relying on current and past input samples . Structurally, IIR filters often mimic analog filters using techniques like analog to digital mapping, whereas FIR filters are explicitly digital from inception, typically requiring more computational resources for similar performance characteristics .

Component tolerances significantly affect analog filter performance, leading to variations in filter characteristics such as cutoff frequency and ripple due to manufacturing inconsistencies in resistors and capacitors. These variations can degrade performance, especially in precision applications . Digital filters, in contrast, are immune to component tolerance issues as their parameters are defined by algorithms rather than physical components, ensuring consistent output across different units and over time . This advantage makes digital filters particularly appealing in high-precision and consumer electronics applications, where reliability and uniformity are critical . However, digital filters demand careful attention to numerical precision in their implementations to prevent quantization errors, a different but manageable concern compared to analog component issues .

In real-time systems, the choice between IIR and FIR filters involves several computational trade-offs. IIR filters generally require fewer coefficients to achieve a similar frequency response as FIR filters, leading to lower computational and memory demands . However, because IIR filters use feedback and recursion, they can introduce stability issues, particularly with high-order designs, which necessitate careful implementation and testing . In contrast, FIR filters are inherently stable and have linear phase properties, desirable for specific applications like digital communications, but require more computational resources due to their dependence solely on input samples, resulting in higher processing loads and increased latency . Deciding between these filters involves assessing system constraints like available processor power and latency requirements versus desired signal fidelity and stability .

In audio processing, digital filters allow for precise shaping of audio signals, providing enhanced noise reduction and equalization capabilities, which are critical for high-fidelity audio output. They manage these tasks without the component drift issues that analog filters face, thereby ensuring consistent performance over time . In telecommunications, digital filters enhance signal clarity and bandwidth efficiency, enabling more reliable data transmission and better handling of noise and interference. The flexibility to adjust filter parameters through software adaptations greatly benefits these fields, allowing rapid deployment of updates or changes to adapt to evolving signal requirements and user expectations . This adaptive capability significantly contributes to advances in these industries, offering performance that analog filters cannot easily match due to the need for hardware changes. .

Graphical representations in MATLAB, such as frequency response plots and bode diagrams, significantly enhance understanding during filter design by providing visual insight into critical characteristics like gain, phase, and stability of filters. These visuals allow designers to easily spot discrepancies or unexpected behavior in filter performance, facilitating quick adjustments to the design parameters . Moreover, such representations help in comparing different filter designs side-by-side, thereby assisting in selecting the most suitable filter for specific applications. The ability to visualize filter characteristics through MATLAB's versatile plotting tools fosters more intuitive understanding and effective communication of complex filter behaviors . This visualization is especially beneficial in educational settings, allowing students and engineers to correlate theoretical concepts with practical implementations seamlessly .

Chebyshev Type I filters exhibit ripple only in the passband while maintaining a monotonic response in the stopband, which allows for a steeper roll-off than Butterworth filters for the same filter order, but with passband ripple . In contrast, Chebyshev Type II filters (also known as inverse Chebyshev filters) feature ripple only in the stopband, not in the passband, which can result in less passband distortion at the cost of a less steep roll-off compared to Type I filters . These characteristics influence the choice between the two types based on the specific application requirements for passband flatness versus stopband attenuation .

Passband and stopband margins, defined by the allowable ripple and attenuation levels, respectively, are critical in shaping the design of an IIR filter. The passband margin determines how much variation in gain is permissible within the passband, impacting signal fidelity and filter order; a smaller ripple tolerance typically results in a higher filter order for more stringent signal preservation . Similarly, the stopband margin, characterized by desired attenuation, influences how effectively unwanted frequencies are suppressed, with stricter requirements leading to a more complex filter design. These margins demand careful balancing as they directly affect the computational load and response characteristics of the filter . Selecting appropriate margins involves trade-offs between performance, computational demands, and the filter's impact on the overall signal processing system .

The analog-to-digital mapping technique is pivotal in transitioning analog filter designs into digital IIR filters. It facilitates the conversion of continuous-time analog filter specifications into discrete-time IIR digital filters while aiming to preserve key characteristics like passband and stopband properties. This technique is crucial as it allows digital filters to inherit the advantageous properties of classical analog filters, such as Butterworth, Chebyshev, and Elliptic designs, which are renowned for their distinct frequency response characteristics . This process ensures that the advantages of digital implementations such as improved accuracy and reduced hardware requirements are achieved without forfeiting the desired frequency shaping attributes of the original analog designs .

Digital filters are often preferred over analog filters when high accuracy and reliability are required, particularly in environments where reduced physical size and sensitivity to component tolerances are advantageous. They are also chosen when flexibility in filter parameters, such as changing cutoff frequencies or filter types, is necessary post-manufacture, since digital filters can be adjusted through software without physical alterations . Additionally, digital filters replace analog ones in applications ranging from noise reduction to audio signal processing because of their ability to precisely model complex filter responses .

You might also like