Messages in the Air

essay

Note

Originally posted November 15, 2020 to blog.aunyks.com. The original post contains interactive components that greatly enhance understanding.

In the last post, we covered the basics of complex signals and how they work in digital signal processing (DSP) systems. The next question is how do we demodulate these signals and find the messages in them? To answer that, we need to update our model of the incoming signal.

Previously, we used Euler’s formula as the basis for our model of complex signals. While this is great to keep in mind, it was only correct given a pure sinusoid as the incoming signal. In reality, we can’t make many assumptions about the signal, so modeling it as a simple sinusoid isn’t always accurate. We need a more abstract way to model more realistic signals.

Recall that  represented the in-phase, or , portion of our complex signal and  represented the quadrature, or , portion. Since we’re not sure that our and functions will be simple sinusoids like sine and cosine, we can use abstract functions like  and . This way, we arrive at a new, more abstract way to model any signal we’ll be receiving over the air.

Where  is the incoming signal,  is our imaginary unit, and  is some point in time.

How do we demodulate our signal with this formula? Well, to modulate a signal is to change one of its properties according to the message it encodes. So, to demodulate the signal we must be able to extract these properties from our new signal formula.

Remember the phasor from our last post and how it modeled our wave. We can use it to help calculate how we can get properties like amplitude, phase, and more using our formula. Finding these properties lets us demodulate the signal.

To help us better understand the math and visuals for these concepts, notice that our phasor is always making a triangle.

Here, , and  are sides of a triangle formed by our phasor.  is an angle.

We can use algebra and trigonometry to find certain values when given others, which will ultimately give us characteristics of our signal.

Amplitude

Where  is the amplitude of the signal at a point in time, or instantaneous amplitude.

The Pythagorean Theorem concludes that . With that in mind, we can get , the hypotenuse of our triangle above, with just , on the horizontal axis, and , on the vertical axis, by rearranging the equation into . Applying this formula to our signal function with  being on the horizontal axis and  being on the verical axis yields a formula that gives us the amplitude of the signal at a certain point in time.

Phase

Where  is the phase of the signal at a point in time, or instantaneous phase.

In our triangle above, we can get  from  and  using the inverse tangent function. That is, . Applying this formula to our signal function yields a formula that gives us the phase of the signal at a certain point in time.

Frequency

Where  is the frequency at a point in time.

Quite frankly, I’m not going to try and explain this formula. Just know that we can calculate the signal’s instantaneous frequency by calculating the instantaneous change in the signal’s phase1.

But why this way?

Using this I/Q model in our DSP system gives us a relatively easy way to process signals with low or negative frequencies. In my opinion, it also happens to make modeling signal properties easier and more robust, thus making demodulation easier.

To wrap up

I hope this made the concept of RF signal demodulation a bit easier to understand. If you have any questions or would like to offer ways that I can improve this post, feel free to contact me.

Footnotes

  1. As a matter of fact, the frequency function is the first derivative of the phase function.