Final Project Part II MATLAB Session ES 156 Signals and Systems 2007 SEAS Prepared by Frank Tompkins.

Slides:



Advertisements
Similar presentations
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
Advertisements

Digital Communication
Welcome to MATLAB DigComm LAB
ITEC 352 Lecture 34 Communications. Review USB –How did you like the material (1-10) from bad to good –What did you learn? Differences between bus types.
1 Helsinki University of Technology,Communications Laboratory, Timo O. Korhonen Data Communication, Lecture6 Digital Baseband Transmission.
1. INTRODUCTION In order to transmit digital information over * bandpass channels, we have to transfer the information to a carrier wave of.appropriate.
EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 15 Quadrature Amplitude Modulation (QAM) Transmitter Prof. Brian L. Evans Dept. of Electrical.
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
Quantization Prof. Siripong Potisuk.
General Block Diagram of a Communication System. Definition of Communication Communication is the transmission of information from a source to a user.
School of Computing Science Simon Fraser University
Digital Data Transmission ECE 457 Spring Information Representation Communication systems convert information into a form suitable for transmission.
Final Project Part I MATLAB Session
Digital Communications I: Modulation and Coding Course Spring Jeffrey N. Denenberg Lecture 3b: Detection and Signal Spaces.
E&CE 418: Tutorial-6 Instructor: Prof. Xuemin (Sherman) Shen
Digital Communications I: Modulation and Coding Course
Matched Filters By: Andy Wang.
Carrier-Amplitude modulation In baseband digital PAM: (2d - the Euclidean distance between two adjacent points)
Over-Sampling and Multi-Rate DSP Systems
A/D Conversion No. 1  Seattle Pacific University Analog to Digital Conversion Based on Chapter 5 of William Stallings, Data and Computer Communication.
Modulation, Demodulation and Coding Course
GODIAN MABINDAH RUTHERFORD UNUSI RICHARD MWANGI.  Differential coding operates by making numbers small. This is a major goal in compression technology:
Introduction to Communication Systems
CSC361/661 Digital Media Spring 2002
Dept. of EE, NDHU 1 Chapter Three Baseband Demodulation/Detection.
Physical Layer (2). Goal Physical layer design goal: send out bits as fast as possible with acceptable low error ratio Goal of this lecture – Review some.
Coding No. 1  Seattle Pacific University Modulation Kevin Bolding Electrical Engineering Seattle Pacific University.
Signals CY2G2/SE2A2 Information Theory and Signals Aims: To discuss further concepts in information theory and to introduce signal theory. Outcomes:
Baseband Demodulation/Detection
EE 551/451, Fall, 2006 Communication Systems Zhu Han Department of Electrical and Computer Engineering Class 14 Oct. 5 th, 2006.
Performance of Digital Communications System
Analysis of Optimal and Suboptimal Discrete-Time Digital Communications Receivers Clemson University SURE Program 2005 Justin Ingersoll, Prof. Michael.
ECE 5525 Osama Saraireh Fall 2005 Dr. Veton Kepuska
Chapter 4: Baseband Pulse Transmission Digital Communication Systems 2012 R.Sokullu1/46 CHAPTER 4 BASEBAND PULSE TRANSMISSION.
Name Iterative Source- and Channel Decoding Speaker: Inga Trusova Advisor: Joachim Hagenauer.
Additive White Gaussian Noise
ECE 4710: Lecture #31 1 System Performance  Chapter 7: Performance of Communication Systems Corrupted by Noise  Important Practical Considerations: 
1 Lab. 3 Digital Modulation  Digital modulation: CoderDAC Transmit filter Up- conversion Channel Down- conversion Receive filter ADC ProcessingDetectionDecoder.
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
Baseband Receiver Receiver Design: Demodulation Matched Filter Correlator Receiver Detection Max. Likelihood Detector Probability of Error.
Performance of Digital Communications System
WAVELET NOISE REMOVAL FROM BASEBAND DIGITAL SIGNALS IN BANDLIMITED CHANNELS Dr. Robert Barsanti SSST March 2010, University of Texas At Tyler.
Pulse Code Modulation (PCM) Analog voice data must be translated into a series of binary digits before they can be transmitted. With Pulse Code Modulation.
Digital Communications I: Modulation and Coding Course Spring Jeffrey N. Denenberg Lecture 3c: Signal Detection in AWGN.
Eeng360 1 Eeng 360 Communication Systems I Course Information  Instructor: Huseyin Bilgekul, Room No: EE 207, Office Tel:  Course Webpage:
DIGITAL COMMUNICATION. Introduction In a data communication system, the output of the data source is transmitted from one point to another. The rate of.
Radio Equipment. Review: On the Transmitter Side The purpose of radio communications is to transfer information from one point to another. The information.
Institute for Experimental Mathematics Ellernstrasse Essen - Germany DATA COMMUNICATION introduction A.J. Han Vinck May 10, 2003.
Copyright 1998, S.D. Personick. All Rights Reserved. Telecommunications Networking I Lectures 4&5 Quantifying the Performance of Communication Systems.
Báo cáo đồ án Thông Tin Số (CT386) Nhóm 2: 1.Cao Kim Loan Lâm Quốc Sự Bộ môn Điện Tử Viễn Thông GVHD : TS.Lương Vinh Quốc Danh.
Sistem Telekomunikasi, Sukiswo, ST, MT Sukiswo
Principios de Comunicaciones EL4005
Analog to digital conversion
Telecommunications Networking I
Adaptive Filters Common filter design methods assume that the characteristics of the signal remain constant in time. However, when the signal characteristics.
Lecture 1.30 Structure of the optimal receiver deterministic signals.
Pulse Code Modulation (PCM)
Subject Name: Digital Communication Subject Code: 10EC61
James K Beard, Ph.D. April 20, 2005 SystemView 2005 James K Beard, Ph.D. April 20, 2005 April 122, 2005.
Generating Sinusoidal Signals
Pulse Code Modulation (PCM)
Chapter 3: Pulse Code Modulation
لجنة الهندسة الكهربائية
Error rate due to noise In this section, an expression for the probability of error will be derived The analysis technique, will be demonstrated on a binary.
Quadrature Amplitude Modulation (QAM) Transmitter
CSCI1600: Embedded and Real Time Software
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Pulse Code Modulation (PCM)
Quadrature Amplitude Modulation (QAM) Transmitter
DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 4
Presentation transcript:

