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

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

Swedish College of Engineering and Technology Rahim Yar Khan

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

Lab 3.0. Pulse Shaping and Rayleigh Channel. Faculty of Information Engineering & Technology. The Communications Department

Wireless Communication

Project I: Phase Tracking and Baud Timing Correction Systems

Objectives. Presentation Outline. Digital Modulation Revision

ECE5713 : Advanced Digital Communications

Principles of Communications ECS 332

Spread spectrum. Outline : 1. Baseband 2. DS/BPSK Modulation 3. CDM(A) system 4. Multi-path 5. Exercices. Exercise session 7 : Spread spectrum 1

Amplitude Frequency Phase

Performance Analysis of Ofdm Transceiver using Gmsk Modulation Technique

QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

Exercises for chapter 2

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

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

CALIFORNIA STATE UNIVERSITY, NORTHRIDGE FADING CHANNEL CHARACTERIZATION AND MODELING

I-Q transmission. Lecture 17

EE3723 : Digital Communications

Laboratory Assignment 5 Amplitude Modulation

Assignment 6: Solution to MATLAB code for BER generation of QPSK system over AWGN channel.

Physical Layer: Modulation, FEC. Wireless Networks: Guevara Noubir. S2001, COM3525 Wireless Networks Lecture 3, 1

Outline. EECS 3213 Fall Sebastian Magierowski York University. Review Passband Modulation. Constellations ASK, FSK, PSK.

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

CSE4214 Digital Communications. Bandpass Modulation and Demodulation/Detection. Bandpass Modulation. Page 1

Thus there are three basic modulation techniques: 1) AMPLITUDE SHIFT KEYING 2) FREQUENCY SHIFT KEYING 3) PHASE SHIFT KEYING

Lecture 10. Digital Modulation

Simulation Study and Performance Comparison of OFDM System with QPSK and BPSK

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

Integration of System Design and Standard Development in Digital Communication Education

Chapter 4. Part 2(a) Digital Modulation Techniques

Error Probability of Different Modulation Schemes for OFDM based WLAN standard IEEE a

Project 2 - Speech Detection with FIR Filters

DIGITAL COMMUNICATIONS SYSTEMS. MSc in Electronic Technologies and Communications

Electrical & Computer Engineering Technology

PROJECT 5: DESIGNING A VOICE MODEM. Instructor: Amir Asif

Performance of Wideband Mobile Channel with Perfect Synchronism BPSK vs QPSK DS-CDMA

Digital Modulation Schemes

Wireless Communication Fading Modulation

EC 6501 DIGITAL COMMUNICATION UNIT - IV PART A

EE 5410 Signal Processing

Problem Sheet 1 Probability, random processes, and noise

Theory of Telecommunications Networks

Mobile & Wireless Networking. Lecture 2: Wireless Transmission (2/2)

EXAMINATION FOR THE DEGREE OF B.E. Semester 1 June COMMUNICATIONS IV (ELEC ENG 4035)

DT Filters 2/19. Atousa Hajshirmohammadi, SFU

DATE: June 14, 2007 TO: FROM: SUBJECT:

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

Basic Signals and Systems

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

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

Modulation (7): Constellation Diagrams

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

Chapter 7 Multiple Division Techniques for Traffic Channels

Hardware/Software Co-Simulation of BPSK Modulator and Demodulator using Xilinx System Generator

Performance Analysis of Rake Receivers in IR UWB System

BER Comparison of DCT-based OFDM and FFT-based OFDM using BPSK Modulation over AWGN and Multipath Rayleigh Fading Channel

Detection and Estimation of Signals in Noise. Dr. Robert Schober Department of Electrical and Computer Engineering University of British Columbia

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

Comparative Analysis of the BER Performance of WCDMA Using Different Spreading Code Generator

MSK has three important properties. However, the PSD of the MSK only drops by 10log 10 9 = 9.54 db below its midband value at ft b = 0.

Chapter 6 Passband Data Transmission

Chapter 2: Signal Representation

ECE 630: Statistical Communication Theory

arxiv: v1 [cs.ni] 28 Aug 2015

ECEn 665: Antennas and Propagation for Wireless Communications 131. s(t) = A c [1 + αm(t)] cos (ω c t) (9.27)

Wireless Transmission & Media Access

