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

Size: px
Start display at page:

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

Transcription

1 All signals found in nature are analog they re smooth and continuously varying, from the sound of an orchestra to the acceleration of your car to the clouds moving through the sky. An excerpt from provides some additional background on analog signals: The term "analog" comes from the word "analogous" meaning something is similar to something else. It is used to describe devices that turn the movement or condition of a natural event into similar electronic or mechanical signals. There are numerous examples, but let's look at a couple. A prime example of an analog device is a non-digital thermometer measuring a constantly changing temperature. The action is continuous and the range is not very limited, though sometimes we wish it were. The data produced by a thermometer is analogous to the change in temperature. Therefore, it is an analog signal. Analog signals most closely represent the natural form of information as closet vinyl enthusiasts would agree: If analog recordings provide superior sound quality, why has the world gone digital? There s a major disadvantage to the analog format: Noise. Digital signals, on the other hand, have several advantages, including noise immunity. In this Practical Exercise, we ll explore the process of converting analog signals to digital signals. Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop) MATLAB files and code for the Analog to Digital lab o Download the MATLAB files and code for PE17 from your instructor s Google share drive lab Folder and place in a folder called a2d-matlab on your Desktop. 1

2 Part I: Introduction A simple sine wave representative of an analog tone is shown below. Question 1: What is the period of this signal? Question 2: What is this signal s frequency? (Show your work!) Question 3: What does this signal look like in the frequency domain? In order for this sine wave to be converted to a digital signal, it must be sampled (measured at regular time intervals), quantized (divided into levels), and encoded (assigned binary values to each sample). In order for the original signal to be recreated in digital form, it must be sampled at greater than the Nyquist Sampling Rate (fn), which is twice the highest frequency component of the signal. Question 4: Solve for fn. (Show your work!) If this signal is sampled at less than fn, aliasing will occur. Aliasing is the distortion that results when the signal reconstructed from samples is different from the original continuous signal. Think of it as connect-the-dots: Each time the signal is sampled, a dot represents a snapshot of the signal at that point in time. When the signal is reconstructed using Digital to Analog Conversion (which is the opposite of Analog to Digital Conversion), the converter plays a game of connect-the-dots And if there aren t enough dots to give the converter a good idea of the original signal, then the original signal is essentially lost. 2

3 Part II: Sampling a Tone We re going to use MATLAB, which is a high-level programming environment think of it as your calculator on some heavy-duty performance enhancing drugs. It s similar to C, but MATLAB s GUI makes it more userfriendly for our purposes. The MATLAB code provided allows you to adjust the sampling frequency (fs) for an analog file you select. Open the provided ADC lab code (soundcard_adc_lab2013b.m) in MATLAB by double clicking the soundcard_adc_lab2013b.m file in the a2d-matlab folder you created on your desktop. Briefly review the program. (You don t have to be able to reproduce it, but you should have a general understanding of what it does.) %%%%%%%%%%%%%%%%% % SAMPLING CODE % %%%%%%%%%%%%%%%%% % Clear out memory and initialize default settings % % DO NOT CHANGE THIS SECTION % clear all close all set(0,'defaultaxesfontsize',20) set(0,'defaultaxesfontweight','bold') % Load "Analog" Audio File % % The following variables are loaded into the workspace: % % audio -- The audio samples % % time -- The corresponding timevector % % ADD/REMOVE COMMENT (%) ONLY WHEN DIRECTED % load('4_khz_tone.mat'); %load('lorde_royals.mat'); %load('imagine_dragons_radioactive.mat'); %load('blink_182_midnight.mat'); %load('lady_gaga_applause.mat'); 3

4 % Setup major variables % % CHANGE FS (ONLY) TO CHANGE SAMPLING FREQUENCY % % Note fs = 96000/N, where N is an INTEGER % % Valid fs = 48 khz, 32 khz, 24 khz, etc. % fs = 48e3; % Sampling frequency in Hz % Get audio samples % % DO NOT CHANGE THIS SECTION % [sampled_time, sampled_audio] = sample(time,audio,fs); % Plot time and frequency % % CHANGE AXIS "COMMENT" (%) ONLY WHEN DIRECTED % [freq, power] = get_spectrum(sampled_audio, fs); figure subplot(2,1,1) plot(sampled_time,sampled_audio,'ko-') xlabel('time (sec)') ylabel('amplitude') axis([ ]) %axis([ ]) title('sampled Signal vs. Time and Frequency') subplot(2,1,2) plot(freq/1e3,power,'k-') xlabel('frequency (khz)') ylabel('relative Power (db)') axis([ ]) 4