Final Project Part II MATLAB Session ES 156 Signals and Systems 2007 SEAS Prepared by Frank Tompkins

Outline freqz() command Step by step through the communication system –Explanation of new concepts and new MATLAB functions –High-level view of flow through the system –Next week we talk in more detail about implementation Eye diagrams

Start Early! Project is complex Not something you can do in one day Less hand-holding than MATLAB exercises in homework –More like real-life projects Extra office hours possible – us if you have questions/problems

freqz() Same inputs as filter() Plots frequency response Outputs frequency response channelFilterTaps = [1 0 -1/2 3/8 zeros(1,28)]; freqz(channelFilterTaps, 1); channelFilterTaps = [1 0 -1/2 3/8 zeros(1,28)]; H = freqz(channelFilterTaps, 1, 256); % evaluate H(e j  ) at 256 points

Overall Idea Want to transmit a digital image from point A to point B using radio waves, etc. We won’t actually build antennas/wires –Simulate the whole thing in MATLAB Have to convert digital image to a wave that can travel through the air, a wire, etc. at point A Then convert wave back to a digital image at point B We’ll transmit DCTs instead of actual image pixels, as is often done in real life applications

Image Pre-Processing –Break image into 8 pixel by 8 pixel blocks and take DCT of each block –Quantize DCT coefficients into 256 levels by representing them as 8-bit unsigned numbers

