Difference between revisions of "RF Signals"
Aplstudent (talk | contribs) (→Termination and Impedance Matching) |
Aplstudent (talk | contribs) (→Termination and Impedance Matching) |
||
Line 65: | Line 65: | ||
</ol> | </ol> | ||
<center> | <center> | ||
− | <b>Change in Phase | + | <b>Change in Phase after Reflection</b> |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! | ! | ||
! Light <br> (Refractive Index) | ! Light <br> (Refractive Index) | ||
− | ! Electrical <br> | + | ! Electrical Signal <br> (Impedance) |
|- | |- | ||
! Low-to-high | ! Low-to-high |
Revision as of 14:59, 29 February 2016
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
- Rigol DS1102E Oscilloscope
- Micro-circuits ZAD-1 RF mixer
- A selection of BNC cables
- A few coaxial-to-BNC adaptors
- Thorlabs Variable Resistance Terminator
Contents
Measuring RF Power
Connect the output of channel 1 of the function generator through the terminator (set to 50ohm) to channel 1 of the function generator.
- Set channel 1 of the function generator to create a 1V amplitude sine wave with a frequency of 4MHz.
- 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.
- 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?
- 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.
- 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.
- 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?
- 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).
- 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?
- 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?
- 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.
Change in Phase after Reflection
Light (Refractive Index) |
Electrical Signal (Impedance) | |
---|---|---|
Low-to-high | ||
High-to-low |
Attenuation and Filtering
Splitters
Mixers
Mixers combine RF frequencies, either taking their sum or their difference. Each mixer has 3 inputs
- Local Oscillator(LO)
- Radio Frequency (RF)
- 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.
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 downconversion first.
- Use channel 2 of the function generator as the LO input and set it t0 4MHz and an amplitude of 0.5V.
- Use channel 1 of the function generator as the RF input and set the amplitude to 0.5V. Set the frequency to 3MHz.
- Connect the IF output of the mixer to channel 1 of the oscilloscope. Set the horizontal scaling to 500ns/division.
- How does the signal look? Use the Y-cursor on the oscilloscope to estimate some frequencies you see in the signal (note that the cursor menu automatically shows you frequency information).
- 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?
- 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.
Switches
Topics
- Measuring RF power
- Termination and impedance matching
- Attenuation and filtering
- Splitters, mixers, and switches