digital signal processing assignment
CALEDONIAN COLLEGE OF ENGINEERING,
SULTANATE OF OMAN
Course Work Report
Submitted by
Aida Mansoor Juma Alriyami
120198
BENG TELECOMMUNICATION
For the module
MHH621519 Digital Signal Processing
Under the supervision of
Dr Krishna Priya
Department of Electrical and Computer Engineering
2017-2018
SEMESTER B
Table of Contents
|
Subject |
Page Number |
|
Abstract |
3 |
|
Introduction |
4 |
|
Digital signal processing |
4 |
|
Background study |
5 - 8 |
|
Processes of Analog to digital conversion |
5 - 7 |
|
The advantage of Digital processing compared to Analog processing |
7 |
|
Design a filter designed using pole-zero placement method |
8-9 |
|
Analog to Digital Transformation of filters using Bilinear Transform |
9-10 |
|
Design Concept |
11 - 15 |
|
Result Analysis |
16 |
|
Conclusion |
17 |
|
Reference |
18 |
|
Turnitin |
19 |
ABSTRACT
Digital signal processing (DSP) is well known is one of the most useful and important applications that humans are daily use and represent the way of their life in different fields in their life such as telecommunication applications, Process control and monitoring, biomedical field and other fields. This coursework is aims to implement digital systems has the facility to rejecting and reducing a system noise in a mechanical workshop in Oman and ensure that the system is work in a proper way. In this report different details about the digital system is describes and discusses. Firstly, a brief introduction about the digital signal processing and the way of designing the system and the methods follows to approach. Moving to the second point, the background study which contain some main operations that used to implement the system such as process of analog to digital conversion process, implementation steps required in the system process with the effects of converting the waveform, the pros of the digital signal processing compare to the analog signal processing and how it is more beneficial, a filter design using pole-zero placement method and a filters transformation of analog to digital filter using bilinear method. Thirdly, the specification of the design and how it is implement and the evaluation of the different equation of transfer function. Also, the representation of the pole-zero equations and diagrams. Moreover, using the MATLAB software to test the design and show the graphical results. Adding to, analysis the results outcome from the system. Ending finally with a simple conclusion and a proper supporting references of Harvard CCE style attached with turnitin report.
Key words:
DSP, Convertersion, MATLAB, Transfer function, Digital, Analog.
INTRODUCTION
Digital signal processing (DSP) is a daily application use by the people to developing the world. It is define as a process of modifying and analyzing the signal to increase and improve the performance or the efficiency of the signal. It is help to convert the original signal in to a higher quality signal. DSP used in different ways as compress, filtering the analog signals and identify the errors in the transit. It is work in a simple way where it is convert the analog signals into a digital signals then a type of algorithms signal processing techniques is applying. In the real world there are different kinds of signals such as video, voice, audio and others so, by converting those analog signals and execute them into a digital signals (0’s and 1’s) it makes the transmit more faster. Moreover, DSP help in reduce and decrease the distortion and noise.
Digital signal processing (DSP) has many advantages. Starting with the high accuracy where it has superior control of accuracy. Secondly, it is Cheaper means low coast because of the realization of it. Moving to the configuration flexibility where it is easy to reconfigured just by changing the program. Moreover, stability mean it is less effect to the physical and environmental changes. Finally, the Data Storage are easy.
Digital signal processing (DSP) applicable in different area or fields for example telecommunication and radio broadcasting, consumer electronics, image processing, instrumentation and control, military applications, speech processing, seismology and medicine. Where in the
BACKGROUND STUDY
In the real world there is a different types of analog signals such as videos, data, voice…etc that the people deal with it daily. On the other hand there is the machines and computers which deal with digital signals to operate, process and control so, the machines to work the analog signal should be convert into discrete or digital form. This operation is called analog to digital convertersion.
Figure1: Analog - digital converter
Processes of Analog to digital conversion
An analog-to-digital converter (ADC) is a device or a system convert the analog signals into digital signals. Where, the computers before handle the data through the communication line it should be in a digital form to be read. As an example for the converting is the sound which picked up by the microphone that converted into a digital signal or other example is the light which entering the digital camera. The analog to digital conversion done in main stages as the following:
1. Sampling
Sampling is the first step in the analog-to-digital conversion. It is defined as reduction or converting from an analog or continues form to a digital discrete form at regular discrete moments of a time. Where sampling is the basic step in analog-to-digital conversion. Where The sampling frequency can be calculated from , where fs; Sampling Frequency , Ts; Sampling Time. In addition, sampling is used to digitalize analog values or data mainly and make it suitable or readable for machines. Sampling process has many advantages as an example data compression it is use in machines to save the memory space, less time consumption and low coast.
Figure2: Signal sample at intervals of time
For performing a proper sampling operation, sampling frequency (fs) must be (twice) the value of (fm) maximum frequency. Mathematically, its , where fs; Sampling Frequency, fm; Maximum Frequency. It’s known as Nyquist Rate equation.
Figure3: proper sampling Diagram
Under sampling
, mean aliasing error where the low frequency components and high frequency components overtop.
Figure4: Under sampling Diagram
2. Quantizing
The quantizing is defined as the process of mapping or rounding off the values to fixed quantization levels. As an example for quantization process is rounding off and truncation. This step it represent the data compression and it has large positive effect on minimizing complexity of big input values. The quantize is the device that do this operation. Quantization effect on peak-to-peak of the input sample values and output is assigned a discrete value.
Figure5: Quantization
3. Encoding
Encoding process is the last step in the analog-to-digital conversion. It is defined as the operation of assigning or giving the input coded data values to multiple quantization levels. This type of operation are using a unique encoding systems is related to give each data a different level compare to the other data forms. It has different pros like storing data and reducing the requirement of the memory.
Figure6: Encoding process
The advantage of Digital processing compared to Analog processing
Digital signals processing has many advantage compared to the analog processing signals as following. Firstly, the main pros of digital signals is the precise of the level signal is not vital this is mean are fairly immune to the imperfections of real electronic systems which tend to spoil analog signals.(wikipedia,nd) Secondly, digital signals can transfer the information with higher noise immunity compare to the analog signals where it is effected by whole level of the noise. Moreover, the cost of the digital circuit components are less cost and cheap. In addition the bandwidth which used is less than the analog signals which give more ability to carry more information and also transmit it to long distance. Also, it is use a high rate transmission with wider broadband width and it is much secure. As well known, it is translate or convert the humans video and audio signals into machine languages. It is allows multidirectional transmission simultaneously. Moreover, many mathematics algorithms equation used in digital processing over the analog processing, which gives the input data given variety of characteristics and options which cannot given in analog processing. Also, digital signal cannot be corrupted by the noise. Finally, in digital processing the signals are more flexible due to the programming where it is easily to programed according to the given requirements, which is difficult to done by the analog signal processing.
Filter with specified bandwidths designed using pole-zero placement method of filter design
pole-zero placement is a method used to design fractional order of the digital filters which is directly in the discrete domain through subsequent parameter optimization and pole-zero placement. Moreover, the zeros and poles are placed on the real axis of the circle to guarantee stability and maximize performance.
Whenever, the bandwidth is specified in the pole-zero placement method of filter design the zeros will be on position of the unit circle and the poles will be at the same angle. The poles are move closer or toward the zeros.
In this case as an example a steps of designed a filter with specified bandwidths using pole-zero placement method will be shown.
a) Parameters given:
Fm = 500 Hz
Noise BW = 5 Hz
b) Design steps:
1. First, determine the analog filter cut-off frequency using nyquist rate formula
FS ≥ 2 Fm
Where, as a solution for given example:
FS ≥ 2 Fm
≥ 1000 Hz
*note: the value of chosen Fs should be four times the value of Fm
Fs = 4 × Fm
= 2000 Hz
2. Draw the Pole – zero map of the system (diagram) which show the location of the zero where it will placed on the edge or the boundary of the unit circle and the poles are moving toward or closely to the zeros and the distance that ( r ) moving is called radius. Moreover, the angle between is ( π/4 ). As the diagram below is show:
Fs/8
r
Fs=2000
Fs/2=1000
3. Moving to the next step is calculate the value of ( r ) radius depend in the parameters given. By using the below formula:
Where, Bw = 2 ( 1 – r )
4. Next, determine the transfer function by the bandwidth formula as given below:
Where, Hz= [ ]
*note: the calculator should be in radian mode to calculate cos()
5. Determine the difference equation by divide both numerator and denominator by Z2 and the a cross multiplication by both side of equation. Then, re-arrange the equation.
6. The finite difference equation of the filter is found by inverting the transfer function of H(z):
7. The last step is draw filter structure depend on the previous steps.
Analog to Digital Transformation of filters using Bilinear Transform Method
The bilinear transformation is one of the methods of converting analog into digital form. It is mathematical mapping of variables. It is also, mean converting the S plane to Z plane. This type of transforming happens by using classical filter design techniques, into their discrete equivalents. The bilinear transformation is a change of variables that is linear in both the numerator and denominator. Moreover, It is also can be used produce or create a piecewise constant magnitude response that approximates the magnitude response of an equivalent analog filter. It does not faithfully reproduce the analog filters phase response, however.
These steps are following for analog to digital transformation of filters using bilinear transform method: as an example:
a) Parameters given:
H(s)=
Frequency required, fd= 500HZ
*note: the value of fd equal to the value of fm
b) Design steps:
1. First, determine the analog filter cut-off frequency using nyquist rate formula
FS ≥ 2 Fm
Where, as a solution for given example:
FS ≥ 2 Fm
≥ 2 × 500 Hz
≥ 1000 Hz
*note: the value of chosen Fs should be four times the value of Fm
Fs = 4 × Fm
= 4 × 500
= 2000 Hz
2. calculate the equivalent analog filter cut-off frequency using pre-warping function:
pre-warping frequency is a technique used to produce a more faithful mapping and also to account for the nonlinearity. pre-warp frequency giving as:
=
= 2πfd
=
*note: the calculator should be in radian mode to calculate tan()
Where, as a solution for given example:
=
= = 1 rad/sec
3. Using analog frequency, find H(S) of the analog filter. Where the rule is and known that
So, substitute in given equation in the question.
Where, as the solution will be as following equation:
H(s)=
4. Next step, convert the analog filter to an equivalent digital filter by applying the bilinear z- transform. This transform is achieved by substitute each s in transform function by giving equation:
To simplify the equation multiply both of the numerator and denominator .
The final form of this step of given example after the whole mathematics substitutions will be as:
= 0.293 ×
5. The finite difference equation of the filter is found by inverting the transfer function of H(z):
Where,
Y(n)= 0.293 x(n) + 0.586 x(n-1) + 0.293 x(n-2) – 0.171 y(n-2)
6. The last step is draw filter structure depend on the previous steps.
Design Concept
To progress a proper solution for the company case a following steps should be following:
a) Selection of the sampling rate ( Fs )
Given:
Fm = 500 Hz ( limited frequency )
Known: FS ≥ 2 Fm (nyquist rate)
≥ 2 × 500 Hz
≥ 1000
Choose Fs 4times the Fm
Fs = 4 × Fm
= 4 × 500
= 2000 Hz
b)
(i) pole – zero diagram(s)
3Fs/44
150 Hz
r
120 Hz
150 Hz ( noise )
2
Fs/2=1000 Hz
Fs/4=500 Hz
Fs= 2000 Hz
120 Hz
r
To find the value of r :
Full circuit = 2π = 2000 Hz
So, 1Hz = 2π/2000
Given:
Noise Bw= 5 Hz
1 Hz = 2π/2000
5Hz = x
X= (2π/2000) × 5
= 10π/2000
= π/200
Where, Bw = 2 ( 1 – r )
( ½ ) × π/200 = 2 ( 1 – r ) × ( ½ )
π/400 = ( 1 – r )
r = 1 - π/400
r = 0.992
To know the angle:
· for 120 Hz ( noise )
120 Hz = (2π/2000) × 120
= 3π/25
· for 150 Hz
150 Hz = (2π/2000) × 150
= 3π/20
(ii) Transfer function
Hz= [ ] × [ ]
= [ ] × []
= [] × [ ]
= [ ] × []
= [ ]
= [ ]
Difference equation
Hz =
= [ ] ÷ (
= [ ]
= [ ]
= [ ]
]=
=
Re-arrange the equation
=
Inverse of z transform
=
Filter structure
a0 = 1
-a1 = 1.767
-a2 = - 0.984
b0 = 1
b1 = -3.64
b2 = 5.311
b3 = -3.64
b4 = 1
a0 =1
b0 =1
y(n)
X(n)
-a2 = - 0.984
-a1 = 1.767
b4 = 1
b3 = -3.64
b2 = 5.311
b1 = -3.64
z-1
z-1
z-1
z-1
z-1
z-1
MATLAB Design
num = [ 1 -3.641 5.313 -3.641 1 ]
den = [ 1 -1.767 0.984 0 0 ]
fvtool (num,den)
Result Analysis
After designing the system with the specifications given it was noticed many results as following mention. Where, the whole calculations were done properly. Started with found the transfer function equation and difference equation which used for the MATLAB simulation to get the output as denominator and numerator . where, the result was four zero’s and four poles -real and conjugate- in a details mean there was two original poles with their conjugates, and two zeros with their conjugates. Firstly, Selection of the sampling rate was done and then, the diagram of the pole-zero diagram drawn properly. At the frequency of 150Hz , where the zeros were located at the boundary or edge of the circuit of the Z-plane and the poles were moving toward or close to the zeros (edge of the circuit) where, the radius setting as (r= 0.992). With angle of (3π/20) started from the center of the circuit to the boundary. Moving to the second interference frequency 120Hz (noise frequency), where the zeros were located at the boundary or edge of the circuit of the Z-plane and the poles were in the center of the circuit. With angle of (3π/25) started from the centre of the circuit to the boundary . The transfer and difference equations were calculated properly and the inverse of the z transform were done successfully. The whole calculation done were used in the MATLAB program to show the graph as mention previously. The mathematical calculations are matches with the software design in MATLAB program.
Conclusion
As a conclusion, the whole digital system was implemented successfully as per the given details and specifications to achieve the purpose of eliminate or removing the unwanted noises at the frequencies of 150 Hz and 120 Hz. Where, the simulation was done using program software which is MATLAB to show the results or the output of the system operation to eliminate the unwanted noises. These types of digital systems it can be used in different scientific fields and industrial fields, as an example; in the huge factories it can be used as a heat measurement systems. Moreover, in the aircrafts used as a controlling systems. Adding to, loud speakers and monitoring the systems, and a lot of applications. In the near future the digital system as general are going to be defiantly a bright one, because everything now days are computerized and digitalized. It’s predicted to be used in more applications and electronic devices like integrated circuits.
Reference
1) Khan, 2005. Digital Signal Processing Fundamentals. [e-book] Ashfaq Da Vinci Engineering Press. Available from: http://ebookcentral.proquest.com/lib/caledonian-ebooks/reader.action?docID=3135815. [Accessed : 4th Dec 2017]
2) Miao, J.George, 2007. Signal Processing in Digital Communications. [ebook] Artech House. Available from: http://ebookcentral.proquest.com/lib/caledonian-ebooks/reader.action?docID=338745. [Accessed : 4th Dec 2017]
3) Tan, 2007. Digital Signal Processing. [e-book] Li Elsevier Science. Available from: http://ebookcentral.proquest.com/lib/caledonian-ebooks/reader.action?docID=311323. [Accessed : 4th Dec 2017]
4) Wikibooks, 2017. The Bilinear Transform. [Online]. Available from: https://en.wikibooks.org/wiki/Digital_Signal_Processing/Bilinear_Transform . [Accessed: 4th Dec 2017]
5) Wikipedia, nd. Analog To Digital Converter. [Online]. Available from: https://en.wikipedia.org/wiki/Analog-to-digital_converter7 . [Accessed: 5th Dec 2017]
6) Yaroslavsky, 2011. Digital Signal Processing in Experimental Research Volume 1. [e-book] Leonid Bentham Science Publishers. Available from: http://ebookcentral.proquest.com/lib/caledonian-ebooks/reader.action?docID=864334. [Accessed : 5th Dec 2017]
7) Figure 1: Analogplanet, nd. Analog - Digital Converter. [Online]. Available from: http://www.analogplanet.com/category/analog-digital-converter-reviews. [Accessed: 4th Dec 2017]
8) Figure 2: Nptel, nd. Signal Sample At Intervals Of Time. [Online]. Available from: http://nptel.ac.in/courses/117101055/group11/11b_1.htm. [Accessed: 4th Dec 2017]
9) Figure 5: quantization process in adc, 2004.[online].Available from: https://www.google.com/search?q=quantization+process+in+adc&biw=1366&bih=662&source=lnms&tbm=isch&sa=X&ved=0ahUKEwj21_KfgODQAhXFbZoKHZR1AtkQ_AUIBigB#imgrc=erTgW1n8hnpEaM%3A . [Accessed: 4th Dec 2017]
10) Figure 6: encoding process in adc,2004.[online].Available from: https://www.google.com/imgres?imgurl=https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Quanterr.png/300px-Quanterr.png&imgrefurl=https://en.wikipedia.org/wiki/Quantization_(signal_processing)&h=196&w=300&tbnid=kWk4oHp_Je33WM:&vet=1&tbnh=156&tbnw=240&docid=sDfgWlpbwA3LOM&usg=__clI7_j946K6_Kg8jhsuG5ZQQru0=&sa=X&ved=0ahUKEwj21_KfgODQAhXFbZoKHZR1AtkQ9QEIITAA . [Accessed: 5th Dec 2017]
Turnitin
19 | Page