Lakehead University. Department of Electrical Engineering

Similar documents
GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

EE 422G - Signals and Systems Laboratory

Experiments #6. Convolution and Linear Time Invariant Systems

EE 403: Digital Signal Processing

ESE531 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Signal Processing

Experiment # 4. Frequency Modulation

George Mason University ECE 201: Introduction to Signal Analysis

Experiment 2 Effects of Filtering

DSP First Lab 08: Frequency Response: Bandpass and Nulling Filters

ECE 5650/4650 Exam II November 20, 2018 Name:

DFT: Discrete Fourier Transform & Linear Signal Processing

EECS 452 Midterm Exam Winter 2012

Discrete Fourier Transform (DFT)

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

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

Project 2 - Speech Detection with FIR Filters

Electrical & Computer Engineering Technology

ELT Receiver Architectures and Signal Processing Fall Mandatory homework exercises

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

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

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2025 Fall 1999 Lab #7: Frequency Response & Bandpass Filters

System Identification and CDMA Communication

DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0

Laboratory Assignment 5 Amplitude Modulation

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

EE 3302 LAB 1 EQIUPMENT ORIENTATION

ECE 3500: Fundamentals of Signals and Systems (Fall 2014) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation

Lab S-3: Beamforming with Phasors. N r k. is the time shift applied to r k

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

Short-Time Fourier Transform and Its Inverse

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Laboratory Assignment 4. Fourier Sound Synthesis

DIGITAL SIGNAL PROCESSING LABORATORY

ECE 3500: Fundamentals of Signals and Systems (Fall 2015) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation

EEL 4350 Principles of Communication Project 2 Due Tuesday, February 10 at the Beginning of Class

6.02 Practice Problems: Modulation & Demodulation

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Integrators, differentiators, and simple filters

Project I: Phase Tracking and Baud Timing Correction Systems

Basic Signals and Systems

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

Lab 8. Signal Analysis Using Matlab Simulink

ECE 429 / 529 Digital Signal Processing

EELE 4310: Digital Signal Processing (DSP)

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

Jawaharlal Nehru Engineering College

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

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

Experiment 1.A. Working with Lab Equipment. ECEN 2270 Electronics Design Laboratory 1

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

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

Problems from the 3 rd edition

Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

Lab S-4: Convolution & FIR Filters. Please read through the information below prior to attending your lab.

ECE 5650/4650 MATLAB Project 1

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective

EC310 Security Exercise 20

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017

Chapter 3 Data Transmission

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

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

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

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

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

ECE 342 Fall 2017 Optoelectronic Link Project Lab 2: Active Bandpass Filters

STATION NUMBER: LAB SECTION: Filters. LAB 6: Filters ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

Lab 8: Frequency Response and Filtering

Matched filter. Contents. Derivation of the matched filter

George Mason University Signals and Systems I Spring 2016

MATLAB Assignment. The Fourier Series

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

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

Experiment 4 Detection of Antipodal Baseband Signals

ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

CS3291: Digital Signal Processing

Real Analog - Circuits 1 Chapter 11: Lab Projects

Linear Time-Invariant Systems

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

Lab P-10: Edge Detection in Images: UPC Decoding. Please read through the information below prior to attending your lab.

Experiment 8: An AC Circuit

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

Experiment 1 Introduction to MATLAB and Simulink

Signal Processing First Lab 02: Introduction to Complex Exponentials Multipath. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt }

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual

Lab 4 Digital Scope and Spectrum Analyzer

Data Communications & Computer Networks

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

Lecture Schedule: Week Date Lecture Title

EECS 307: Lab Handout 2 (FALL 2012)

Lab course Analog Part of a State-of-the-Art Mobile Radio Receiver

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #2

EECS 452 Midterm Exam (solns) Fall 2012

Introduction to Lab Instruments

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

DSP First. Laboratory Exercise #11. Extracting Frequencies of Musical Tones

Transcription:

Lakehead University Department of Electrical Engineering Lab Manual Engr. 053 (Digital Signal Processing) Instructor: Dr. M. Nasir Uddin Last updated on January 16, 003 1

Contents: Item Page # Guidelines 3 Lab #1 4 Lab # 6 Lab #3 7 Lab #4 7

Guidelines: Group formation For labs 1 and two students will be working in a group. For labs 3 and 4 four students will be working in a group. Attendance You must have to complete all the four labs, otherwise your result for Engr.53 (DSP) will be incomplete. Labs 1 and are project type of labs and you will do it on your own way. For Labs 3 and 4, you have to be present physically in the lab to do the experiment at the scheduled time (Check with Mr. Bruce Misner Technologist for this course) of your group. Report - Marks - Deadline Labs 1 and are based on Matlab programming and Labs 3 and 4 are based on assembly language programming of DSKC50 DSP. In the report include all the codes, calculation, observations, answer to the questions, plots and discussions (if any). Submit Labs 1 and directly to the Instructor and Labs 3 and 4 to the Technologist. Total marks for the lab is 15. Each of the labs is weighted equally. The deadline to submit labs 1 and is the last day of class. Labs 3 and 4 are due two weeks after those are performed. 3