Comparison of ML and SC for ICI reduction in OFDM system

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

Performance Analysis Of OFDM Using 4 PSK, 8 PSK And 16 PSK

A NOVEL SCHEME FOR OPTICAL MILLIMETER WAVE GENERATION USING MZM

Channel & Modulation: Basics

TCM-coded OFDM assisted by ANN in Wireless Channels

Implementation and Comparative analysis of Orthogonal Frequency Division Multiplexing (OFDM) Signaling Rashmi Choudhary

Synchronization of Hamming Codes

Communication Channels

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

SYSTEM ARCHITECTURE ADVANCED SYSTEM ARCHITECTURE LUO Chapter18.1 and Introduction to OFDM

Revision of Wireless Channel

Laboratory 5: Spread Spectrum Communications

Brief Introduction to Signals & Systems. Phani Chavali

About Homework. The rest parts of the course: focus on popular standards like GSM, WCDMA, etc.

SETTING UP A WIRELESS LINK USING ME1000 RF TRAINER KIT

Lakehead University. Department of Electrical Engineering

George Mason University ECE 201: Introduction to Signal Analysis

Chapter 3 Digital Transmission Fundamentals

Key words: OFDM, FDM, BPSK, QPSK.

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

Digital Modulators & Line Codes

Presentation Outline. Advisors: Dr. In Soo Ahn Dr. Thomas L. Stewart. Team Members: Luke Vercimak Karl Weyeneth. Karl. Luke

CHAPTER 2. Instructor: Mr. Abhijit Parmar Course: Mobile Computing and Wireless Communication ( )

Symbol Shaping for Barker Spread Wi-Fi Communications

Chapter 2: Wireless Transmission. Mobile Communications. Spread spectrum. Multiplexing. Modulation. Frequencies. Antenna. Signals

Objectives. Presentation Outline. Digital Modulation Lecture 03

SEN366 Computer Networks

Performance Evaluation of ½ Rate Convolution Coding with Different Modulation Techniques for DS-CDMA System over Rician Channel

1. INTRODUCTION II. SPREADING USING WALSH CODE. International Journal of Advanced Networking & Applications (IJANA) ISSN:

Reducing Intercarrier Interference in OFDM Systems by Partial Transmit Sequence and Selected Mapping

Digital Communication System

SPARSE CHANNEL ESTIMATION BY PILOT ALLOCATION IN MIMO-OFDM SYSTEMS

Transcription:

ECE 3500: Fundamentals of Signals and Systems (Fall 2014) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation Files necessary to complete this assignment: none Deliverables Due: Before your assigned lab session before Dec. 19th Introduction Modulation is an important component of communication systems. Modulation is the process of converting a baseband, low-frequency signal into a signal with high frequency components so that we can transfer information across a physical communication channel. We user modulation to transmit data over air, across outer-space, through wires, and in fiber optics. There are many types of modulation schemes. Each have a variety of advantages and disadvantages. In this lab, we fill focus on a digital communications scheme known as phase-shift keying (PSK) modulation. This is a standard scheme for wireless LAN IEEE 802.11 communications systems 1. Binary phase-shift keying (BPSK) is the simplest type of phase-shift keying modulation. To implement BPSK, we assume the message (the baseband signal) is binary, i.e., it contains only 1 or 1 values. A information bit at time t controls, or modulates, the phase of the carrier cos(ω c ). If the bit is 1, we transmit cos(ω c + 0). If the information bit is 1, we transmit cos(ω c + π). In this lab, we will simulate a binary phase-shift keying receiver system in MATLAB. In Part 1 and Part 2 of the lab, we will explore and simulate modulation/demodulation of the BPSK signal when our communication channel is ideal. In Part 3 of the lab, we will then study the effects of channel noise and other errors at the receiver. This lab assignment has three learning objectives: 1. Understand the binary phase-shift keying modulation and demodulation process 2. Simulate binary phase-shift keying modulation / demodulation in MATLAB 3. Explore the effects of realistic errors on binary phase-shift keying systems Deliverables This lab assignment has two deliverables: 1. One (1) lab report (see the Lab Report Guidelines on how to write it) 2. One (1) demonstration of your working BPSK simulation to the lab instructor Please submit a hard or electronic copy of deliverables to your lab instructor before Dec. 19th. 1 Sanjeev Kumar, BER Improvement of Wireless LAN IEEE 802.11 Standard Using Wavelet Packet Transforms, Journal of Communication Technology, vol. 3, no. 3, 2012. 1

