Figure 1: Block diagram of Digital signal processing

Similar documents
Sampling and Reconstruction of Analog Signals

Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

Electrical & Computer Engineering Technology

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Signal Processing. Introduction

Lecture Schedule: Week Date Lecture Title

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

In The Name of Almighty. Lec. 2: Sampling

Lab 4 Fourier Series and the Gibbs Phenomenon

Discrete-Time Signal Processing (DTSP) v14

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Faculty of Engineering Electrical Engineering Department Communication Engineering I Lab (EELE 3170) Eng. Adam M. Hammad

Pulse Code Modulation

Fourier Series and Gibbs Phenomenon

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

ECEGR Lab #8: Introduction to Simulink

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Sampling and aliasing Amplitude modulation

L A B 3 : G E N E R A T I N G S I N U S O I D S

SAMPLING AND RECONSTRUCTING SIGNALS

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Basic Signals and Systems

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Laboratory Assignment 1 Sampling Phenomena

SAMPLING THEORY. Representing continuous signals with discrete numbers

Contents. Introduction 1 1 Suggested Reading 2 2 Equipment and Software Tools 2 3 Experiment 2

Analog-Digital Interface

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

DIGITAL COMMUNICATION. In this experiment you will integrate blocks representing communication system

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

Design IV. E232 Spring 07

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Experiment 8: Sampling

Filter Banks I. Prof. Dr. Gerald Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany. Fraunhofer IDMT

Signal Processing. Naureen Ghani. December 9, 2017

Understanding Digital Signal Processing

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing

Electronics A/D and D/A converters

Theoretical 1 Bit A/D Converter

Digital Processing of Continuous-Time Signals

Laboration Exercises in Digital Signal Processing

Lecture 7 Frequency Modulation

DSP First. Laboratory Exercise #2. Introduction to Complex Exponentials

EE482: Digital Signal Processing Applications

Digital Processing of

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Mel Spectrum Analysis of Speech Recognition using Single Microphone

Signal Processing Toolbox

EE 351M Digital Signal Processing

The Sampling Theorem:

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

FFT Analyzer. Gianfranco Miele, Ph.D

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class

Final Exam Solutions June 14, 2006

Digital to Analog Conversion. Data Acquisition

ece 429/529 digital signal processing robin n. strickland ece dept, university of arizona ECE 429/529 RNS

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

TE 302 DISCRETE SIGNALS AND SYSTEMS. Chapter 1: INTRODUCTION

A/D Converter An electronic circuit that transforms an analog signal into a digital form that can be used by a computer or other digital circuits.

EE 311 February 13 and 15, 2019 Lecture 10


Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Laboratory Assignment 4. Fourier Sound Synthesis

EGR 111 Audio Processing

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

Lab S-5: DLTI GUI and Nulling Filters. Please read through the information below prior to attending your lab.

Fundamentals of Digital Audio *

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

Basic Concepts in Data Transmission

Signal Characteristics

Audio Signal Compression using DCT and LPC Techniques

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

ELEC350 Assignment 5

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

AC : FIR FILTERS FOR TECHNOLOGISTS, SCIENTISTS, AND OTHER NON-PH.D.S

MAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015.

EECE 323 Fundamentals of Digital Signal Processing. Spring Section A. Practical Homework MATLAB Application on Aliasing and Antialiasing

ENGR 210 Lab 12: Sampling and Aliasing

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Topic. Spectrogram Chromagram Cesptrogram. Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Limitations of Sum-of-Sinusoid Signals

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

Laboratory Assignment 5 Amplitude Modulation

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation

Lab 6: Sampling, Convolution, and FIR Filtering

Voice Transmission --Basic Concepts--

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design

TRANSFORMS / WAVELETS

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

Transcription:

Experiment 3. Digital Process of Continuous Time Signal. Introduction Discrete time signal processing algorithms are being used to process naturally occurring analog signals (like speech, music and images). Before any analog signals can be processed digital, they need to be first converted to the discrete time signal by taking samples of the signal in the time domain. The discrete time signal will then have to be digitized i.e. quantized the magnitude of each sample. For processing by digital system the discrete time signal are represented in digital form with each discrete time sample represented by binary number. Therefore we need the analog-to-digital and digital-toanalog converter to convert the continuous time signal into discrete-time digital form and vice versa. Since the analog-to-digital conversion usually takes finite amount of time it is necessary to ensure that analog signal remain constant in amplitude until the conversion complete in order to minimize the error in its representation. This is accomplished by a device called sample-and-hold (S/H) circuit which has dual purposes. It not only samples the input continuous signal at periodic intervals but also holds the analog sampled value constant at its output for sufficient time to permit accurate conversion by A/D converter. The output of this device a somewhat like a stairs case function. It is necessary to smooth the D/A converter output by means of an analog reconstruction (smoothing) filter. In most cases, the continuous time signal to be processed usually has a larger bandwidth when compared to the sampling rate of the sample and hold. To prevent a detrimental effect called aliasing an analog anti-aliasing filter is often placed before the S/H circuit. Figure : Block diagram of Digital signal processing