5 Question 5: What does the soundcard_adc_lab2013b.m program do? What variable do you manipulate? The sampling code loads an analog-like audio file, which you can select by uncommenting (removing the % from) the beginning of the line of the selected file in the Load Analog Audio File section, reproduced below. Initially, the code is set up to sample a 4 khz tone. % Load "Analog" Audio File % % The following variables are loaded into the workspace: % % audio -- The audio samples % % time -- The corresponding timevector % % ADD/REMOVE COMMENT (%) ONLY WHEN DIRECTED % load('4_khz_tone.mat'); %load('lorde_royals.mat'); %load('imagine_dragons_radioactive.mat'); %load('blink_182_midnight.mat'); %load('lady_gaga_applause.mat'); Question 6: What sampling frequency (fs) must be exceeded for the 4 khz tone in order to ensure that aliasing is always avoided? Listen to the 4 khz audio file by typing load( 4_kHz_tone.mat ) into the MATLAB command window, pressing <enter>, and then typing soundsc(audio,96000) and pressing <enter> as shown below. You should hear several seconds of the 4 khz tone through your laptop speakers. If you don t, adjust your speaker settings so you can hear the 4 khz tone. 5

6 Adjust the sampling frequency in your MATLAB code to the value obtained in Question 6. Press to sample the tone. When the program obtains 5 seconds of samples, a display of the signal in the time domain and frequency domain will appear. Use the marker in the Figure 1 window to determine the frequency of the sampled signal from the (bottom) frequency domain plot. Question 7: Is the frequency of the sampled signal still 4 khz? Play back your sampled signal by typing soundsc(sampled_audio,fs) in the MATLAB Command Window (as shown). You should hear the samples you captured. 6

7 Question 8: Does the sampled tone you played sound the same as your original tone? Why or why not? If your sampled signal did not display 10 or fewer periods, use the zoom icon in the Figure 1 window to zoom in on the time domain plot. Question 9: Count to determine how many times the sine wave was sampled per period. Now change your sampling frequency to 48 khz. Press to sample the tone at your new sampling frequency. Question 10: Count to determine how many times the sine wave was sampled per period. Does this make sense with your new sampling frequency? Why or why not? Now change your sampling frequency to 6 khz. 7

8 Question 11: Is your new sampling frequency greater than fn? What phenomenon will result? Press to sample the tone at your new sampling frequency and type soundsc(sampled_audio,fs) to play it back. Question 12: Can you hear the difference between your sampled signal and the 4 khz analog tone? What frequency does your undersampled signal appear to be? (Hint: Use to determine the frequency from the frequency domain plot.) Part III: Sampling a Tune Since listening to a 4 khz tone is about a much fun as watching paint dry, let s try something more practical. Your soundcard_adc_lab2013b.m program also includes selections from Lorde, Imagine Dragons, Blink 182, and Lady Gaga. Select your favorite artist by adding a comment (%) to the beginning of the 4 khz tone and removing the comment from your selected tune. Add % Remove % % Load "Analog" Audio File % % The following variables are loaded into the workspace: % % audio -- The audio samples % % time -- The corresponding timevector % % ADD/REMOVE COMMENT (%) ONLY WHEN DIRECTED % %load('4_khz_tone.mat'); %load('lorde_royals.mat'); load('imagine_dragons_radioactive.mat'); %load('blink_182_midnight.mat'); %load('lady_gaga_applause.mat'); Change the commented line in the Plot time and frequency section of the MATLAB code so that the first axis line has a % at the beginning and the second does not. % Plot time and frequency % % CHANGE AXIS "COMMENT" (%) ONLY WHEN DIRECTED % [freq, power] = get_spectrum(sampled_audio, fs); figure 8

9 subplot(2,1,1) plot(sampled_time,sampled_audio,'ko-') xlabel('time (sec)') ylabel('amplitude') %axis([ ]) axis([ ]) title('sampled Signal vs. Time and Frequency') subplot(2,1,2) plot(freq/1e3,power,'k-') xlabel('frequency (khz)') The generally accepted standard range of audible frequencies is 20 to 20,000 Hz, so let s assume that the highest frequency in whatever you chose as your groove is 20 khz. Question 13: What sampling rate should be exceeded in order to avoid aliasing? Sample your music at 48 khz (close enough) and play it back by typing soundsc(sampled_audio,fs) Does it sound right? Question 14: Undersample your song (so that aliasing occurs): 8 khz should do it. Play it back & compare the frequency content to the previous plot. How is it different? In reality, most CD-quality digital audio systems sample at a minimum of 44.1 khz and use 16-bit quantization. DVD-quality audio samples at 96 khz and uses 24-bit quantization. Question 15: How many quantization levels result from a 16-bit A/D converter? A 24-bit A/D converter? Question 16: Suppose the samples of your song are depicted by the image below. If a system uses an 8- bit quantizer (A/D converter), how many bits represent each sample, and how many quantization levels result? 9

