Return to Video

4.8 - Sinusoidal modulation

  • 0:01 - 0:05
    We have seen how to calculate spectras of signals, of sequences.
  • 0:05 - 0:09
    Now, once, you have the spectrum and it is not a wide-band spectrum,
  • 0:09 - 0:14
    but it is mostly around a certain frequency, we can specify types of signals.
  • 0:14 - 0:17
    For example, if most of the energy of a signal is around the origin,
  • 0:17 - 0:19
    we call it a lowpass signal.
  • 0:19 - 0:25
    If it has the energy concentrated somewhere else, we call it a bandpass signal.
  • 0:25 - 0:30
    And if its energy is around -π or +π frequency, that is called a highpass signal.
  • 0:31 - 0:35
    Now, we're going to see a modulation theorem for the Fourier Transform,
  • 0:35 - 0:37
    which allows to transform a signal,
  • 0:37 - 0:42
    let's say from low-pass into a band-pass signal, or to demodulate a signal
  • 0:42 - 0:44
    which is from a high frequency into a low frequency.
  • 0:44 - 0:51
    This is obtained simply by multiplying by
    cosine of the adequate frequency.
  • 0:51 - 0:55
    Once we have the modulation theorem, we can do a very practical application
  • 0:55 - 0:58
    which is actually tuning a guitar.
  • 0:58 - 1:04
    So tuning a particular string to another string or to a reference sinusoid,
  • 1:04 - 1:06
    by using the modulation theorem.
  • 1:06 - 1:10
    Maybe you've used this trick or you've heard musicians use it on stage.
  • 1:10 - 1:14
    Now you'll see how a Fourier modulation
    theorem is actually behind it.
  • 1:16 - 1:20
    Module 4.8: Sinusoidal Modulation.
  • 1:22 - 1:24
    We are going to look at different types of signals,
  • 1:24 - 1:27
    namely lowpass, highpass and bandpass signals.
  • 1:28 - 1:32
    From there, we move to sinusoidal modulation which is a way to shift a signal,
  • 1:32 - 1:35
    for example lowpass signal, to become a bandpass signal.
  • 1:35 - 1:40
    Using these tools, we are going to look at a very practical application
  • 1:40 - 1:42
    which is, namely, tuning of a guitar.
  • 1:44 - 1:47
    There are three broad categories of signals,
  • 1:47 - 1:51
    depending on where the spectral energy actually is mostly concentrated.
  • 1:51 - 1:55
    The easiest one and most natural one is lowpass signals,
  • 1:55 - 1:57
    sometimes called baseband signals.
  • 1:57 - 1:59
    Then we have high-pass signals,
  • 1:59 - 2:04
    where the frequency content is mostly around high frequencies,
  • 2:04 - 2:06
    and in between, you have band-pass signals.
  • 2:06 - 2:11
    Now, there will be a difference between discrete time and continuous time signals,
  • 2:11 - 2:16
    as we shall see, but these basic categories are present in both cases.
  • 2:18 - 2:20
    So let's look at a lowpass spectrum.
  • 2:20 - 2:26
    As you can see, the energy is mostly concentrated around the origin, around 0,
  • 2:26 - 2:28
    and there is no energy outside.
  • 2:30 - 2:33
    This is now highpass signal.
  • 2:33 - 2:38
    The energy is around π or -π and there is no energy around the origin.
  • 2:40 - 2:42
    Finally, the band-pass signal.
  • 2:42 - 2:48
    In this case, it's concentrated around π/2 at -π/2 and π/2.
  • 2:48 - 2:50
    Since this is an example of a real spectrum,
  • 2:50 - 2:55
    it has this symmetry that we have seen in the properties of the DTFT.
  • 2:57 - 3:00
    Consider now sinusoidal modulation.
  • 3:00 - 3:07
    This is obtained by taking a signal x[n] and multiplying it by a cosine of ωc times n.
  • 3:07 - 3:12
    What will this produce on the spectrum when we know x [n],
  • 3:12 - 3:15
    and its DTFT, X of e to the jω?
  • 3:15 - 3:24
    So it is the DTFT of x[n], multiplied by a cosine of ωc times n.
  • 3:24 - 3:29
    So that's the DTFT of using Euler's formula, as usual of x of n
  • 3:29 - 3:35
    multiplied by both e to the jωcn and e to the -jωcn.
  • 3:36 - 3:43
    And this simply creates a double spectrum, namely it's equal to 1/2 X of e to the jω
  • 3:43 - 3:48
    shifted to ωc and shifted to -ωc.
  • 3:48 - 3:53
    So usually, we take x[n] as a baseband and ωc is called the carrier frequency.
  • 3:53 - 3:57
    Now, to get an intuition for this formula, think of the following case.
  • 3:57 - 4:03
    Think of x[n] being the constant, so we simply have the DTFT of cosine ωcn,
  • 4:03 - 4:09
    which of course has these two peaks at ωc and -ωc,
  • 4:09 - 4:12
    as we know from the DTFT of a cosine function.
  • 4:12 - 4:17
    So this gives the intuition: so if x[n] is a very, very narrow band lowpass signal.
  • 4:17 - 4:20
    It looks a little bit like a constant and then, through modulation,
  • 4:20 - 4:25
    it will be moved to these two peaks at ωc and -ωc.
  • 4:28 - 4:29
    Let's do this pictorially.
  • 4:29 - 4:33
    So we start with a spectrum: here, t's a triangle or a spectrum around the origin.
  • 4:33 - 4:37
    We move it to ωc, multiply it by 1/2.
  • 4:37 - 4:41
    That's the first green spectrum, then we move it to -ωc.
  • 4:41 - 4:47
    It's a blue spectrum also multiplied by 1/2, and this is the result,
  • 4:47 - 4:49
    the red spectrum now after modulation.
  • 4:49 - 4:55
    So the central peak has been moved into two half-as-big peaks at -ωc and ωc.
  • 4:57 - 5:05
    We know that spectrum is 2π periodic, so let's show a few periods here from -4π to +4π shifted to ωc
  • 5:05 - 5:12
    (green spectrum), shifted to -ωc (blue spectrum) and the resulting red spectrum.
  • 5:14 - 5:16
    Now, I want us to be careful
  • 5:16 - 5:20
    if the modulation frequency grows beyond a certain point
  • 5:20 - 5:23
    and we're going to demonstrate this again pictorially.
  • 5:23 - 5:28
    So here, ωc is very close to π, the maximum frequency,
  • 5:28 - 5:31
    close to -π, the blue spectrum.
  • 5:31 - 5:39
    And we see now that we have a funny looking spectrum around + or - π and + or - 3π.
  • 5:39 - 5:43
    This is not exactly what we had expected, so if we blow it up,
  • 5:43 - 5:46
    we can see that we don't have the triangle spectrum anymore,
  • 5:46 - 5:51
    we have a piece of the triangles and something funny around -π and π.
  • 5:53 - 5:58
    Let us look at some applications of what we have just learned about signal modulation.
  • 5:58 - 6:02
    So, for example, voice and music are typically lowpass signals.
  • 6:02 - 6:06
    They don't have infinitely high frequencies, because anyway,
  • 6:06 - 6:09
    they wouldn't be heard by the human hearing system.
  • 6:09 - 6:12
    Radio channels, on the other hand, are bandpass signals,
  • 6:12 - 6:14
    because we need to modulate them high up,
  • 6:14 - 6:19
    otherwise, there is too much interference or too much loss in transmission.
  • 6:19 - 6:24
    Modulation is the process of bringing a baseband signal, for example, a voice signal,
  • 6:24 - 6:28
    into the transmission band for radio transmission.
  • 6:28 - 6:32
    And demodulation is the inverse or the dual of modulation
  • 6:32 - 6:37
    and it will bring back the signal from a bandpass down to the baseband.
  • 6:39 - 6:42
    So let us look at this demodulation process.
  • 6:42 - 6:47
    It is simply done by multiplying the received signal by the same carrier again.
  • 6:47 - 6:52
    So we have y[n] is x[n] times cosine of ωcn.
  • 6:52 - 6:56
    Its spectrum, we have seen before -- Y to the jω --
  • 6:56 - 7:02
    is a combination of the two spectras shifted to ωc and -ωc.
  • 7:02 - 7:09
    The DTFT of y[n] multiplied by 2 cosine of ωcn,
  • 7:09 - 7:17
    well, it's going to be the combination of Y shifted to ωc and to -ωc.
  • 7:17 - 7:21
    Then, we replace the formula we just had before, so we have four terms.
  • 7:21 - 7:26
    One shifted by 2ωc, another one, by -2ωc,
  • 7:26 - 7:29
    and two terms that are actually at the origin.
  • 7:29 - 7:34
    And so, we have indeed capital X e to the jω on plus 1/2
  • 7:34 - 7:38
    and two modulated versions at 2ωc and -2ωc.
  • 7:39 - 7:42
    Let's do this pictorially.
  • 7:42 - 7:45
    So the DTFT of x[n] is shown here.
  • 7:45 - 7:48
    So it's a spectr-- triangle spectrum around the origin.
  • 7:49 - 7:55
    Then its modulated version has two peaks at -ωc and +ωc.
  • 7:55 - 8:01
    Then y[n] multiplied by cos ωcn has two shifted version,
  • 8:01 - 8:08
    one to the right by ωc, it's the green one, one to the left by ωc is the blue one.
  • 8:08 - 8:13
    And the total is the sum of these two, which has a peak around the origin,
  • 8:13 - 8:19
    which is of height 2 and the 2 other peaks, which are around π.
  • 8:21 - 8:26
    We have now the picture of the DTFT of the demodulated version.
  • 8:26 - 8:29
    It looks like the original spectrum around the origin,
  • 8:29 - 8:34
    but it has these two peaks closer to -π and π,
  • 8:34 - 8:36
    which were not present in the original signal.
  • 8:38 - 8:40
    So, we have the baseband,
  • 8:40 - 8:42
    but we have these two spurious high-frequency components,
  • 8:42 - 8:46
    and we will have to learn how to actually get rid of them,
  • 8:46 - 8:49
    and this will be the topic of the next module.
  • 8:51 - 8:53
    Finally,we're going to see a real application,
  • 8:53 - 8:57
    a really useful application, that is, it is tuning your guitar.
  • 8:57 - 9:03
    The abstraction of the problem is that you have a reference sinusoid at some frequency ω naught,
  • 9:03 - 9:07
    You have a tunable sinusoid of frequency ω.
  • 9:07 - 9:12
    And we would like to make ω and ω0 as close as possible,
  • 9:12 - 9:16
    actually equal and this, only by listening to it.
  • 9:16 - 9:17
    And what we are going to hear
  • 9:17 - 9:21
    is a beating between these two frequencies when they are close enough.
  • 9:21 - 9:26
    And then by tuning, we can bring this beating to essentially frequency zero,
  • 9:26 - 9:29
    at what point, ω is equal to ω naught
  • 9:29 - 9:34
    and we have tuned our guitar string with respect to a reference frequency.
  • 9:36 - 9:38
    So how are we going to go about this?
  • 9:38 - 9:41
    Well, first we bring ω close to ω nought
  • 9:41 - 9:45
    That's sort of easy if you have a minimum of musical ear.
  • 9:45 - 9:50
    When these two frequencies are close, we play both sinusoids together,
  • 9:50 - 9:53
    then we have to remember trigonometry,
  • 9:53 - 9:58
    and we write x[n], which is a sum of cos ω0n plus cos of ωn,
  • 9:58 - 10:04
    in terms of a sum and a difference of these two
    frequencies,
  • 10:04 - 10:09
    which finally can be written approximately as 2 times the cos of the difference,
  • 10:09 - 10:15
    Δ of ω times n and the cosine of the base frequency ω naught.
  • 10:17 - 10:21
    From this formula we see there are two components: there is the error signal
  • 10:21 - 10:28
    -- the cosine of Δωn -- and there is a modulation signal -- the cosign at ω0.
  • 10:28 - 10:32
    When ω is close to ω0, the error signal is very low frequency,
  • 10:32 - 10:35
    so we cannot really hear it, because it's such a low frequency.
  • 10:35 - 10:40
    So the modulation will bring it up to the hearing range
  • 10:40 - 10:44
    and we are going to actually hear it as an oscillation of the carrier frequency.
  • 10:44 - 10:47
    And we're going to see this pictorially in just a moment.
  • 10:48 - 10:51
    Let's look at the pictorial demonstration here.
  • 10:51 - 10:57
    So we start ω0 is 2π times 0.2.
  • 10:57 - 11:01
    ω is 2π times 0.22, the difference,
  • 11:01 - 11:08
    which is actually half of the difference between the 2 is 2π times 0.01.
  • 11:08 - 11:13
    We see now, interestingly, we have the carrier frequency, which is red curve
  • 11:13 - 11:18
    modulated by the difference, by cosine of Δ of ω.
  • 11:18 - 11:26
    So we see this, the beeping in blue overlaid to the red curve which is the modulation.
  • 11:26 - 11:33
    We can change the frequency ω to 0.21 times 2πi.
  • 11:33 - 11:38
    The difference now is 0.005, the beating is slower.
  • 11:38 - 11:44
    We pick ω is equal to 2π times 0.205, the beating is even slower.
  • 11:44 - 11:49
    And here, we take an example where ω is very close to ω0
  • 11:49 - 11:52
    and the beating is extremely slow.
  • 11:52 - 11:56
    And we almost see only the modulating frequency ω0
  • 11:56 - 12:03
    and the very slow variation due to the beating by cosine of Δ of ω.
  • 12:03 - 12:07
    It's time to see a video demonstration how to tune a guitar,
  • 12:07 - 12:09
    using this very simple principle.
  • 12:09 - 12:12
    You probably have seen musicians doing it on stage,
  • 12:12 - 12:15
    now you understand the math behind it.
  • 12:17 - 12:23
    Okay, after all these maths, let's try to do something useful like tuning an electric bass.
  • 12:23 - 12:28
    An electric bass has an E string, [music] which is a frequency of 41.2 hertz,
  • 12:28 - 12:32
    an A string, [music] which is a frequency of 55 hertz.
  • 12:32 - 12:36
    To use the result we have just seen, we want to find two frequencies
  • 12:36 - 12:38
    that we want to make equal.
  • 12:38 - 12:41
    As long as they are not, there will be a beating that we can adjust,
  • 12:41 - 12:42
    we are going to hear this in just a moment.
  • 12:42 - 12:49
    So the first harmonic of the E string here is at [music] 83.4 hertz.
  • 12:50 - 12:53
    The third harmonic is at 164.8.
  • 12:53 - 13:01
    For the A string, the first harmonic is at 110 and the second harmonic is at 165.
  • 13:01 - 13:06
    And we're going to use these two harmonics to do the tuning
  • 13:06 - 13:09
    and you can hear when they're out of tune.
  • 13:11 - 13:18
    There is a beating and you should -- as you get them closer and closer,
  • 13:18 - 13:23
    the beating slows until it's actually zero beating.
  • 13:23 - 13:32
    And then the two frequencies are similar and then we can start playing something like [guitar strumming]
  • 13:32 - 13:33
    or something else.
Title:
4.8 - Sinusoidal modulation
Description:

See "Chapter 4 Fourier Analysis" in "Signal Processing for Communications" by Paolo Prandoni and Martin Vetterli, available from http://www.sp4comm.org/ , and the slides for the entire module 4 of the Digital Signal Processing Coursera course, in https://spark-public.s3.amazonaws.com/dsp/slides/module4-0.pdf .

And if you are registered for this Coursera course, see https://class.coursera.org/dsp-001/wiki/view?page=week3

more » « less
Video Language:
English

English subtitles

Incomplete

Revisions