Figure: Continuous to digital signal conversion Experiment Objective Introduction to the concept of continuous time signal conversion to digital signal ie Sampling theorem Reconstruction using ideal lowpass filter and introduction to the aliasing Procedure Section -Aliasing due to undersampling Open new M-file and write this command or mark, copy and paste into the editor:- % Program Exp3 % Addition of cosine sequences and aliasing % fs = input('aliasing\ntype in freq of sampling in Hertz = '); f = input('type in freq of first cosine sequence in Hertz = '); f = input('type in freq of second cosine sequence in Hertz = '); %f3 = input('type in freq of third cosine sequence in Hertz = '); K = input('type in the first gain constant = '); K = input('type in the second gain constant = '); %K3 = input('type in the third gain constant = '); N = input ('Type in length of sequence = '); n = :N; %x = K*exp(c*n);%Generate the sequence xa=k*cos(*pi*(n)*f/fs); xa=k*cos(*pi*(n)*f/fs); xa3=xa+xa; dt=/fs; subplot(3,,); stem(n,xa);%plot the first cosine signal

xlabel('time index n');ylabel('amplitude'); title('cosine Signal'); % pause; % Calling the ploting of the magnitude spectrum function subplot(3,,); fplot(xa,dt); subplot(3,,3); stem(n,xa);%plot the first cosine signal subplot(3,,4); fplot(xa,dt); subplot(3,,5); stem(n,xa3);%plot the first cosine signal ubplot(3,,3); subplot(3,,6); fplot(xa3,dt); Make sure fplot.m is present in the Matlab current directory. Run the program with the following input:- and copy the figure.

Amplitude Cosine Signal 6 4 - - 3 4 5 6 Time index n - - 3 4 5 6 4 - -4 3 4 5 6.5.5.5 3 3.5 4 6 4.5.5.5 3 3.5 4 6 4.5.5.5 3 3.5 4 Now, let s choose a different sampling frequency fs=3 keeping the rest of the input the same as before:- Run the program again

Amplitude and copy the figure Cosine Signal 6 4 - - 3 4 5 6 Time index n - - 3 4 5 6 4 - -4 3 4 5 6..4.6.8...4.6 6 4..4.6.8...4.6 5 5..4.6.8...4.6

Section : Aliasing on the audio signal.. Open new M-file and write this code fs = 8; % set the sampling rate T = /fs; % sample interval tfinal = 4; % length of time k = :tfinal/t; % index vector f = 44; % signal is at 44 Hz sig =.*cos(*pi*f*k*t); % generate samples of the sinusoidal signal sound(sig,fs); % Play the signal (at 8 samples/sec) fplot(sig,t);. Run the program and copy the figure. 3. Try to change the amplitude from. to 4. Run the program 5. Listen to the sound obtained and copy the figure 6. Compare sound of both amplitude and explain Section -Aliasing due to undersampling Exercise. Compare and explain the spectrum of signals when the sampling frequencies were 8Hz and 3Hz.. What will be the highest frequency of the information signal if the sampling frequency is 8Hz. Verify your answer by running the program in section with appropriate inputs. Section - Aliasing on audio signal.. What will be the optimum sampling frequency in order for you to hear the same tone as per program in section. Verify your answer by modifying the program and listening to the output signal through the speaker.. Determine whether aliasing has occur for the following combinations of sampling and signal frequencies. Listen and look at the plot of the spectrum for each case. Submit the spectrum of the signal obtained for each case. Sampling Frequency(Hz) Information Signal Frequency(Hz) 6 3 4 5 4 5 5

Amplitude Section -Aliasing due to undersampling With sampling frequency = 3Hz. Result Cosine Signal 6 4 - - 3 4 5 6 Time index n - - 3 4 5 6 4 - -4 3 4 5 6..4.6.8...4.6 6 4..4.6.8...4.6 5 5..4.6.8...4.6 However with fs=8 (no Aliasing);

Amplitude Cosine Signal 6 4 - - 3 4 5 6 Time index n - - 3 4 5 6 4 - -4 3 4 5 6.5.5.5 3 3.5 4 6 4.5.5.5 3 3.5 4 6 4.5.5.5 3 3.5 4 Section : Aliasing on the audio With amplitude. Sound: Slow Sound

35 3 5 5 5.5.5.5 3 3.5 4 With amplitude Sound: Louder (than. amplitude)

3.5 x 4 3.5.5.5.5.5.5 3 3.5 4