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