Part 1: Design a BPSK transceiver BPSK Modulation: We begin with deriving BPSK signals as well as the modulation and demodulation process. We represent a sequence bits (each with value -1 or +1) as a discrete signal b[n] such that b[1] is the first bit transmitted, b[2] is the second bit transmitted, etc. We can convert these bits into a continuous-time representation by holding the value for a period of T seconds. Therefore, our continuous-time, baseband signal can be represented by b(t) = b[1], 0 t < T b[2], T t < 2T. b[n], (N 1)T t < NT This represents the continuous-time message that we want to transmit. From this information, we can define the BPSK modulated signal x(t) as x(t) = b(t) cos(ω c t + φ), (2) where ω c and φ represent the frequency and phase of the carrier, respectively. If φ = 0, the signal will have a phase of 0 when b(t) = 1 and a phase of π when b(t) = 1. To help understand how BPSK works, assume the Fourier transform of b(t) is B(ω) with a bandwidth ω B (i.e., has non-zero values for ω B ω ω B ). Determine the Fourier transform of x(t). (1) BPSK Demodulation: Now we discuss the demodulation process. In practice, a receiver will not have perfect knowledge of a carrier s frequency or phase. In this lab, we will assume that both the carrier frequency and phase are known. Although, in the last part of the lab, we will explore how errors in these assumed frequency and phase affect our results. When the frequency and phase are known, the demodulation process on x(t) is as follows: 1. Multiply x(t) with cos(ω c t + φ) such that x 1 (t) = x(t) cos(ω c t + φ) 2. Apply a low-pass filter h(t) to x 1 (t) to remove the higher frequency interference. The result, b(t) = x 1 (t) h(t), is an estimate of b(t). 3. Sample b(t) with a period of T to obtain an estimate of our message b[n]. Include in Lab Report Analytical Methods Section: Answer: Why is it necessary to hold each binary value for some period of time T? Include: Your derivation of the Fourier transform of x(t). Discuss: How / why does BPSK modulation work? Discuss: How / why does BPSK demodulation work? Answer: Why do we need to sample b(t)? 2

