RF Signals

From Advanced Projects Lab
Jump to: navigation, search

RF (short for Radio Frequency) signals are sinusoidal waves with frequencies in the MHz and GHz range.

While there are RF sources designed specifically for these frequencies, our good friend the Rigol Function Generator can produce frequencies in the lower end of the RF spectrum and should be sufficient for investigating RF signals. These were discussed in detail here. You should review their operation if needed, especially the section on performing Fourier Transforms, as they will be used extensively below.

For this module, you will need

  • Rigol DG1022 Function Generator (or similar)
  • Rigol DS1102E Oscilloscope (or similar)
  • Micro-circuits ZAD-1 RF mixer
  • A selection of BNC cables
  • A few coaxial-to-BNC adaptors
  • Thorlabs Variable Resistance Terminator


Measuring RF Power

Connect the output of channel 1 of the function generator through the terminator (set to 50ohm) to channel 1 of the oscilloscope.

  1. Set channel 1 of the function generator to create a 1V amplitude sine wave with a frequency of 4MHz.
  2. Set the horizontal and vertical scales of the scope to view the wave. Make sure the trigger for the scope is set to be on channel 1.
  3. Use the scope's measure function (or the scope's cursor) to get the amplitude of the wave. Is it what you expect? What is the amplitude if you remove the terminator? Does that make sense?
  4. Use the math menu to create a fourier transform of the signal. With the cursor, does the frequency the scope reads match what the setting from the scope? If it doesn't, why do you think that might be?

Termination and Impedance Matching

We discussed in the function generator and oscilloscope module the importance of impedance matching. To do this, we'll use a circulator (or, rather, a bi-directional coupler as a circulator). A circulator has three ports:, A, B and C. Signals that flow into port A is sent out of port B. Signals that flow into port B is sent out of port C. Signals that flow into port C are sent out of port A.

