Experiment 8: Sampling

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

Signals and Systems. Lecture 13 Wednesday 6 th December 2017 DR TANIA STATHAKI

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Sampling and Reconstruction of Analog Signals

Laboratory Assignment 5 Amplitude Modulation

Chapter-2 SAMPLING PROCESS

Digital Processing of Continuous-Time Signals

Digital Processing of

Problem Set 1 (Solutions are due Mon )

Module 3 : Sampling and Reconstruction Problem Set 3

Lecture 7 Frequency Modulation

Discrete-time Signals & Systems

Sampling and Signal Processing

University of Bahrain

Sampling, interpolation and decimation issues

Lecture Schedule: Week Date Lecture Title

Sampling and Pulse Trains

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

ME scope Application Note 01 The FFT, Leakage, and Windowing

ENGR 210 Lab 12: Sampling and Aliasing

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

ANALOGUE AND DIGITAL COMMUNICATION

QUESTION BANK. SUBJECT CODE / Name: EC2301 DIGITAL COMMUNICATION UNIT 2

System on a Chip. Prof. Dr. Michael Kraft

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

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

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

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling)

Principles of Baseband Digital Data Transmission

ELT COMMUNICATION THEORY

Communication Theory II

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

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

Final Exam Solutions June 7, 2004

NON-UNIFORM SIGNALING OVER BAND-LIMITED CHANNELS: A Multirate Signal Processing Approach. Omid Jahromi, ID:

Discrete-time Signals & Systems

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

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

Multirate Digital Signal Processing

German Jordanian University Department of Communication Engineering Digital Communication Systems Lab. CME 313-Lab

LAB #7: Digital Signal Processing

OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE. EEE 403 Digital Signal Processing 10 Periodic Sampling

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

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

SIGMA-DELTA CONVERTER

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

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

Nyquist's criterion. Spectrum of the original signal Xi(t) is defined by the Fourier transformation as follows :

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2015/16 Aula 3-29 de Setembro

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

Design IV. E232 Spring 07

DIGITAL SIGNAL PROCESSING. Chapter 1 Introduction to Discrete-Time Signals & Sampling

SAMPLING AND RECONSTRUCTING SIGNALS

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Fall Semester, Introduction to EECS 2

Recall. Sampling. Why discrete time? Why discrete time? Many signals are continuous-time signals Light Object wave CCD

Digital Signal Processing

Electrical & Computer Engineering Technology

Digital Signal Processing (Subject Code: 7EC2)

Linear Time-Invariant Systems

Analyzing A/D and D/A converters

EEE 309 Communication Theory

END-OF-YEAR EXAMINATIONS ELEC321 Communication Systems (D2) Tuesday, 22 November 2005, 9:20 a.m. Three hours plus 10 minutes reading time.

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

Figure 1: Block diagram of Digital signal processing

Intuitive Guide to Fourier Analysis. Charan Langton Victor Levin

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

6.02 Practice Problems: Modulation & Demodulation

SAMPLING THEORY. Representing continuous signals with discrete numbers

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Discrete Fourier Transform (DFT)

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

Discrete-Time Signal Processing (DTSP) v14

Signal Processing Summary

The Sampling Theorem:

zt ( ) = Ae find f(t)=re( zt ( )), g(t)= Im( zt ( )), and r(t), and θ ( t) if z(t)=r(t) e

EEE 309 Communication Theory

Digital Communication (650533) CH 3 Pulse Modulation

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

1. In the command window, type "help conv" and press [enter]. Read the information displayed.

Experiment 4 Sampling and Aliasing

PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture 11-2

BIOE 198MI Biomedical Data Analysis. Spring Semester Lab6: Signal processing and filter design

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Sampling and Pulse Code Modulation Chapter 6

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

ECEGR Lab #8: Introduction to Simulink

UNIT TEST I Digital Communication

Chapter 3 Data Transmission COSC 3213 Summer 2003

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

Columbia University. Principles of Communication Systems ELEN E3701. Spring Semester May Final Examination

Direct Digital Synthesis Primer

Introduction. Chapter Time-Varying Signals

MATLAB Assignment. The Fourier Series