Part 2: Simulate a BPSK system in MATLAB Generate a bit sequence / message: For testing purposes, we will consider a random discrete sequence of bits with values of +1 or -1. This sequence represents some arbitrary message that we want to transmit with BPSK. To generate these bits, first use the MATLAB command >> c = randn(25,1); to generate a vector with 25 randomly chosen values ranging from to. The random numbers are taken form a normal (or Gaussian) distribution. Now develop a command or set of commands that will convert the vector c into vector b such that b[n] = { 1 ; c[n] 0 1 ; c[n] < 0. In the above expression, b[n] represents the value in vector b at index n and c[n] represents the value in vector c at index n. The resulting vector b should only contain +1 values and 1 values. Modulate your bit sequence: Although we have been discussing continuous-time modulation, we will simulate the system in discrete-time with MATLAB. For this simulation, assume 1. A bit duration of T = 0.001 s 2. A carrier frequency of f c = 100, 000 Hz 3. A carrier phase of φ = 0 radians 4. A sampling frequency of f s = 10 6 samples/s (sampling period of T s = 10 6 s/sample) Use these values to determine the number of samples per bit and total number of samples of your transmitted signals. Now develop a MATLAB function function [x, btilde] = BPSK(b,fc,phi,T,Ts) that generates the sampled values of the modulated signal x(t) given the sequence of bits b, the carrier frequency fc, the phase of the carrier phi, the bit duration T, and the sampling period Ts. The BPSK function has two outputs: x and btilde. The vector x represents the modulated, transmitted signal x(t). The vector btilde represents the continuous-time sequence of bits in b(t). Use the pwelch command in MATLAB to estimate the spectrum of btilde and x to make sure that you the modulation behaves as you derived in Part 1. 3

Demodulate your transmitted signal: In the previous subsection, we modulated our binary message. Now we will demodulate it. Write a MATLAB function function bhat = DBPSK(x,fc,phi,T,Ts) that processes the modulated BPSK signal x to recreate (or estimate) the baseband signal b(t). You will need to design the lowpass filter to complete the demodulation. To design this filter, use the MATLAB function h = fir1(n,wn). This command designs an N-th order lowpass filter h(t) with a cutoff frequency of Wn. Note that in MATLAB, a frequency of Wn = 1 corresponds to half the sampling frequency. Therefore, the parameter Wn should be selected with this oddity in mind. The number of coefficients N (i.e., the length of the filter s impulse response signal) will determine how steeply the magnitude response of the filter goes down in the stop band. Since we have not studied discrete-time filters, you should determine the parameter N by trial and error. Use the command freqz(h,1,1024,1/ts) to plot the magnitude and phase response of the filter your design. Once the filter is designed, use bhat = conv(x1,h, same ) to generate bhat from x1. The vectors x1 and bhat represent x 1 (t) and b(t), respectively, from Part 1. Again, use pwelch to make sure that bhat is as theory predicted. Estimate your message by sampling: Now implement a program in MATLAB that samples bhat with a period of T and estimate the value of each bit based on the sign of that sample. That is, if the sign is positive, the bit has a value of +1. If the sign is negative, the bit has a value of -1. Once you have made sure the transmitter and receiver are working as expected, you are ready to explore imperfections that are unavoidable in the real world. Include in Lab Report Experimental Design Section: Explain: What what type of signal(s)/data do you need to complete this simulation (analysis)? Explain: How did you generate your data? Include in Lab Report Results and Discussion Section: Include: One or two plots comparing btilde and bhat Answer: Are there differences between the plots of btilde and bhat? Why or why not? Answer: What did you choose for your filter parameters (order and cutoff frequency)? Why did you choose these? 4

Part 3: Study realistic conditions Channel noise: In real life, we transmit data across noisy channels or environments. We often model the noise as additive white Gaussian noise. This is a common model for background noise in electronics. An additive white Gaussian noise corrupted signal x(t) can be expressed as In MATLAB we can simulate the above with the command xr = x + sigma*randn(l,1) x r (t) = x(t) + η(t). (3) where L contains the number of samples in xr and x. The constant sigma is the standard deviation of the noise. Note that you may need to use randn(l,1) or randn(1,l) depending on whether xr and x are column vectors or row vectors, respectively. Develop a MATLAB program that repeats the modulation and demodulation process from Part 2, but with a few differences. Now use 100 bits and perform demodulation with the noisy received signal as described above. Vary sigma from 0 to 10 in steps of 0.1. For each value of sigma, compute the communication system s bit error rate (BER), defined by BER = Number of bits incorrectly estimated Total number of bits Plot the bit error rate (BER) as a function of sigma, the standard deviation.. (4) Carrier frequency error: Repeat the above analysis for when the carrier frequency fc of the demodulator (DBPSK) is different from the carrier frequency of the modulator (BPSK). Vary this difference from 0 Hz to 50 Hz in increments of 0.5 Hz. Plot the resulting bit error rate (BER) as a function of frequency difference. Phase error: Repeat the above analysis for when the carrier phase phi of the demodulator (DBPSK) is different from the carrier phase of the modulator (BPSK). Vary this difference from 0 radians to π radians in increments of π/100 radians. Plot the resulting bit error rate (BER) as a function of phase difference. Include in Lab Report Experimental Design Section: Explain: What what type of signal(s)/data do you need to complete this simulation (analysis)? Explain: How did you generate your data? Is this different from Part 2? How or how not? Explain: How did you modify your data to introduce each type of error? Include in Lab Report Analytical Methods Section: Answer: How did you compute the bit error rate? 5

Include in Lab Report Results and Discussion Section: Answer: In a practical system, why might we encounter noise? Answer: In a practical system, why might we encounter frequency error? Answer: In a practical system, why might we encounter phase error? Include: Your plot of the bit error rate (BER) versus noise standard deviation Answer: Why does the BER change with noise standard deviation as shown in the plot? Include: Your plot of the bit error rate (BER) versus carrier frequency error Answer: Why does the BER change with carrier frequency as shown in the plot? Include: Your plot of the bit error rate (BER) versus carrier phase error Answer: Why does the BER change with carrier phase as shown in the plot? 6