Phase demodulation using the Hilbert transform in the frequency domain

Similar documents
Phase demodulation using the Hilbert transform in the frequency domain

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Lecture 3 Complex Exponential Signals

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

Real and Complex Modulation

6.02 Practice Problems: Modulation & Demodulation

Lecture 3, Multirate Signal Processing

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser

Problem Set 1 (Solutions are due Mon )

Basic Signals and Systems

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

Alternative View of Frequency Modulation

Fourier and Wavelets

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

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

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

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Extraction of tacho information from a vibration signal for improved synchronous averaging

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

Laboratory Assignment 5 Amplitude Modulation

Laboratory Assignment 4. Fourier Sound Synthesis

Compensating for speed variation by order tracking with and without a tacho signal

Experiment 1 Introduction to MATLAB and Simulink

THE SINUSOIDAL WAVEFORM

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

Module 3 : Sampling and Reconstruction Problem Set 3

Digital Signal Processing Lecture 1 - Introduction

ECE 2713 Homework Matlab code:

Transforms and Frequency Filtering

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM)

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

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau

Optimum Bandpass Filter Bandwidth for a Rectangular Pulse

INDEX TO SERIES OF TUTORIALS TO WAVELET TRANSFORM BY ROBI POLIKAR THE ENGINEER'S ULTIMATE GUIDE TO WAVELET ANALYSIS ROBI POLIKAR

Math 1205 Trigonometry Review

The Fast Fourier Transform

ECE 201: Introduction to Signal Analysis

Lecture 7 Frequency Modulation

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

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

Complex Sounds. Reading: Yost Ch. 4

Theory of Telecommunications Networks

Determinationn and Analysis of Sidebands in FM Signals using Bessel Functionn

Bearing Accuracy against Hard Targets with SeaSonde DF Antennas

Fourier Signal Analysis

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Trigonometric Identities

Lab 1: First Order CT Systems, Blockdiagrams, Introduction

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

ELEC3242 Communications Engineering Laboratory Amplitude Modulation (AM)

Project I: Phase Tracking and Baud Timing Correction Systems

Data Acquisition Systems. Signal DAQ System The Answer?

Chapter 2. Signals and Spectra

(Refer Slide Time: 01:45)

Lab10: FM Spectra and VCO

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples.

Local Oscillator Phase Noise and its effect on Receiver Performance C. John Grebenkemper

ANALOGUE AND DIGITAL COMMUNICATION

Phasor. Phasor Diagram of a Sinusoidal Waveform

ELT Receiver Architectures and Signal Processing Fall Mandatory homework exercises

ELT COMMUNICATION THEORY

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

Communications II. Professor Kin K. Leung EEE Departments Imperial College London

Chapter 2 Simple Electro-Magnetic Circuits

Problem Set 8 #4 Solution

Frequency-Domain Sharing and Fourier Series

Kate Allstadt s final project for ESS522 June 10, The Hilbert transform is the convolution of the function f(t) with the kernel (- πt) - 1.


4.1 REPRESENTATION OF FM AND PM SIGNALS An angle-modulated signal generally can be written as

5.3-The Graphs of the Sine and Cosine Functions

Section 5.2 Graphs of the Sine and Cosine Functions

5.1 Graphing Sine and Cosine Functions.notebook. Chapter 5: Trigonometric Functions and Graphs

Figure 1: Block diagram of Digital signal processing

Relationships Occurring With Sinusoidal Points March 11, 2002 by Andrew Burnson

10. Introduction and Chapter Objectives

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

The Formula for Sinusoidal Signals

Topic 6. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

10. Phase Cycling and Pulsed Field Gradients Introduction to Phase Cycling - Quadrature images

Sound is the human ear s perceived effect of pressure changes in the ambient air. Sound can be modeled as a function of time.

ADC Clock Jitter Model, Part 1 Deterministic Jitter

Fourier Transform Analysis of Signals and Systems

Computer Networks. Practice Set I. Dr. Hussein Al-Bahadili

ECE 3793 Matlab Project 4

Discrete Fourier Transform

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Digital Image Processing COSC 6380/4393

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

(Refer Slide Time: 3:11)

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

DFT: Discrete Fourier Transform & Linear Signal Processing

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

Here are some of Matlab s complex number operators: conj Complex conjugate abs Magnitude. Angle (or phase) in radians

Charan Langton, Editor

APPENDIX T: Off Site Ambient Tests

Chapter 3, Part 4: Intro to the Trigonometric Functions

Transcription:

Phase demodulation using the Hilbert transform in the frequency domain Author: Gareth Forbes Created: 3/11/9 Revised: 7/1/1 Revision: 1 The general idea A phase modulated signal is a type of signal which contains information in the variation of its phase, an example of a phase modulated signal, in its simplest form, is a single sine wave modulated by another sine wave, such as: xt Acos t sin t (1) Evidently phase demodulation of a signal involves reconstructing a signal such that one can characterise how the modulated signal s phase changes with time. Phase demodulation is therefore based on this simple idea of setting out to measure how the phase of the signal varies with time. For the above simple phase modulated signal, a pragmatic approach might lead you to consider that the measurement of the phase as in fact being trivial by taking the inverse cosine of the time series x() t. This will though result in an erroneous solution. Without going into detail, which can be proven to oneself by an interested reader, the inversion of the trigonometric function in the time domain results in an erroneous solution essentially due to the ambiguity of the trigonometric function. For instance, the cosine trigonometric function is ambiguous in that the phase angles cannot be distinguished between being in the 1 st and 4 th quadrant on the unit circle or similarly between the 2 nd and 3 rd quadrants. However if we express the above example as a complex exponential, xt Ae j t sint then characterising the phase at any instant in time could be simply obtained by observing the angle between the real and imaginary value of the complex signal at that same instant in time. Thus expressing a real signal in a complex form, of which the real part is the original signal, is the aim of frequency domain Hilbert transform phase demodulation. This complex signal representation is often referred to as the analytic signal. Therefore it needs to be set about seeking how to change our real signal into its complex form. How to implement (the maths) By utilising Euler s formula, e j cos isin Gareth Forbes 1

the above simple example signal, equation (1), can be representing in its analytic form by adding the original signal with the sine of the instantaneous phase (the instantaneous phase being () t arg[ x()] t ) of the original signal multiplied by the imaginary unit i. So in order to construct the analytic signal we need to find a way of transforming a cosine into a sine. It so happens that the transform for changing cosine s to sine s and visa versa is called the Hilbert transform, being: H sin t cost H cos t sin t where H is the Hilbert transform operator. Nothing more needs to be discussed about the Hilbert transform itself, suffice to say that it is the technical name of the process to be used here. We will now show a convenient way of constructing the analytic signal for our example signal with a judicious use of the Fourier transform. If we first represent a cosine in its complex form: jt jt e e f t cost (2) 2 Also given that the Fourier transform of a signal is: 1 jt f f t e dt 2 Therefore the Fourier transform of (2) is: 2 f (3) where is the Dirac delta function. If we now set the negative frequencies of equation (3) above to zero, multiply by 2, then inverse Fourier transform we get a new function g t, where It is seen that g t j t e g t is the previously defined analytic signal of f t. So you can see, by taking a signal into the frequency domain by Fourier transformation, setting negative frequency s to zero and doubling all positive frequency s then we have managed to add a real signal with the complex multiplied Hilbert transform of the same signal giving the so called analytic signal. It will now be shown, with application, how to implement this practically to phase demodulate a signal. How to implement (matlab example) (All steps can be cut and pasted into matlab s desktop window) Create a modulated signal in the same form as in equation (1) A = 1; %magnitude tp = 2^12; %number of time steps omega1 = 24; %carrier freq omega2 = 1; %modulation freq Gareth Forbes 2

gamma = pi/7; %phase offset beta = 5; %modulation amplitude t = :2*pi/tp:2*pi*(1-1/tp); %time vector x = A*cos(omega1*t+gamma+beta*sin(omega2*t)); %phase modulated signal plot(t(1:round(length(x)/omega2)),x(1:round(length (x)/omega2))) %plot modulated signal xlim([ t(round(length(x)/omega2))]) xlabel('time (s)') ylabel('magnitude') 1.8.6.4 magnitude.2.2.4.6.8 1.1.2.3.4.5.6 time (s) Figure 1. Time series of equation (1). Note that the phase modulation is not readily visible Transform the signal into the frequency domain ff = fft(x); %fourier tranform of time signal ax = linspace(-tp/pi/4,(tp-2)/pi/4,tp); %x axis dbf = 2*log1((abs(ff)/length(ff)*2+1E-12)/1E- 12); %change spectrum into db s dbf = fftshift(dbf); %shift spectrum for display plot(ax,dbf); %plot modulated signal spectrum xlim([-tp/pi/4 tp/pi/4]) ylim([ 1.2*max(dbf)]) xlabel('') ylabel('magnitude db rel. 1 ^{-12}') Gareth Forbes 3

2 magnitude db rel. 1 12 3 3 Figure 2 Spectrum of phase modulated signal as in equation (1) Set negative frequencies to zero, and double all positive frequencies (remember not to double the zero frequency) and inverse transform back to the time domain to create the analytic signal gf = ff; %create dummy variable gf(2:end) = 2*ff(2:end); %double positive freq s gf(end/2+1:end) = ; %set negative freq s to zero g = ifft(gf); %transform back to time domain dbg = 2*log1((abs(gf)/length(gf)*2+1E-12)/1E- 12); %change analytic spectrum in db s dbg = fftshift(dbg); %shift spectrum for display plot(ax,dbg); xlim([-tp/pi/4 tp/pi/4]) ylim([ 1.2*max(dbg)]) xlabel('') ylabel('magnitude db rel. 1 ^{-12}') (Note the analytic signal can be created in one step with the use of the matlab command hilbert ) Gareth Forbes 4