10 Question 17: If the 1 st sample falls into level 0, the 2 nd sample falls into level 150, the 3 rd sample falls into level 192, the 4 th sample falls into level 131, and the 5 th sample falls into level 84, what is the bit stream that represents the beginning of your signal (in binary)? Question 18: What is the significance of the bit stream obtained in Question 17? Question 19: What does the red outline in the figure below represent? Assoc. Prof. Chris Anderson and LCDR Jennie Wood 10

11 Name: Question 1: Question 2: Question 3: Question 4: Question 5: Question 6: Question 7: Question 8: Question 9: Question 10: Question 11: 11

12 Question 12: Question 13: Question 14: Question 15: Question 16: Question 17: Question 18: Question 19: 12

Figure 1: Block diagram of Digital signal processing

Figure 1: Block diagram of Digital signal processing 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).

More information

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback PURPOSE This lab will introduce you to the laboratory equipment and the software that allows you to link your computer to the hardware.

More information

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

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Tamara Smyth, trsmyth@ucsd.edu Department of Music, University of California, San Diego October 3, 2016 1 Continuous vs. Discrete signals

More information

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: 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 Continuous vs. Discrete signals CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 22,

More information

Fourier Series and Gibbs Phenomenon

Fourier Series and Gibbs Phenomenon Fourier Series and Gibbs Phenomenon University Of Washington, Department of Electrical Engineering This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License

More information

Digital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion.

Digital Sampling. This Lecture. Engr325 Instrumentation. Dr Curtis Nelson. Digital sampling Sample rate. Bit depth. Other terms. Types of conversion. Digital Sampling Engr325 Instrumentation Dr Curtis Nelson Digital sampling Sample rate. Bit depth. Other terms. Types of conversion. This Lecture 1 Data Acquisition and Control Computers are nearly always

More information

Additive Synthesis OBJECTIVES BACKGROUND

Additive Synthesis OBJECTIVES BACKGROUND Additive Synthesis SIGNALS & SYSTEMS IN MUSIC CREATED BY P. MEASE, 2011 OBJECTIVES In this lab, you will construct your very first synthesizer using only pure sinusoids! This will give you firsthand experience

More information

Lab 4: Using the CODEC

Lab 4: Using the CODEC Lab 4: Using the CODEC ECE 2060 Spring, 2016 Haocheng Zhu Gregory Ochs Monday 12:40 15:40 Date of Experiment: 03/28/16 Date of Submission: 04/08/16 Abstract This lab covers the use of the CODEC that is

More information

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

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 16, 2006 1 Continuous vs. Discrete

More information

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

! Where are we on course map? ! What we did in lab last week.  How it relates to this week. ! Sampling/Quantization Review ! Where are we on course map?! What we did in lab last week " How it relates to this week! Sampling/Quantization Review! Nyquist Shannon Sampling Rate! Next Lab! References Lecture #2 Nyquist-Shannon Sampling

More information

Using the CODEC ReadMeFirst

Using the CODEC ReadMeFirst Using the CODEC ReadMeFirst Lab Summary This lab covers the use of the CODEC that is necessary in nearly all of the future labs. This lab is divided into three parts. In the first part, you will work with