blkproc() MATLAB command for applying a function in blocks to a matrix Example: apply DCT in 8 by 8 blocks I = imread(‘myimage.tif'); fun J = blkproc(I, [8 8], fun);

Quantization Approximate a continuous range of values by a set of discrete values

Quantization In MATLAB uint8() For images, we have to scale to [0,1] before quantizing with im2uint8() x = 5.7; % x is double precision (32-bit floating point) xq = uint8(x); % xq is an 8-bit unsigned integer xscaled = (1.4 - x) / ( ); % x is an image matrix xq = im2uint8(xscaled);

Conversion to a bit stream –Using reshape() and permute() Arrange 8 x 8 DCT blocks into groups of N blocks each Reshape each block into a vector (length 8*8*N) to be transmitted later Convert each pixel in vector to a binary number

Conversion

reshape() >> x = [1 2 3; 4 5 6; 7 8 9]' x = >> reshape(x,1,9) ans = Takes elements columnwise

permute() >> x = rand(1,2,2) x(:,:,1) = x(:,:,2) = >> permute(x,[2 1 3]) ans(:,:,1) = ans(:,:,2) =

de2bi() >> x = [4; 212; 19] x = >> de2bi(x) ans =

Modulation –Modulate each bit by a sine wave and put into the channel –Implementation details are up to you What is written in the PDF file is a suggestion –We will however take off points if you use more than one for loop in your code That one should loop over the N-sized block groups to send each one through the channel in turn

Pulse Amplitude Modulation PAM for short We will use a specific simple type: half-sine pulse To send a bit –For a 1 send sin(t) –For a 0 send –sin(t)

Modulated [ ]

Channel –Atmosphere, telephone wire, coaxial cable –We model it as an LTI system Impulse response h(t) –In using MATLAB, must approximate by discrete time system h[n]

Noise –We will use zero mean AWGN Additive White Gaussian Noise –Add an independent Gaussian random variable to each sample passed through the channel

AWGN noisePower = 2; % variance of Gaussian random variable result = signalFromChannel + sqrt(noisePower) * randn(rows, cols); >> randn(2,3) ans = y[n] = h[n] * x[n] + noise[n]

[ ] After Channel and Noise

Receiver Equalization –Attempt to undo distortion of modulated signal (sine wave) due to channel and noise –We will try two equalizing filters Zero Forcing (ZF) Minimum Mean Square Error (MMSE)

Zero Forcing (ZF) Filter Just the inverse of the channel response If H(e j  ) is the response of the channel, then the ZF filter has response 1 / H(e j  ) Clearly if there were no noise, ZF filter would perfectly recover modulated signal But since ZF doesn’t take noise into account at all, it will perform very badly if noise is strong

MMSE Filter Takes noise into account Derived by minimizing the average error –We’ll just take it on faith If H(e j  ) is the response of the channel, then the MMSE filter has response

Detection –Examine equalized signal to determine whether a 1 or a 0 was sent over channel –Optimal detector is a thresholder

Threshold Detector Integrate (sum) the transmitted and equalized half-sine pulse If integral (sum) < 0, decide a 0 was sent Else decide a 1 was sent

Conversion to an Image –After receiving all block groups, use reshape() and permute() to rebuild the block DCT image

Conversion to an Image

Image Post-Processing –Use blkproc() to compute inverse block DCT –That’s it!

Things To Play With Noise Power –Increasing noise power will cause more distortion in received image ZF/MMSE Equalizers –Since MMSE handles noise, it should perform better than ZF Eye Diagrams –Coming up next Different Channels –Optional

Eye Diagrams Used to visualize how waveforms used to send (modulate) multiple bits of data can lead to detection errors The more “open” the eye, the lower the probability of error Consider modulated half-sine pulses for four subsequent transmitted bits

Modulated [ ]

[ ] After Channel and Noise

[ ] Eye Diagrams Before Channel After Channel