2 magnitude db rel. 1 12 3 3 Figure 3 One sided spectrum, or spectrum of the so called analytic signal Now calculate the instantaneous angle of the analytic signal and the unwrapped instantaneous phase of the original signal (as the matlab command angle only gives a value between :2pi, use the unwrap command to give the non-bound limited phase) pha = angle(g); %instantaneous phase of analytic %signal phau = unwrap(pha); % unwrap phase, it can be seen the instantaneous phase increases linearly with time due to t, the linear offset t needs to be subtracted from the instantaneous phase to obtain the modulation term sin t. As the instantaneous phase is given by t sin t If the carrier frequency is known this can be done by multiplying the carrier frequency by the inverse of the sampling frequency and subtracting from the unwrapped instantaneous phase, or if the carrier frequency is unknown then the linear fit of the unwrapped phase will give the estimate of t. This method is used here. p = polyfit(t,phau,1); %linear fit to unwrapped %phase p(2) = phau(1); omega1t = polyval(p,t); phaus = phau - omega1t; %subtract linear offset Now observe the spectrum of the modulating signal mf = fft(phaus); %spectrum of phase demodulated %signal dbmf = 2*log1((abs(mf)/length(mf)*2+1E-12)/1E- 12); %change spectrum to db s dbmf = fftshift(dbmf); %shift spectrum for display plot(ax,dbmf); xlim([ 1*omega2/2/pi]) ylim([min(dbmf) 1.2*max(dbmf)]) Gareth Forbes 5

xlabel('') ylabel('magnitude db rel. 1 ^{-12}') 28 26 magnitude db rel. 1 12 24 22 18 16 5 1 15 Figure 4 Spectrum of the phase modulating signal with linear fit of carrier frequency The mass line can be seen to be due to the linear fit not being able to exactly match the linear phase increase. If the actual linear phase is used then the mass line can be seen to be removed: phaus2 = phau - omega1*t; %removal of linear phase %increase if carrier freq is known mf2 = fft(phaus2); dbmf2 = 2*log1((abs(mf2)/length(mf2)*2+1E- 12)/1E-12); dbmf2 = fftshift(dbmf2); plot(ax,dbmf2); xlim([ 1*omega2/2/pi]) ylim([min(dbmf2) 1.2*max(dbmf2)]) xlabel('') ylabel('magnitude db rel. 1 ^{-12}') Gareth Forbes 6

2 magnitude db rel. 1 12 5 1 15 Figure 5 Spectrum of the phase modulating signal using known carrier frequency If we now observe the phase and amplitude of the modulation signal, they are found to be very close to the actual values gammae1 = abs(mf(1))/length(mf); betae1 = abs(mf(omega2+1))/length(mf)*2; gammae2 = abs(mf2(1))/length(mf2); phie1 = angle(mf(omega2+1))+pi/2; betae2 = abs(mf2(omega2+1))/length(mf2)*2; phie2 = angle(mf2(omega2+1))+pi/2; Table 1 Actual and estimated signal parameters after demodulation Actual Linear fit of carrier freq. Known carrier freq. 5 4.9696 5.4488.4773.4488 Bandwidth considerations Some considerations on the bandwidth of both the modulating signal and the carrier frequency relationship will now be discussed. Three general rules of thumb will be given for bandwidth s which will commonly result in a phase modulated signal which can be demodulated with conventional techniques. Despite the discussion of the various bandwidth considerations that will be developed below, first and foremost the major requirement for accurate demodulation is the separation of the negative and positive frequency sidebands in the signals spectrum. This criteria is the application of the initial condition of Bedrosian s Theorem [1]. This theorem states in its most succinct form, when applied to a phase modulated signal, that the respective frequency domains of the carrier and modulating functions are non-intersecting and that the frequency of the carrier is higher than the modulating frequency for the general solution of the Hilbert transform to hold [2]. Gareth Forbes 7