More information

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives: Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Pentium PC with National Instruments PCI-MIO-16E-4 data-acquisition board (12-bit resolution; software-controlled

More information

Analog to Digital Converters

Analog to Digital Converters Analog to Digital Converters By: Byron Johns, Danny Carpenter Stephanie Pohl, Harry Bo Marr http://ume.gatech.edu/mechatronics_course/fadc_f05.ppt (unless otherwise marked) Presentation Outline Introduction:

More information

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm All problem numbers below refer to those in Haykin & Moher s book. 1. (FT) Problem 2.20. 2. (Convolution) Problem

More information

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam 1 Background In this lab we will begin to code a Shazam-like program to identify a short clip of music using a database of songs. The basic procedure

More information

PHYS225 Lecture 22. Electronic Circuits

PHYS225 Lecture 22. Electronic Circuits PHYS225 Lecture 22 Electronic Circuits Last lecture Digital to Analog Conversion DAC Converts digital signal to an analog signal Computer control of everything! Various types/techniques for conversion

More information

ENGR 210 Lab 12: Sampling and Aliasing

ENGR 210 Lab 12: Sampling and Aliasing ENGR 21 Lab 12: Sampling and Aliasing In the previous lab you examined how A/D converters actually work. In this lab we will consider some of the consequences of how fast you sample and of the signal processing

More information

Lab 4 Fourier Series and the Gibbs Phenomenon

Lab 4 Fourier Series and the Gibbs Phenomenon Lab 4 Fourier Series and the Gibbs Phenomenon EE 235: Continuous-Time Linear Systems Department of Electrical Engineering University of Washington This work 1 was written by Amittai Axelrod, Jayson Bowen,

More information

Laboratory Assignment 1 Sampling Phenomena

Laboratory Assignment 1 Sampling Phenomena 1 Main Topics Signal Acquisition Audio Processing Aliasing, Anti-Aliasing Filters Laboratory Assignment 1 Sampling Phenomena 2.171 Analysis and Design of Digital Control Systems Digital Filter Design and

More information

EGR 111 Audio Processing

EGR 111 Audio Processing EGR 111 Audio Processing This lab shows how to load, play, create, and filter sounds and music with MATLAB. Resources (available on course website): speech1.wav, birds_jet_noise.wav New MATLAB commands:

More information

EE482: Digital Signal Processing Applications

EE482: Digital Signal Processing Applications Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu EE482: Digital Signal Processing Applications Spring 2014 TTh 14:30-15:45 CBC C222 Lecture 01 Introduction 14/01/21 http://www.ee.unlv.edu/~b1morris/ee482/

More information

In this lecture. System Model Power Penalty Analog transmission Digital transmission

In this lecture. System Model Power Penalty Analog transmission Digital transmission System Model Power Penalty Analog transmission Digital transmission In this lecture Analog Data Transmission vs. Digital Data Transmission Analog to Digital (A/D) Conversion Digital to Analog (D/A) Conversion

More information

Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is:

Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is: 14: ALIASING I. PRELAB FOR ALIASING LAB You might expect that to record a frequency of 4000 Hz you would have to sample at a rate of at least 4000 Hz. It turns out, however, that you actually have to sample

More information

Communication Systems Lab Manual

Communication Systems Lab Manual SWEDISH COLLEGE OF ENGINEERING & TECHNOLOGY Communication Systems Lab Manual Submitted by: Roll No.: Board Roll No.: Submitted to: Ahmad Bilal COMMUNICATION SYSTEMS Table of Contents SAMPLING Understanding

More information

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

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011 Islamic University of Gaza Faculty of Engineering Electrical Engineering Department Spring-2011 DSP Laboratory (EELE 4110) Lab#4 Sampling and Quantization OBJECTIVES: When you have completed this assignment,

More information

Experiment No. 6. Audio Tone Control Amplifier

Experiment No. 6. Audio Tone Control Amplifier Experiment No. 6. Audio Tone Control Amplifier By: Prof. Gabriel M. Rebeiz The University of Michigan EECS Dept. Ann Arbor, Michigan Goal: The goal of Experiment #6 is to build and test a tone control

More information

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

CS101 Lecture 18: Audio Encoding. What You ll Learn Today CS101 Lecture 18: Audio Encoding Sampling Quantizing Aaron Stevens (azs@bu.edu) with special guest Wayne Snyder (snyder@bu.edu) 16 October 2012 What You ll Learn Today How do we hear sounds? How can audio

More information

ECE 2111 Signals and Systems Spring 2009, UMD Experiment 3: The Spectrum Analyzer

ECE 2111 Signals and Systems Spring 2009, UMD Experiment 3: The Spectrum Analyzer ECE 2111 Signals and Systems Spring 2009, UMD Experiment 3: The Spectrum Analyzer Objective: Student will gain an understanding of the basic controls and measurement techniques of the Rohde & Schwarz Handheld

More information

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment EECS 216 Winter 2008 Lab 2: Part II: In-Lab & Post-Lab Assignment c Kim Winick 2008 1 Background DIGITAL vs. ANALOG communication. Over the past fifty years, there has been a transition from analog to

More information

Type pwd on Unix did on Windows (followed by Return) at the Octave prompt to see the full path of Octave's working directory.

Type pwd on Unix did on Windows (followed by Return) at the Octave prompt to see the full path of Octave's working directory. MUSC 208 Winter 2014 John Ellinger, Carleton College Lab 2 Octave: Octave Function Files Setup Open /Applications/Octave The Working Directory Type pwd on Unix did on Windows (followed by Return) at the

More information

Laboratory Experiment #1 Introduction to Spectral Analysis

Laboratory Experiment #1 Introduction to Spectral Analysis J.B.Francis College of Engineering Mechanical Engineering Department 22-403 Laboratory Experiment #1 Introduction to Spectral Analysis Introduction The quantification of electrical energy can be accomplished

More information

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

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1 Today 3// Lecture 9 Analog Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion Homework Study for Exam next week

More information

Fundamentals of Digital Audio *

Fundamentals of Digital Audio * Digital Media The material in this handout is excerpted from Digital Media Curriculum Primer a work written by Dr. Yue-Ling Wong (ylwong@wfu.edu), Department of Computer Science and Department of Art,

More information

Pre-Lab. Introduction

Pre-Lab. Introduction Pre-Lab Read through this entire lab. Perform all of your calculations (calculated values) prior to making the required circuit measurements. You may need to measure circuit component values to obtain

More information

MUSC 316 Sound & Digital Audio Basics Worksheet

MUSC 316 Sound & Digital Audio Basics Worksheet MUSC 316 Sound & Digital Audio Basics Worksheet updated September 2, 2011 Name: An Aggie does not lie, cheat, or steal, or tolerate those who do. By submitting responses for this test you verify, on your

More information

The Audio Synthesizer

The Audio Synthesizer The Audio Synthesizer Lab Summary In this laboratory, you will construct an audio synthesizer. The synthesizer generates signals for various tones that you will use for your Simon push buttons and win/lose

More information

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

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics Laboratory 12 Data Acquisition Required Special Equipment: Computer with LabView Software National Instruments USB 6009 Data Acquisition Card 12.1 Objectives This lab demonstrates the basic principals

More information

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY NAME:. STUDENT ID:.. ROOM: INTRODUCTION TO AMPLITUDE MODULATION Purpose: The objectives of this laboratory are:. To introduce the spectrum

More information

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number: TAMPERE UNIVERSITY OF TECHNOLOGY Department of Signal Processing SGN-16006 Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter (2013-2014) Group number: Date: Name: Student

More information

MUSC 1331 Lab 3 (Northwest) Using Software Instruments Creating Markers Creating an Audio CD of Multiple Sources

MUSC 1331 Lab 3 (Northwest) Using Software Instruments Creating Markers Creating an Audio CD of Multiple Sources MUSC 1331 Lab 3 (Northwest) Using Software Instruments Creating Markers Creating an Audio CD of Multiple Sources Objectives: 1. Learn to use Markers to identify sections of a sequence/song/recording. 2.

More information

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

L A B 3 : G E N E R A T I N G S I N U S O I D S L A B 3 : G E N E R A T I N G S I N U S O I D S NAME: DATE OF EXPERIMENT: DATE REPORT SUBMITTED: 1/7 1 THEORY DIGITAL SIGNAL PROCESSING LABORATORY 1.1 GENERATION OF DISCRETE TIME SINUSOIDAL SIGNALS IN

More information

George Mason University Signals and Systems I Spring 2016

George Mason University Signals and Systems I Spring 2016 George Mason University Signals and Systems I Spring 2016 Laboratory Project #4 Assigned: Week of March 14, 2016 Due Date: Laboratory Section, Week of April 4, 2016 Report Format and Guidelines for Laboratory

More information

C.8 Comb filters 462 APPENDIX C. LABORATORY EXERCISES

C.8 Comb filters 462 APPENDIX C. LABORATORY EXERCISES 462 APPENDIX C. LABORATORY EXERCISES C.8 Comb filters The purpose of this lab is to use a kind of filter called a comb filter to deeply explore concepts of impulse response and frequency response. The

More information

Chapter 5: Signal conversion

Chapter 5: Signal conversion Chapter 5: Signal conversion Learning Objectives: At the end of this topic you will be able to: explain the need for signal conversion between analogue and digital form in communications and microprocessors

More information

Sound synthesis with Pure Data

Sound synthesis with Pure Data Sound synthesis with Pure Data 1. Start Pure Data from the programs menu in classroom TC307. You should get the following window: The DSP check box switches sound output on and off. Getting sound out First,

More information

ECEGR Lab #8: Introduction to Simulink

ECEGR Lab #8: Introduction to Simulink Page 1 ECEGR 317 - Lab #8: Introduction to Simulink Objective: By: Joe McMichael This lab is an introduction to Simulink. The student will become familiar with the Help menu, go through a short example,

More information

Analog ó Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion

Analog ó Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion Today Analog ó Digital Conversion Sampled Data Acquisition Systems Discrete Sampling and Nyquist Digital to Analog Conversion Analog to Digital Conversion Analog Digital Analog Beneits o digital systems

More information

Cyber-Physical Systems ADC / DAC

Cyber-Physical Systems ADC / DAC Cyber-Physical Systems ADC / DAC ICEN 553/453 Fall 2018 Prof. Dola Saha 1 Analog-to-Digital Converter (ADC) Ø ADC is important almost to all application fields Ø Converts a continuous-time voltage signal

More information

Introduction. A Simple Example. 3. fo = 4; %frequency of the sine wave. 4. Fs = 100; %sampling rate. 5. Ts = 1/Fs; %sampling time interval

Introduction. A Simple Example. 3. fo = 4; %frequency of the sine wave. 4. Fs = 100; %sampling rate. 5. Ts = 1/Fs; %sampling time interval Introduction In this tutorial, we will discuss how to use the fft (Fast Fourier Transform) command within MATLAB. The fft command is in itself pretty simple, but takes a little bit of getting used to in

More information

Lab 4: Static & Switched Audio Equalizer

Lab 4: Static & Switched Audio Equalizer http://www.comm.utoronto.ca/~dkundur/course/real-time-digital-signal-processing/ Page 1 of 1 Lab 4: Static & Switched Audio Equalizer Professor Deepa Kundur Objectives of this Lab The goals of this lab

More information

UNIVERSITY OF WARWICK

UNIVERSITY OF WARWICK UNIVERSITY OF WARWICK School of Engineering ES905 MSc Signal Processing Module (2010) AM SIGNALS AND FILTERING EXERCISE Deadline: This is NOT for credit. It is best done before the first assignment. You

More information

SAMPLING AND RECONSTRUCTING SIGNALS

SAMPLING AND RECONSTRUCTING SIGNALS CHAPTER 3 SAMPLING AND RECONSTRUCTING SIGNALS Many DSP applications begin with analog signals. In order to process these analog signals, the signals must first be sampled and converted to digital signals.

More information

Media Devices: Audio. CTEC1465/2018S Computer System Support

Media Devices: Audio. CTEC1465/2018S Computer System Support Media Devices: Audio CTEC1465/2018S Computer System Support Learning Objective Describe how to implement sound in a PC Introduction The process by which sounds are stored in electronic format on your PC

More information

Sampling and Reconstruction

Sampling and Reconstruction Experiment 10 Sampling and Reconstruction In this experiment we shall learn how an analog signal can be sampled in the time domain and then how the same samples can be used to reconstruct the original

More information

2: Audio Basics. Audio Basics. Mark Handley

2: Audio Basics. Audio Basics. Mark Handley 2: Audio Basics Mark Handley Audio Basics Analog to Digital Conversion Sampling Quantization Aliasing effects Filtering Companding PCM encoding Digital to Analog Conversion 1 Analog Audio Sound Waves (compression

More information

ELEC350 Assignment 5

ELEC350 Assignment 5 ELEC350 Assignment 5 Instructor: Prof. Peter F. Driessen Marker: Peng Lu You are given a sound file in.wav format containing a binary FSK signal with noise. You are asked to implement a receiver and identify

More information

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

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2 ECE 556 BASICS OF DIGITAL SPEECH PROCESSING Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2 Analog Sound to Digital Sound Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 41 Digital Signal Processing Prof. Mark Fowler Note Set #17.5 MATLAB Examples Reading Assignment: MATLAB Tutorial on Course Webpage 1/24 Folder Navigation Current folder name here Type commands here

More information

Digital Design Laboratory Lecture 7. A/D and D/A

Digital Design Laboratory Lecture 7. A/D and D/A ECE 280 / CSE 280 Digital Design Laboratory Lecture 7 A/D and D/A Analog/Digital Conversion A/D conversion is the process of sampling a continuous signal Two significant implications 1. The information

More information

ANALOGUE AND DIGITAL COMMUNICATION

ANALOGUE AND DIGITAL COMMUNICATION ANALOGUE AND DIGITAL COMMUNICATION Syed M. Zafi S. Shah Umair M. Qureshi Lecture xxx: Analogue to Digital Conversion Topics Pulse Modulation Systems Advantages & Disadvantages Pulse Code Modulation Pulse

More information

LAB 2: Sampling & aliasing; quantization & false contouring

LAB 2: Sampling & aliasing; quantization & false contouring CEE 615: Digital Image Processing Spring 2016 1 LAB 2: Sampling & aliasing; quantization & false contouring A. SAMPLING: Observe the effects of the sampling interval near the resolution limit. The goal

More information

Fourier Signal Analysis

Fourier Signal Analysis Part 1B Experimental Engineering Integrated Coursework Location: Baker Building South Wing Mechanics Lab Experiment A4 Signal Processing Fourier Signal Analysis Please bring the lab sheet from 1A experiment

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

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

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12. Analog Signals Signals that vary continuously throughout a defined range. Representative of many physical quantities, such as temperature and velocity. Usually a voltage or current level. Digital Signals

More information

Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB

Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB Thursday, 23 September 2010 No PreLab is Required Objective: In this laboratory you will review the basics of MATLAB as a tool

More information

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

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC EE 421L Digital Electronics Laboratory Laboratory Exercise #9 ADC and DAC Department of Electrical and Computer Engineering University of Nevada, at Las Vegas Objective: The purpose of this laboratory

More information

Tektronix digital oscilloscope, BK Precision Function Generator, coaxial cables, breadboard, the crystal earpiece from your AM radio kit.

Tektronix digital oscilloscope, BK Precision Function Generator, coaxial cables, breadboard, the crystal earpiece from your AM radio kit. Experiment 0: Review I. References The 174 and 275 Lab Manuals Any standard text on error analysis (for example, Introduction to Error Analysis, J. Taylor, University Science Books, 1997) The manual for

More information

Chapter 4. Digital Audio Representation CS 3570

Chapter 4. Digital Audio Representation CS 3570 Chapter 4. Digital Audio Representation CS 3570 1 Objectives Be able to apply the Nyquist theorem to understand digital audio aliasing. Understand how dithering and noise shaping are done. Understand the

More information

Experiment 3. Direct Sequence Spread Spectrum. Prelab

Experiment 3. Direct Sequence Spread Spectrum. Prelab Experiment 3 Direct Sequence Spread Spectrum Prelab Introduction One of the important stages in most communication systems is multiplexing of the transmitted information. Multiplexing is necessary since

More information

Sampling and Reconstruction of Analog Signals

Sampling and Reconstruction of Analog Signals Sampling and Reconstruction of Analog Signals Chapter Intended Learning Outcomes: (i) Ability to convert an analog signal to a discrete-time sequence via sampling (ii) Ability to construct an analog signal

More information

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals DSP First Laboratory Exercise #7 Everyday Sinusoidal Signals This lab introduces two practical applications where sinusoidal signals are used to transmit information: a touch-tone dialer and amplitude

More information

HOWTO PROPERLY SET YOUR GAINS

HOWTO PROPERLY SET YOUR GAINS HOWTO PROPERLY SET YOUR GAINS BY ERIC RUSSELL You meticulously selected the right products for your car audio system, installed them, and finally connected them together. It sounds good, but are you getting

More information

Experiment 1 Introduction to MATLAB and Simulink

Experiment 1 Introduction to MATLAB and Simulink Experiment 1 Introduction to MATLAB and Simulink INTRODUCTION MATLAB s Simulink is a powerful modeling tool capable of simulating complex digital communications systems under realistic conditions. It includes

More information

FM RADIO TRANSMITTER

FM RADIO TRANSMITTER FM RADIO TRANSMITTER Instruction Manual i702 Please read this manual carefully before operating and save it for future reference. Questions? Please visit http://www.i-luv.com CONTENTS INTRODUCTION General

More information

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

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two Chapter Two Layout: 1. Introduction. 2. Pulse Code Modulation (PCM). 3. Differential Pulse Code Modulation (DPCM). 4. Delta modulation. 5. Adaptive delta modulation. 6. Sigma Delta Modulation (SDM). 7.

More information

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

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA Department of Electrical and Computer Engineering ELEC 423 Digital Signal Processing Project 2 Due date: November 12 th, 2013 I) Introduction In ELEC

More information

Analog-Digital Interface

Analog-Digital Interface Analog-Digital Interface Tuesday 24 November 15 Summary Previous Class Dependability Today: Redundancy Error Correcting Codes Analog-Digital Interface Converters, Sensors / Actuators Sampling DSP Frequency

More information

EE 233 Circuit Theory Lab 2: Amplifiers

EE 233 Circuit Theory Lab 2: Amplifiers EE 233 Circuit Theory Lab 2: Amplifiers Table of Contents 1 Introduction... 1 2 Precautions... 1 3 Prelab Exercises... 2 3.1 LM348N Op-amp Parameters... 2 3.2 Voltage Follower Circuit Analysis... 2 3.2.1

More information

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

Lab 6 - MCU CODEC IIR Filter ReadMeFirst Lab 6 - MCU CODEC IIR Filter ReadMeFirst Lab Summary In this lab you will use a microcontroller and an audio CODEC to design a 2nd order low pass digital IIR filter. Use this filter to remove the noise

More information

EP375 Computational Physics

EP375 Computational Physics EP375 Computational Physics Topic 12 SOUND PROCESSING Department of Engineering Physics Gaziantep University Apr 2016 Sayfa 1 Content 1. Introduction 2. Sound 3. Perception of Sound 4. Physics of Sound

More information

Bioacoustics Lab- Spring 2011 BRING LAPTOP & HEADPHONES

Bioacoustics Lab- Spring 2011 BRING LAPTOP & HEADPHONES Bioacoustics Lab- Spring 2011 BRING LAPTOP & HEADPHONES Lab Preparation: Bring your Laptop to the class. If don t have one you can use one of the COH s laptops for the duration of the Lab. Before coming

More information

Lindell TE 100 User Manual. Lindell TE 100. User Manual

Lindell TE 100 User Manual. Lindell TE 100. User Manual Lindell TE 100 User Manual Lindell TE 100 User Manual Introduction Congratulation on choosing the Lindell TE 100 tube equalizer. This plugin faithfully reproduces the behavior and character of the K&H

More information

UNIVERSITY OF WARWICK

UNIVERSITY OF WARWICK UNIVERSITY OF WARWICK School of Engineering ES905 MSc Signal Processing Module (2004) ASSIGNMENT 1 In this assignment, you will use the MATLAB package. In Part (A) you will design some FIR filters and

More information

Chapter 4 Digital Transmission 4.1

Chapter 4 Digital Transmission 4.1 Chapter 4 Digital Transmission 4.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4-2 ANALOG-TO-DIGITAL CONVERSION We have seen in Chapter 3 that a digital signal

More information

Lab 2: Digital Modulations

Lab 2: Digital Modulations Lab 2: Digital Modulations Due: November 1, 2018 In this lab you will use a hardware device (RTL-SDR which has a frequency range of 25 MHz 1.75 GHz) to implement a digital receiver with Quaternary Phase

More information

Pulse Code Modulation (PCM)

Pulse Code Modulation (PCM) Project Title: e-laboratories for Physics and Engineering Education Tempus Project: contract # 517102-TEMPUS-1-2011-1-SE-TEMPUS-JPCR 1. Experiment Category: Electrical Engineering >> Communications 2.

More information

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

Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing DSP First, 2e Signal Processing First Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing Pre-Lab: Read the Pre-Lab and do all the exercises in the Pre-Lab section prior to attending lab. Verification:

More information

ECE 271 Microcomputer Architecture and Applications University of Maine

ECE 271 Microcomputer Architecture and Applications University of Maine Lab 11: Digital to Analog Converter (DAC) Instructor: Prof. Yifeng Zhu Spring 2016 Goals 1. Understand basic concepts of DAC conversions 2. Configure DAC resolution and sampling rate 3. Use a timer to

More information

EE 264 DSP Project Report

EE 264 DSP Project Report Stanford University Winter Quarter 2015 Vincent Deo EE 264 DSP Project Report Audio Compressor and De-Esser Design and Implementation on the DSP Shield Introduction Gain Manipulation - Compressors - Gates

More information

EBU5375 Signals and Systems: Filtering and sampling in Matlab. Dr Jesús Requena Carrión

EBU5375 Signals and Systems: Filtering and sampling in Matlab. Dr Jesús Requena Carrión EBU5375 Signals and Systems: Filtering and sampling in Matlab Dr Jesús Requena Carrión Background: Ideal filters We have learnt three types of filters: lowpass, highpass and bandpass filters. We represent

More information

Lab 8. Signal Analysis Using Matlab Simulink

Lab 8. Signal Analysis Using Matlab Simulink E E 2 7 5 Lab June 30, 2006 Lab 8. Signal Analysis Using Matlab Simulink Introduction The Matlab Simulink software allows you to model digital signals, examine power spectra of digital signals, represent

More information

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1 E40M Sound and Music M. Horowitz, J. Plummer, R. Howe 1 LED Cube Project #3 In the next several lectures, we ll study Concepts Coding Light Sound Transforms/equalizers Devices LEDs Analog to digital converters

More information

Basic Transceiver tests with the 8800S

Basic Transceiver tests with the 8800S The most important thing we build is trust ADVANCED ELECTRONIC SOLUTIONS AVIATION SERVICES COMMUNICATIONS AND CONNECTIVITY MISSION SYSTEMS Basic Transceiver tests with the 8800S Basic Interconnects Interconnect

More information

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

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation INTRODUCTION TO COMMUNICATION SYSTEMS Introduction: LABORATORY IV Binary Pulse Amplitude Modulation and Pulse Code Modulation In this lab we will explore some of the elementary characteristics of binary

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006 MASSACHUSETTS INSTITUTE OF TECHNOLOGY.071/6.071 Introduction to Electronics, Signals and Measurement Spring 006 Lab. Introduction to signals. Goals for this Lab: Further explore the lab hardware. The oscilloscope

More information

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

PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture 11-2 In this lecture, I will introduce the mathematical model for discrete time signals as sequence of samples. You will also take a first look at a useful alternative representation of discrete signals known

More information

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013 Exercise 1: PWM Modulator University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013 Lab 3: Power-System Components and

More information

14 fasttest. Multitone Audio Analyzer. Multitone and Synchronous FFT Concepts

14 fasttest. Multitone Audio Analyzer. Multitone and Synchronous FFT Concepts Multitone Audio Analyzer The Multitone Audio Analyzer (FASTTEST.AZ2) is an FFT-based analysis program furnished with System Two for use with both analog and digital audio signals. Multitone and Synchronous

More information

Introduction to Equalization

Introduction to Equalization Introduction to Equalization Tools Needed: Real Time Analyzer, Pink noise audio source The first thing we need to understand is that everything we hear whether it is musical instruments, a person s voice

More information

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS EXPERIMENT 3: SAMPLING & TIME DIVISION MULTIPLEX (TDM) Objective: Experimental verification of the

More information