Assignment 5 Digits
Assignment 5 Digits
Abstract- Modern digital systems such as communication, permitted, whereas signals with frequencies lower than that
video, and audio processing often encounter interference, cut-off frequency are attenuated in high pass filter giving the
distortion, and real-time flexibility challenges. Digital filters higher signals and lower noise. Some selected audio signals
are essential for separating and restoring such signals. For were used to observe the response, and the output of the filters
instance, audio recorded with low-quality equipment can be was plotted and played. [2]
filtered for improved clarity. Infinite Impulse Response (IIR) The goals of this research are to improve the performance of
filters, widely used in Digital Signal Processing (DSP), are digital filters. To achieve this goal, the various parameters of
effective for designing low-pass, high-pass, bandpass, and digital filters must be optimized. Signal processing and noise
band-stop filters. DSP emerged in the 1970s with basic signal processing, generating a simulated signal
contributions from Atal and Schroeder at Bell Labs, leading LabVIEW, sampling frequency, Fourier Transform in
to real-time digital filtering techniques. This paper focuses on LabVIEW, filters with poles and zeros, z-transform unity
designing an IIR filter using pole-zero placement. LabVIEW, circle pole zero plot, bode-plot, and calibration were used to
z-plane, and z-transform computations were used, yielding optimize the result and determine the best output. IIR filters
results consistent with Bode plot analysis. The z-transform, have an advantage over FIR filters in that they require fewer
similar to the Fourier transform, enables efficient computation coefficients to perform similar filtering operations, work
of a system’s frequency response from its coefficients. faster, and take up less memory space. The rest of the paper is
organized as follows. Section II describes the Literature
I. INTRODUCTION Review with a block diagram; circuit components with detail
description are presented in Section III. Additionally,
Signal processing is the most important aspect of any hardware implementation of the proposed model is
communication system. Signal processing is required to avoid demonstrated in section IV which are results. Finally, Section
unwanted signals. Information can be processed using analog V concludes the paper. [1]
and digital signal processing. When compared to analog
signal processing, digital signal processing provides more II. II. LITERATURE REVIEW
flexibility and better accuracy control. To process the signal,
filters are used. Infinite impulse response (IIR) filters are Digital filters are fundamental in signal processing
characterized by the fact that they use delayed versions of the applications, serving to isolate, enhance, or suppress specific
input signal and fed-back and delayed versions of the output components of a signal. The two primary types of digital
signal to filter the input to the output. Digital filters are critical filters are Finite Impulse Response (FIR) and Infinite Impulse
for processing raw signals. The system that performs Response (IIR) filters. While both have their merits, IIR filters
mathematical operations on a sampled, discrete-time signal to are typically preferred for applications requiring
decrease or increase a specific feature of that signal is referred computational efficiency and minimal memory usage due to
to as a digital signal. To observe the performance of a digital their recursive nature and ability to achieve a desired
filter, various statistical methods can be used. [1] frequency response with fewer coefficients [1]
Several observation methods may be used in designs, and they
are frequently the source of a filter detail. To evaluate the
A. FIR vs. IIR: A Comparative Perspective
performance of a high-pass filter as the signals with
frequencies higher than a specific cut-off frequency are
FIR filters are known for their inherent stability and linear transformation is performed, however, the finite word-length
phase response, making them suitable for applications where side-effect may be the only reason of filter instability. [6]
phase preservation is critical. However, FIR filters often
require a higher order (and thus more computational
C. Band-pass filter (HPF)
resources) to achieve the same frequency selectivity as IIR
filters. In contrast, IIR filters provide a more efficient design A bandpass filter (BPF) is an electrical filter that allows
at the cost of a non-linear phase and potential instability if not signals within a specified range of frequencies to pass while
carefully designed \[2]. In the context of real-time systems attenuating signals outside that range. The filter design
such as those implemented in LabVIEW, IIR filters offer a determines the degree of attenuation for each frequency.
significant performance advantage due to their speed and
lower memory demands. A linear time-invariant system is commonly used to model a
According to Smith (2018), the bilinear transformation bandpass filter. In the world of audio engineering, it is known
method used in IIR filter design ensures filter stability but for isolating specific frequency bands, such as those used for
may introduce frequency warping, a trade-off acceptable for instruments or vocals. Bandpass filters can be used in wireless
many high-pass filter applications [3]. communication systems to select desired frequency channels
or in audio processing to enhance or suppress certain tones.
They are typically created by combining a high-pass filter
with a low-pass filter, allowing only the frequencies in
between to pass through.
[2]
E. Z-transform
In summary, while the theory behind IIR filters is well- Step 1: Determine the position of the sample frequency and
established, practical implementation and validation— maximum frequency Step 2: Determine the pole placement as
especially in LabVIEW—are underexplored. By critically signal frequency Step 3: Determine the zero placement as
analyzing existing methods and addressing identified gaps, noise frequency
this study not only confirms the theoretical benefits of IIR
filters but also demonstrates their practical viability in real- C. Appropriate Use of Z-transform coefficients Procedure
time systems.
[8] Step 3: Determine the coefficients
((𝑧−𝑧𝑒𝑟𝑜1)(𝑧−𝑧𝑒𝑟𝑜2)(𝑧−𝑧𝑒𝑟𝑜3)(𝑧−𝑧𝑒𝑟𝑜4)
H(z) =
(z−pole1)(z−pole2))
= ((𝑧−(0.962+𝑗0.273))(𝑧−(0.962−𝑗0.273))(𝑧−(−0.309+ 𝑗0.951))(𝑧−(−0.309−𝑗0.951))
((z−(0.1758 + j0.6858))(z−(0.1758 − j0.6858)))
CALCULATED ATTENUATED
b₀ = 1
Figure 7: IIR Filter Diagram
b₁ = -1.3 a1 = 1 a1 = 1
Step 1: Determine the coordinates of the poles b₂ = 0.8 a2 = -0.7 a2 = -0.6
𝑌/2𝜋 = 𝑋/500
𝑌/2𝜋 = 105/500
b3 =-1.3 a3 = 1.1 a3 = 0.6
Y=1.3195 b4 = 1 a4 = -0.35 a4 = -0.21
Pole1 = 0.1758 + j0.6858 The following MATLAB code was implemented to visualize
Pole2 = 0.1758 - j0.6858 the Z-Plane diagram with the pole-zero placement and to
analyse the frequency response of the design IIR filter:
Step 2: Determine the coordinates of the zeroes
𝑌/2𝜋 = 𝑋/500 (𝑧²−1.258𝑧+0.998)
𝑌/2𝜋 = 22/500 (z²−1.128z+0.5) × (z⁻²)/(z⁻²)
Y=0.2764
(1−1.258𝑧⁻¹+0.998𝑧⁻²)
Opp = Sin(θ) × 1 =
= Sin(0.2764) × 1 (1−1.128z⁻¹+0.5z⁻²)
= 0.273
(𝑏₀ + 𝑏₁𝑧⁻¹ +𝑏₂𝑧⁻²)
H(z) =
Adj = Cos(θ) × 1 (1 + a₁z⁻¹ +a₂z⁻²)
= Cos(0.2764) × 1
=0.962 (1−1.258𝑧 −1 +0.998𝑧 −2 )
=
zero1= 0.962+j0.273 (1−1.128z⁻¹+0.5z⁻²)
Zero2= 0.962-j0.273 D. MATLAB Implementation for Z-Plane Visualization and
Frequency Analysis
𝑌/2𝜋 = 𝑋/500
The following MATLAB code was implemented to visualize
𝑌/2𝜋 = 150/500
the Z-Plane diagram with the pole-zero placement and to
Y=1.885
analyse the frequency response of the design IIR filter:
Opp = Sin(θ) × 1
= Sin(1.885) × 1
= 0.951
Adj = Cos(θ) × 1
= Cos(1.885) × 1
= -0.309
F. Frequency Response
The implementation of the filter design resulted in a band-pass The LabVIEW simulation included input signals with and
IIR filter with the following characteristics: without noise, clearly demonstrating the IIR filter's ability to
1. Transfer Function Coefficients: attenuate unwanted components. Spectral plots and time-
o Numerator: b₀ = 1, b₁ = -1.258, b₂ = 0.998 domain graphs show clean output signals post-filtering.
o Denominator: a₀ = 1, a₁ = -1.128, a₂ = 0.5
2. Z-Plane Analysis: A block diagram using z-transform coefficients was used to
As shown in Fig. 8, the filter has poles at 0.564 ± j0.419 simulate a High-Pass IIR filter. The system processed two
with radius 0.707 and zeros at 0.629 ± j0.778 with radius input signals: one noisy and one filtered, showing significant
1.0. The poles are inside the unit circle, confirming noise reduction. Signal and noise spectrum were visualized
stability. separately. Meters indicated input and output levels, with a
3. Frequency Response: waveform graph displaying the filter's output. The Bode Plot
The frequency response in Fig. 9 demonstrates the high- confirmed the filter's performance, aligning with its pole-zero
pass characteristics, with attenuation below 50 Hz and configuration.
pass-through above 75 Hz.
4. Bode Plot Analysis: Parameters used in analysis include:
The Bode plots in Fig. 10 confirm the filter's performance
at the specified signal frequency (50 Hz) and noise
frequency (75 Hz). The -3 dB cutoff frequency occurs • Nr = 10
between these points, showing effective separation of • N = 0.10
signal and noise components. • 2π10=0.628\frac{2\pi}{10} = 0.628 radians
LabVIEW Circuit Diagram Bode plots, derived from the transfer function coefficients,
confirm that the filter accurately attenuates frequencies below
the cutoff while preserving higher frequencies. These plots
align closely with LabVIEW simulation results, validating
both the design methodology and z-transform application.
The poles and zeros exhibit conjugate symmetry, a property The aim of this project was to design an IIR filter. The
common in real-coefficient filters. This symmetry ensures property of infinite impulse response (IIR) applies to many
that the filter’s impulse response remains real and consistent, linear time-invariant systems that are distinguished by an
further validating the mathematical design and numerical impulse response that does not become exactly zero past a
implementation. certain point but instead continues continuously. The 24
videos were given to help in designing the IIR filter. Along
Table 1: Key Parameters and Outcomes
with the videos, data of values such as the Noise Ratio (Nr =
10), Signal Input (-5 to 5 V), Noise Input (-5 to 5 V), Signal
Frequency (50 Hz), Noise Frequency (75 Hz), and Sample
Parameter Value
Frequency (500 Hz) were provided. The LabVIEW software,
Sampling Frequency 500 Hz as well as z-plane and z-transform calculations, were used to
Signal Frequency 105 Hz solve this problem. The LabVIEW results matched the z-
transform calculations and the Bode plot graph,
Noise Frequency 22 Hz and 150 Hz demonstrating that the system is fully functional. The z-
Pole Coordinates 0.1758 ± j0.6848 transform approach was selected because it is comparable to
0.962 ± j0.273 the Fourier transform and its coefficients can be used to
Zero Coordinates quickly compute the frequency response of a discrete time
-0.309 ± j0.951
system. The z-transform assists in determining a digital
system's frequency magnitude and phase responses, as well as
Advantages of IIR Filter: its stability. An IIR filter is important and preferable because
it has a stable design, an IIR filter has fewer side lobes in the
• Requires fewer coefficients stop band than a FIR filter with the same number of
• Faster execution parameters, implementation of an IIR filter involves fewer
• Lower memory usage parameters, and it requires less memory. They outperform
• Easy to design other filters for narrow transition bands, even though
• Easy to implement developing a new IIR filter takes more time and money,
• Has fewer parameters depending on the application. In digital applications, they also
give a better approximation for traditionally analog systems
• Lesser number of side lobes in the stopband than FIR
than competing filters.
Disadvantages of IIR Filter: V. VI. Ethical Considerations
• Infinite impulse response The design and implementation of the IIR filter in this project
• Complex optimization process compared to FIR adhered to ethical standards in engineering practice. All
• May be unstable if poorly designed simulations and analyses were conducted using original code
• Less intuitive design process and tools, with proper citation of academic resources and
• Lower computational complexity (which can be both an methods. No proprietary software was reverse-engineered,
advantage and disadvantage) and no third-party intellectual property was misused.
• Less memory requirement The team ensured transparency in data presentation, accuracy
in calculations, and honesty in reporting results. The project
serves as a learning exercise and is not intended for direct
Applications for IIR Filter:
commercial use or to replace certified signal processing
systems without further validation.
• Telecommunication
Furthermore, potential applications in biomedical and [ M. University, "Music.McGill.ca," McGill, 2004-2024.
communication systems highlight the importance of ethical 1 [Online]. Available:
responsibility, especially regarding safety, data privacy, and 2 https://www.music.mcgill.ca/~gary/618/week1/node8.ht
reliability. It’s important to note that the filter’s poles had to ] ml. [Accessed 7 May 2025].
be attenuated to maintain stability, and such designs are
[ A. o. D. I. F. w. LabVIEW. [Online]. Available:
generally unsuitable for industrial applications without
extensive validation. In future use cases, careful consideration 1 https://scispace.com/pdf/analysis-of-digital-iir-filter-
should be given to user safety, data privacy, and system 3 with-labview-3wswfvw6ns.pdf.
reliability to avoid misuse or harm. ]
VI. REFERENCES