Chapter 6 CONTINUOUS-TIME, IMPULSE-MODULATED, AND DISCRETE-TIME SIGNALS. 6.6 Sampling Theorem 6.7 Aliasing 6.8 Interrelations

Transcription:

Prepared By: 1

Experiment 8: Sampling Objective The objective of this Lab is to understand concepts and observe the effects of periodically sampling a continuous signal at different sampling rates, changing the sampling rate of a sampled signal, aliasing, and anti-aliasing filters. Introduction, A typical time-dependent signal, for example AC voltage, is continuous with respect to magnitude and time. Such signals are called analog signals. Using a normal (analog) oscilloscope we get an analog representation of such a signal. Today mainly digital equipment is used for electrical measurements. The original analog signal is converted to a digital signal. A digital signal is discrete with respect to the magnitude as well as to the time. Therefore, conversion of an analog to a digital signal means the value of the analog signal function F(t) is measured at discrete times Sampling In order to store, transmit or process analog signals using digital hardware, we must first convert them into discrete-time signals by sampling. The processed discrete-time signal is usually converted back to analog form by interpolation, resulting in a reconstructed analog signal xr(t). The sampler reads the values of the analog signal xa(t) at equally spaced sampling instants. The time interval Ts between adjacent samples is known as the sampling period (or sampling interval). The sampling rate, measured in samples per second, is fs =1/Ts. x[n]= xa(nts), n=, -1, 0, 1, 2,. Also it possible to reconstruct xa(t) from its samples: xa(t) = x[tfs]. Figure 4.1: Sampling and Reconstruction process 2

Sampling Theorem The uniform sampling theorem states that a bandlimited signal having no spectral components above fm hetez can be determined uniquely by values sampled at uniform intervals of : The upper limit on Ts can be expressed in terms of sampling rate, denoted fs=1/ts. The restriction, stated in term of the sampling rate, is known as the Nyquist criterion. The statement is: The sampling rate is also called Nyquist rate.the allow Nyquist criterion is a theoretically sufficient condition to allow an analog signal to be reconstructed completely from a set of a uniformly spaced discrete-time samples. Impulse Sampling Assume an analog waveform x(t),as shown in figure 4.2(a), with a Fourier transform, X(f) which is zero outside the interval ( fm < f < fm ),as shown in figure 4.2(b). The sampling of x(t) can be viewed as the product of x(t) with a periodic train of unit impulse function xδ(t), shown in figure 4.2(c) and defined as ( ) ( ) where is the sampling period and δ(t) is the unit impulse or Dirac delta function.let us choose, so that the Nyquist criterion is just satisfied. The sifting property of the impulse function states that ( ) ( ) ( ) ( ) Using this property, we can see that by ( ) the sampled version of x(t) shown in figure 4.2(e), is given 3

( ) ( ) ( ) ( ) ( ) ( ) ( ) Using the frequency convolution property of the Fourier transform we can transform the time-domain product ( ) ( ) to the frequency-domain convolution ( ) ( ), ( ) ( ) where ( ) is the Fourier transform of the impulse train ( ). Notice that the Fourier transform of an impulse train is another impulse train; the values of the periods of the two trains are reciprocally related to one another. Figure 4.2(c) and (d) illustrate the impulse train ( ) and its Fourier transform ( ), respectively. We can solve for the transform ( ) of the sampled waveform: ( ) ( ) ( ) ( )*[ ( )] ( ) ( ) 4

Figure 8.2: Sampling theorem using the frequency convolution property of the Fourier transform We therefore conclude that within the original bandwidth, the spectrum ( ) is, to within a constant factor (1/Ts), exactly the same as that of x(t) in addition, the spectrum repeats itself periodically in frequency every fs hertz. 5