Whether this separation is present is often evident from simply viewing the spectrum, as can be seen in Figure 2 where the positive and negative frequency sideband regions are clearly separated. However when this is not evident from simply viewing the spectrum some rules of thumb which can be applied to help achieve accurate demodulation will be discussed. Fundamentally, for conventional demodulation, the maximum modulating frequency must be at least less than the carrier frequency, however this constraint alone does not provide a signal which is able to be accurately demodulated as only one set of sidebands may only be able to be used in the demodulation. We can in investigate this limitation by firstly expressing a phase modulated signal as its expanded Bessel series. xt Acos t sin t A J cos t nt n n As it can be seen, the spectrum of a modulated signal will have an infinite set of discrete frequencies located at the carrier frequency plus and minus the modulating frequency. Looking at the spectrum it will have components at n. When it is seen that there will be a frequency which is wrapped around zero by the second term in the series, i.e. the second sideband, this is illustrated in Figure 6 (left). 3 2 positive freq s negative freq s 3 2 positive freq s negative freq s magnitude db rel. 1 12 magnitude db rel. 1 12 8 6 4 2 2 4 6 8 8 6 4 2 2 4 6 8 Figure 6 (left) 1, 1, 1. (right) 2, 1, 1 This limitation can be discussed with the introduction of a term for the ratio of carrier to modulation frequency being: R It can be seen that first set of sidebands is corrupted by this frequency wrapping and that the sidebands equal or greater than the ratio R will be completely corrupted by the frequency wrapping, this is shown in Figure 6, for R 1 and R 2 respectively. In general however, a ratio of R 4 is needed in order to obtain enough significant sidebands, which are not appreciably corrupted from frequencies wrapping around zero, for accurate demodulation. If an extreme case of carrier to modulating frequency ratio, of R = 1/6 is observed as in Figure 7, then it can be seen that the entire spectrum is corrupted by the negative frequencies, and therefore demodulation of a signal such as this is not able to be achieved with this form of demodulation, and can not be accomplished with any type of conventional demodulation. Some signals with Gareth Forbes 8

specific characteristics can however be demodulated that violate these assumptions, with the use of unconventional methods, one example of this can be found in Ref. [3]. These limitations and indeed the whole phase demodulation theory can be applied to a modulating signal which is broadband in nature. In that case these bandwidth limitations apply to the highest frequency in the modulating signal. 2 positive freq s negative freq s magnitude db rel. 1 12 Figure 7 1, 6, 5 The value of R such that the signal can be demodulated accurately is actually also a function of the modulation amplitude. For various modulation amplitude values, the estimate of the modulation amplitude is plotted for an increasing number of sidebands used in the demodulation. For instance you can see that for 8, 9 sets of side bands are needed for a less than 1% error in the amplitude estimate. For this number of sidebands to be available for use in the demodulation without wrapping around the zero frequency, a ratio of R needs to be greater than 9. If this condition is not adhered to then frequency wrapping can also occur as can be seen in Figure 9 where 3 and R 24. Two good rules of thumb that can be derived from these results, that should be adhered to for accurate demodulation are; Firstly RULE OF THUMB 1: R 4 Secondly the modulation amplitude should be limited by: RULE OF THUMB 2: R This now brings up the question of how many sidebands should be included to obtain an accurate demodulation without undue computation cost? The number required for any given degree of accuracy can be obtained from observation of Figure 8 however a general criteria which is often used is only including sidebands up to when any higher Gareth Forbes 9

sidebands are less than times smaller than the highest amplitude sideband. With the minimum lower limit on the number of sidebands included being 3 pairs. So the last rule of thumb for demodulation is that the number of sidebands that should be included be greater than 3 pairs of sidebands for a modulation amplitude of less than 2. RULE OF THUMB 3: If 2 number of sidebands used in demodulation should be no less than 3 pairs. 1 modulation amplitude 9 8 7 6 5 4 3 2 1 β = 2 β = 4 β = 6 β = 8 β = 1 2 4 6 8 1 12 number of sideband pairs Figure 8 Estimates of modulation amplitude with increasing number of sidebands used in the demodulation for different modulation amplitudes as shown Lastly filtering should generally be done whenever the full bandwidth is not being used for demodulation, which is normally the case. The signal should be band-pass filtered around the carrier and sidebands, that are to be used in the demodulation, to avoid distortion from out of band frequencies. For example it is shown in Figure 1 the band-pass filtered spectrum for 2, and using 4 pairs of sidebands for demodulation, which was stated earlier as being sufficient for a modulation amplitude of 2. Gareth Forbes 1

2 positive freq s negative freq s magnitude db rel. 1 12 Figure 9 Wrapping due to a large modulation amplitude. 24, 1, 3 2 2 magnitude db rel. 1 12 magnitude db rel. 1 12 Figure 1 (left) Spectrum and overlaid band-pass filter. (right) Band-pass filtered spectrum [1] Bedrosian, E.A., A product theorem for Hilbert Transforms. Proceedings of IEEE, 1963. 51(5): p. 868-869. [2] Cerejeiras, P., Q. Chen, and U. Kähler, A necessary and sufficient condition for a Bedrosian identity. Mathematical Methods in the Applied Sciences, 9. [3] Forbes, G.L. and R.B. Randall, Simulation of Gas Turbine blade vibration measurement from unsteady casing wall pressure, in Acoustics 9: Research to Consulting. 9, Australian Acoustical Society: Adelaide. Gareth Forbes 11