Lakehead University Dept. of Electrical Engineering Engr. 053 (Digital Signal Processing) Lab #1 (Signal Processing with application of Correlation and Convolution) Instructor: Dr. M. Nasir Uddin 1) The objective of this lab is to determine the distance between a transmitter and an object reflecting the signal being transmitted. A data set with 4 signals (sampled at 1ms) in different columns is stored in a file (dsl.mat=file name) in the Lab. computer. The first column is the signal sent out and columns, 3 and 4 of this file contain various return signals after reflection. By using correletion between the signal in column 1 and signals in columns, 3 and 4 answers to the following questions will be sought: a) Is(are) there object(s) reflecting the input signal in the received signals in each of columns, 3 and 4. If so, how many. b) If the signal velocity is 700m/sec, what is the distance of such objects from the receiver/transmitter (located at the same site). Procedure: a) In Matlab write the following codes: load ds1.mat; (then do) r1=xcorr(ds1(:,1),ds1(:,)); r1=r1/4096; % (4096=of samples in each column) plot(r1); (if needed) [a1,b1]=ginput() %click at desired points using mouse, a1 will contain the X- coordinate of plot at point clicked. Similarly find the correlation between col. 1 and other columns. After correlation check whether any spike (which should be far from the noise threshold level) exists, if so that will indicate the object. b) The distance between the object and the receiver/transmitter can be determined as, 1 d = S 4096 Ts V where, S is the number of sample at which the reflection (spike) occur, T s is the sampling period and V is the velocity of the signal. ) The impulse response of an LTI system is given be, h [n]={1/, 1,, 1, 1/}. Calculate the output sequence y[n] by hand if the input to the system is, x[n]={0, 1, -, 3, -4}. 4

Verify your calculation by using Matlab function conv. Print this result and mark the correct starting instant on the result from Matlab. 3) A data set containing a periodic sine wave of unknown frequency corrupted by noise is available in the file ds.mat (approximate SNR = -1 db) with sampling period =1 ms. a) consider the probability of estimating the frequency of this sinusoid by doing an autocorrelation (normalized) on this data. Can this be done? Are you confident of this estimation? If affirmative, particularly in the light of the cross-correlation of Q-1 in this lab. b) Now consider cleaning up the raw signal by a simple (exponential) filter (first order low pass filter) y[n] = a y[n-1] +x[n], y[0]=0 where, x[n] = noisy signal and y[n]= hopefully less noisy signal after filtering. A routine called clean (which actually represents the above filter) is available. y = clean (a,x) is its calling sequence (file clean.m). Try cleaning the raw signal using this routine with values of a = 0.95 to 0.99 in a step of.01. Using the cleaned raw signal, compute the auto-correlation and estimate the frequency of the original signal. Procedure: b) After autocorrelation (Matlab function xcorr ) of the cleaned signal find x-coordinate of each peak. Difference between successive peaks will be the period. Make an average of these periods and multiply by the sampling time to get the estimated period in seconds. 5

Lakehead University Dept. of Electrical Engineering Engr. 053 (Digital Signal Processing) Lab # (Signal Processing with application of DFT (FFT) and DTFT) Instructor: Dr. M. Nasir Uddin 1) The inrush current to a 60 Hz Transformer has been sampled at 1000 Hz. The sampling is done after feeding the continuous time signal to a nd order low pass filter with transfer ω n. Find the frequencies (in function H ( s) =, where ω n = p x 4 x 60 and?=1/ S + ζωns + ω n Hz) of the harmonics in the signal & their corresponding amplitudes the data of 4096 pts is stored in file ds3.mat. Procedure: Do the FFT analysis of data in ds3.mat. In order to get the amplitude spectrum take the absolute value of current at each harmonic. Calculate the frequency using the formulae, Frequency = Number of samples where the magnitude exists x Resolution sampling frequency(1000hz) Where, Resolution = Total number of samples used for FFT Now plot the amplitude spectrum of the low pass filter. Get the magnitudes introduced by the filter at the corresponding frequencies and then do the correction to get the actual magnitude of the inrush current at different frequencies. ) Consider the rectangular pulse defined by, r[n] = 1, 0 n<l 0, elsewhere a. Show that the DTFT of r[n] is given by the mathematical formula ωl sin( ) jω jω ( L 1)/ R( e ) = e ω sin( ) b. Evaluate DTFT of a 1 point pulse using Matlab dtft function. Make plot of the DTFT values versus ω over the range -π ω π. Plot the magnitude and phase of the DTFT. Comment on the plots. To make the plot appear smooth choose a number of frequency samples that is 5 to 10 times the pulse length. c. Repeat (b) when the pulse length L=15. Notice the zero locations and the peak height. 6

ENG 053 DSP Lab #1 Objectives Lab #3 The objectives of this lab are to become familiar with the TMS30C50 DSK board, its assembly codes and how to run the codes through the Linker/Loader or Debugger. The report should include functional block diagram of the board, explanation of the observations you made in the lab and verification of the frequencies and the sampling rates. Lab #4 The objective of this experiment is to design a nd order band pass digital IIR filter based on a certain center frequency and bandwidth. Another objective is the experimental verification of your design through the DSK board. The report should include the necessary codes with explanations which reflect your understanding about the codes. First with lab1.asm do Instructions Edit program so that the AIC_CTR variable is 18h. This disables the bandpass filter and sets the gain to 1 (+/-3V input). To assemble type dsk5a lab1 To run type dsk5l lab1 Set the function generator to 800 Hz square wave input. Grab the waveform from the scope. Then decrease the frequency to 400 Hz. Sketch the waveform. Comment on changes in waveform shape. Now edit program to set AIC_CTR to 19h enabling bandpass filter and change TA register variable to 90. This divides the 10 MHz master clock by this value and modifies the sample rate of both A/D and D/A. Recompile and download, then set the function generator back to 800 Hz. Sketch and comment on the waveforms. Next with lab.asm do Set the function generator to 500 Hz. What is the wave shape. Now, scan frequencies highe rand lower than 500 Hz. What kind of filter is it? From the transfer function obtained from within the code, calculate the cutoff frequencies. 7