Aliasing Aliasing in Frequency Domain If fs does not satisfy the Nyquist rate,, the different components of ( ) overlap and will not be able to recover x(t) exactly as shown in figure 8.3(b). This is referred to as aliasing in frequency domain. Figure 8.3: Spectra for various sampling rates. (a) Sampled spectrum (b) Sampled spectrum Sampling theory: x( t) : analoge signal let x ( nt ) x ( n) : discrete signal s s F : analoge frequency Hz f : discrete frequency Hz : analoge frequency rad/sec w : discrete frequency rad/sec T s : sampling period x ( n) x ( nt ) s s let the analoge signal x ( t ) cos(2 Ft ) sampling x ( nt ) cos(2 FnT ) x ( n) cos(2 fn ) s s s Didital frequency (discrete frequency )=analoge frequency x sampling period f FT s 6

Figure 1 shows a simple example.the solid line describes a 0.5Hz continuous-time sinusoidal signal and the dash-dot line describes a 1.5 Hz continuous time sinusoidal signal. When both signals are sampled at the rate of Fs =2 samples/sec, their samples coincide, as indicated by the circles. This means that x1[nts] is equal to x2[nts] and there is no way to distinguish the two signals apart from their sampled versions. This phenomenon is known as aliasing. Figure 1: Two sinusoidal signals are indistinguishable from their sampled versions ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 7

Practical Parts f0=1000;%freqyency of sin fs1=10000;%sampling Frequency Fs>2Fm fs2=1500;%sampling Frequency Fs<2Fm n=0:1:50; x=cos(2*pi*f0*n/fs1); x1=cos(2*pi*f0*n/fs2); figure (1) subplot(2,1,1) plot(n,x) subplot(2,1,2) hold on plot(n,x) stem(n,x,'r') plot(n,x1,'g') legend('original function','sampling With Fs>2Fm','Sampling With Fs<2Fm') 1 0.5 0-0.5-1 0 5 10 15 20 25 30 35 40 45 50 Original function Sampling With Fs>2Fm Sampling With Fs<2Fm 1 0.5 0-0.5-1 0 5 10 15 20 25 30 35 40 45 50 8

Do you now that the human voice bandwidth lay between 0-4.5K Hz, Try different Fs in the following code and see the effect of aliasing. % Record your voice for 5 seconds. fs=1000; recobj = audiorecorder(fs,16,1); disp('start speaking.') recordblocking(recobj, 5); disp('end of Recording.'); % Play back the recording. play(recobj); % Store data in double-precision array. myrecording = getaudiodata(recobj); % Plot the waveform. plot(myrecording) 9

Homework The signal ( ) ( ) can be sampled at the rate to yield ( ) ( ) Aliasing will be observed for various a) Let =10 khz and =1 khz. plot x[n] using stem.m. b) Use subplot to plot x(t) for =300 Hz, 700 Hz, 1100 Hz and 1500 Hz. and =10 khz try using for loop Comment on the result figure in (b): c) Use subplot to plot x[n] for =10300 Hz, 10700 Hz, 11100 Hz and 11500 Hz.. Comment on the result figure in (c): (1) The period: (2) Aliasing 11

Question 2: Consider an analog signal x(t) consisting of three sinusoids x(t)= cos(2πt)+cos(8πt)+cos(12πt) Using Matlab, (a) Show that if this signal is sampled at a rate of Fs = 5 Hz, it will be aliased with the following signal, in the sense that their sample values will be the same: xa(t)= 3cos(2πt) Part 2: Aliasing in Frequency Domain: a) Construct the simulink model shown in Figure 8.6. b) use the attachment files of the spectrum analyzer and put it in you current diroctory c) Input a sine wave of Fo=5 Hz frequency from the signal generator1 and a sine wave of Fo=50 Hz frequency from the signal generator2. Choose a sampling time of 0.001 sec for the pulse generator with pulse duration of 1% of the sampling period. Choose the cut-off frequency of 120π for the Butterworth low-pass filter. d) Start the simulation for 10sec and notice all visualizers(included them in your report). e) Repeat steps 2 and 3 for a sine wave different sampling frequency Comment. Scope2 Scope3 butter Pulse Generator Product Analog Filter Design Scope4 Mux Scope1 Signal Generator1 Add Scope1 Signal Generator2 Spectrum Analyzer1 Figure 8.6: Simulink model to implement aliasing in frequency domain 11

Why does a wheel seem to move backwards as it speeds up? Try to answer in the light of aliasing theory 12