This is particularly useful for looking at impedance matching. As discussed in the function generator/oscilloscope module, if the impedances, measured in ohm, of two electrical elements signals that change in time can be reflected off one end and back towards the other end. If in between these two elements there is a circulator, the reflected signal will be sent to third port rather than going to the original source of the signal. Measuring the voltage on this third port lets us measure the signal that is reflected from one of the circuit elements.

  1. Attach the coupler as follows
    • The output of Channel 1 of the signal generator should be attached to the OUTPUT port of the coupler. This is port A of the circulator.
    • The INPUT port of the coupler should be attached directly to channel 1 of the oscilloscope. This is port B of the circulator.
    • The COUPLED port of the coupler should be attached, through a 50-ohm terminator, to channel 2 of the oscilloscope. This is port C of the circulator.
    • In this configuration, the signal from the function generator will flow through port A (output) to port B (input) and then to the oscilloscope's channel 1. Any of that signal that is reflected from channel 1 will flow into port B (input) to port C (coupled) and then to the oscilloscope channel 2.
    • Yes, it's weird that port A of the circulator is the input port of the coupler, but functioning as a circulator is not really the purpose of the coupler, which is nominally used to combine two signals (from the input and the coupled ports) into an output port. But, it can function as a circulator (or sometimes called a "reflectometer") so we'll use it as one.
  2. Good job! Now disconnect what you just connected. We're going to use a different setup first.
    • Connect the output of channel 1 of the function generator directly to channel 1 of the oscilloscope. Set the frequency of the function generator to create a 0.5V amplitude, 5Hz sine wave.
    • Set the oscilloscope to trigger off channel 1 in edge mode and set the trigger level to something value a little larger than 0V (but less than 0.5V, of course). Make sure the vertical axis of the scope will show the entirety of your wave and the horizontal axis should be at least 100ms/division.
    • In the trigger menu of the oscilloscope, change the sweep type to single - this will record a single (duh) trace of the oscilloscope when it is triggered and display just that one trace. The screen should erase any plot and the tun/stop button should turn green. If it red, press it and the screen should clear. The scope is now waiting for a trigger.
    • On the function generator, press the "burst" button. Use the blue buttons under the scope the set the mode to "Ncycle" (the first menu option, don't set it to gated), the number of cycles should be 1, the phase should be 0 and the delay should be 0s. Now press the button under "Trigger" and then the button under "Source". Change the source to "Manual" and stay in this menu. Pressing the button under "manual" again will create a pulse as you defined it above. Try it.
    • Did that work? Good. Trigger the function generator again. What happened with the oscilloscope? Pressing the red "RUN/STOP" button will clear the screen and allow you to trigger it again. Do this. Cool, huh?
  3. Now change the output of channel 1 to a 4MHz square wave. Change the horizontal scale of the oscilloscope so that it can show your wave (in burst mode, the frequency is really only setting the period of the wave as there isn't really a frequency as the wave won't repeat).
  4. NOW, attach the coupler as discussed above. Trigger the scope. Any signal on channel 2 is the signal that is reflected from the oscilloscope's channel 1 input. Weird, huh?
  5. Put the variable terminator in line with the input to channel 1 of the oscillosope. Repeat the triggering for various termination resistances.
    • Note how the height of the reflected signal and the height of the measured signal change with the termination resistance, specifically how does the measured signal voltage compare to the output voltage when you terminate with 50-ohm?
    • Why is a 50-ohm terminator often referred to as a 3dB?
    • How does the phase of the reflected wave compare to that of the original wave? For this, you may want to have the terimator's resistance high and use a sine wave.
    • How does this compare to reflections for light off a medium with a higher refractive index? How does it compare to reflections of light off a medium with a lower refractive index?
  6. Add another variable terminator to the input to channel 1 (it should have two connected together now). Set both terminators to 50ohm.
    • What is the total input impedance of the oscilloscope now?
    • How does this compare to the 50ohms impedance of the function generator?
    • What happened to the phase of the reflected wave? How does it compare to the original wave?
    • Does this agree with the your comparison to reflected light waves above? Complete the table below.
Light
(Refractive Index)
Electrical Signal
(Impedance)
Reflection off lower
index/impedance medium
Reflection off higher
index/impedance medium

Change in Phase after Reflection

Splitters

Splitters are fairly straight forward as they just split an RF signal into two outputs.

  1. Plug the output of channel 1 of the function generator into the S port of the splitter. Connect the two channels of the oscilloscope to outputs 1 and 2 of the splitter (make sure you match impedance appropriately).
  2. Set the output of channel 1 to 10Mhz and a 1V amplitude.
  3. What is the frequency of each wave on the oscilloscope? Does it agree with your 10MHz input? If it doesn't, why not?
  4. Estimate the amplitudes of the two waves on the oscilloscope. How doe they compare to the input amplitude from the function generator? Why do you think they are related this way?
  5. Estimate any phase difference between the two signals on the oscilloscope. How does that phase difference compare to the phase difference listed in the data sheet for the splitter?

You can also use splitters as combiner.

  1. Put a 3MHz, 1V amplitude sine wave into port 1 of the splitter.
  2. Put a 7MHz, 1V amplitude sine wave into port 2 of the splitter.
  3. Connect the S port of the splitter to the oscilloscope and and take a fourier transform of the signal. What frequencies are present?

Mixers

Mixers combine RF frequencies, either taking their sum or their difference. Each mixer has 3 inputs

  1. Local Oscillator(LO)
  2. Radio Frequency (RF)
  3. Intermediate Frequency (IF)

The LO port is always an input. The other two ports change whether they are an input or output depending on your application. For simplicity, we'll assume that the LO signal is always the largest of the two inputs.

If you would like an output that is SMALLER than 2nd (non-LO) input, the RF port is the input and the IF port is the output. Specifically, the output, IF, is the difference between the inputs:

This is called down-conversion, as it takes two signals and creates a third that is lower in frequency than both of them.


If, on the other hand, you want to create a signal that is larger than the inputs, the RF is the output and the IF is in the input:

additionally, you will actually get a 2nd frequency that is (again) the difference between the inputs:

This is called upconversion because it creates two signals that are larger than the input signal (unless, of course, the IF input is larger than half the LO signal).

The two conversion types are illustrated below.

RF Mixer frequency conversion. Image from Marki microwave's Mixer Basics Primer.

This is how mixers work ideally, but in practice the output signals contain many combinations of the input signals, which can be confusing. We'll see that below. Additionally, because the frequencies are being combined, the waveforms that are produced is very complex and difficult to analyze just from looking at it, so we'll use the FFT function of the oscilloscope to look at the spectrum of the created wave.

We'll look at down-conversion first.

  1. Use channel 2 of the function generator as the LO input and set it t0 4MHz and an amplitude of 0.25V.
  2. Use channel 1 of the function generator as the RF input and set the amplitude to 0.25V. Set the frequency to 3MHz.
  3. Connect the IF output of the mixer to channel 1 of the oscilloscope. Set the horizontal scaling to 500ns/division.
  4. How does the signal look? Use the Y-cursor on the oscilloscope to estimate some frequencies you see in the signal (recall that the cursor menu automatically shows you frequency information as where is the difference between the locations of cursors A and B).
  5. Now have the function generator perform a fourier transform on the data. Adjust the scales of the math window appropriately. Use the cursors to estimate the frequencies of the peaks shown. Does this agree with what you measured above?
  6. Adjust the frequency of channel 1 and observe how the shape of the wave changes and how the locations of the peaks in the FFT change.
  7. Obviously, this mixer is not perfect. Rather than just getting the difference between the two signals, you get a bunch of other combinations of them of the form where n and m can be any integer (including negative values).
    • For an ideal mixer, what are the values for n and m?
    • For each peak in the spectrum, what values are the appropriate values for m and n? (hint, you might be helped by looking at how the peaks move if you change the RF frequency a little).
    • What do you note about the values of m and n?

Now, let's look at up-conversion.

  1. Use channel 2 of the function generator as the LO input and set it t0 4MHz and an amplitude of 0.25V.
  2. Use channel 1 of the function generator as the IF input and set the amplitude to 0.25V. Set the frequency to 3MHz.
  3. Connect the RF output of the mixer to channel 1 of the oscilloscope. Set the horizontal scaling to 500ns/division.
  4. How does the spectrum of the signal compare to the down-conversion spectrum?
  5. What frequencies of the largest few peaks in the spectrum?


Using the mixer as you have above is effectively doing a heterodyne measurement on the signal. A heterodyne measurement takes two signals with different frequencies and measures the frequency difference and sum between them. This is a common technique in optics experiments (although often the sum of two frequencies for optical signals is well beyond the limits of a photo-detector).

There is a another technique called a homodyne measurement, which uses the same (hence, homodyne) signal for both the LO signal and the RF/IF signal after something has been done to the RF signal so we actually get a frequency difference. Let's see why this is useful.

  1. Use the mixer as a down converter and look at a 6MHz LO and 3MHz RF signal on channel 1 of the oscilloscope (including looking at the fourier transform
  2. Use a splitter to make a copy of a 3MHz, 1V amplitude signal from channel 1 of the function generator.
  3. Attach one

Attenuation and Filtering

Attach channel 1 of function generator through one of the 5MHz low-pass filters to the oscilloscope (note that the low-pass filter is 50-ohm terminated, so we don't need to use a terminator). The function generator should produce a 0.25V amplitude sine wave.

  1. Set the scope to trigger on channel 1, but set the trigger mode to "slope" - that is the scope will trigger based on what the slope of the signal is. Set the 'When" menu to the top option - a rising slope with a greater than symbol (>). This will trigger the scope whenever it encounters a slope that is larger than a set value.
    • To set this value, use the "time" menu item to look at how the signal changes over some window. Set it to 1 μs, so that the voltage on channel 1 is compared over a range of 1us.
    • Use the trigger level knob to change the "upper level" of the change you are looking for. The "low level" is set to -4mV. The difference between the two level is the voltage change you are looking for to trigger from. Set the Up Lvl to 0 mV.
    • So, the trigger slope is the difference between the levels (4mV) divided by the time window (1μs). Thus the slope is 4mV/μs.
    • Setting the "When" option to raising and >, will trigger the scope only when it sees a signal that has a positive (raising) slope that is greater than the set level (4mV/μs). You could also set When option to trigger off slopes that are less than than the set level or equal to the set level. These can be of use when you are looking at signals with a variety of frequencies and you wish to trigger only off some of them.
    • Make sure you are in the raising and > option. Since we are using large frequencies, we should always have a slope that is quite large (hundreds or thousands of mV/μs).
  2. Use the scope's math menu to create a fourier transform of the signal. Set the horizontal axis of channel 1 to 200ns/division and the horizontal axis of the fourier transform for 1.25MHz/division.
  3. Have the function generator sweep the frequency between 500kHz and 10Mhz over 10s (make sure the sweep's trigger is set to internal so that it loops the sweep constantly). What do you note about the spectrum? How does it change as it approaches higher frequencies?
  4. Adjust the vertical scale of the spectrum. Carefully estimate the frequency at which the height drops to around 1/2 its lower-frequency voltage (a change of -3dB). Liberal use of pausing the oscilloscope from recording data via the "Run/Stop" button might help this. It might also help you to change the range of the frequency sweep to "zoom in" on frequencies.
  5. Look up the data sheet for the BLP-5+. Does your estimate for the 3dB drop above agree with the data sheet?


To look at filtering, we will use a mixer for frequency up-conversion. So, attach channel 2 (5MHz, 0.25V amplitude) to the LO port of the mixer, Channel 1 (4MHz, 0.25V amplitude)