How do you verify an impedance matching network? - Page 1
Forum section: electronics / rf-microwave

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 01:51:14 am
content: If I have an RF amplifier where I know it's source impedance, I can either use math or simulations to find a theoretical matching network to turn it into 50 ohms. However, reality is often different than theory, so once it is built, how can I verify this matching network to make sure the components are optimal? If I replace the RF amplifier with an SMA jack, is it as simple as hooking up a VNA, measuring the impedance, and verifying it is the complex conjugate of the RF amplifier source impedance?If that is a good approach, how do you make sure your measurement plane using the SMA jack matches the RF amplifier?Is it also possible to verify the matching network by having the amplifier output a continuous wave, measuring the 50 ohm side, and verifying you are seeing the max power being output?Essentially, I am thinking of making a test PCB with 2 identical circuits, except replacing the RF amplifier with an SMA jack on one (see attached image). Will this work how I think it will? Is there a better way to verify impedance matching?Edit: The frequency of interest is 915 MHz, and when I say "source impedance", I mean I have the load-pull data for the amplifier

author: szoftveres
author_rank: Regular Contributor
timestamp: September 19, 2024, 02:07:25 am
content: How about building your amplifier and matching network, then measure from the 50ohm side? If the output impedance isn't what you're looking for then you can continue tweaking your matching network.

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 02:15:04 am
content: Wouldn't measuring impedance from the 50 ohm side only tell me if that side is 50 ohms? How does that help me verify I have matched the impedance between the amplifier and matching network?

author: szoftveres
author_rank: Regular Contributor
timestamp: September 19, 2024, 02:26:08 am
content: Quote from: AJ528 on September 19, 2024, 02:15:04 amWell, if you don't get exactly 50 ohms then obviously you've failed to match your amplifier. On the other hand if you get exactly 50 ohms then you succeeded. Isn't this what you're looking for? What do you mean under "verification"?

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 02:56:56 am
content: By verification I mean "how do you prove the impedance matching network is actually doing its job?" What measurements can I perform that will tell me everything is working properly?Also, how would you do an impedance measurement on the 50 ohm side if the RF amplifier is an active device? If you do the measurement with the RF amplifier off it wouldn't show its true source impedance, but if you try to do an impedance measurement with the amplifier on it will mess with your measurement, right? I assumed the best I could do for measuring the output is measuring the power being output on the 50 ohm side. If I know the power being output by the amplifier, I can easily calculate what the losses are from the matching network right?

author: Geoff-AU
author_rank: Frequent Contributor
timestamp: September 19, 2024, 04:02:30 am
content: You do have to measure it powered to get sensible results, but you need to make sure the amplifier isn't going to transmit a signal (best case, interferes with your measurement. Worst case, damages your VNA).Be very, very careful and thoroughly think things through before connecting potential transmitters to VNA/SA. Inline attenuators to make sure worst-case malfunction won't cause overload is pragmatic (make your calibration reference plane after the attenuation, of course).

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 04:47:55 am
content: Right, I figured that much. The transmitter outputs a max of +14dBm, so I'm planning to put a 20 or 30 dB attenuator in line before hooking it up to a VNA.But that's also why I'm wondering if I can measure the impedance of the matching network by replacing the amplifier with an SMA jack. I could do a measurement without anything powered.

author: radiolistener
author_rank: Super Contributor
timestamp: September 19, 2024, 06:20:29 am
content: Just load your output with two different load around expected impedance and measure amplitude, then calculate it's actual output impedance.For example, if expected output impedance is 50 Ω, you can measure amplitude for 25 Ω and 75 Ω load.Let's assume you get U1=20V for R1=25 Ω load. And U2=35V for R2=75 Ω load.Then:Z = R1*R2*(U1-U2)/(R1*U2-R2*U1) = 25*75*(20-35)/(25*35-75*20) = 45 ΩAnother way (but less reliable) is to measure EMF voltage of your output (with no load) and U voltage for known R load.Let's assume you get EMF=40V. And U=22V for R=50 Ω load.Then:Z = R * (EMF / U - 1) = 50*(40/21-1) = 45.24 ΩBut the second method cannot be used for devices whose output does not allow being open or when the load impedance differs significantly from the specified value.PS: Make sure that load resistors for both methods are not inductive and not capacitive.Since both methods are scalar, you will not be able to measure the exact value of the reactance of your output.

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 19, 2024, 06:44:16 am
content: What frequency are you working at?Do you have the S parameters of the transistor from the manufacturer?The best way is to build the transistor with the matching network, and then measure S11 with a VNA. The S11 should be very low. Make sure to put an attenuator on the output of the amplifier (and maybe the input too to avoid saturating the amplifier) to avoid damaging your VNA. (If you use attenuators you need to calibrate the VNA with the attenuator in place to cancel out any effects it would have). Then you can reverse the connections and measure the S11 again (assuming you have a cheapo Nano/LiteVNA). By switching the connections you are effectively measuring the output return loss or S22. You should also do a sweep from DC to the fT of the transistor, and then calculate the stability factor using the S parameters to ensure that your design is stable.Measuring just the matching network is a bad idea, especially in the microwave range. Your connector will add extra length which can be difficult to calibrate out. Also, the transistor return loss is also sensitive to many factors, like biasing, emitter inductance, parasitics on your board, etc. It would be bad if you optimized your matching network, then found out that the impedance of the transistor was wrong.

author: selcuk
author_rank: Frequent Contributor
timestamp: September 19, 2024, 07:46:04 am
content: Are these components on the PCB and SMD parts? If so, replacing SMD parts with a SMA jack alters the results too much. At least I don't know an easy way to compensate it within the VNA. I would replace the RF amplifier with a 0402 or similar 50 ohm high frequency resistor (soldered between amp output pin and ground) and make the measurements from the load side SMA jack. I think that one is already in the circuit and not for test purposes.

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 05:14:28 pm
content: Quote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 am915 MHzQuote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 amNo, I only have the source impedance (approximately 11 - j5 Ω)Quote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 amWhere in the circuit should I measure S11? From the 50 ohm terminated SMA jack? If so, wouldn't the amplifier need to be turned on to present realistic impedance? And wouldn't that mess with the S11 measurement?Quote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 amThis is a PCB-mounted design, how would I insert an attenuator between the amplifier and the matching network? Also, the amplifier is an output from a microcontroller, so I can only change the amplifier input through microcontroller settings.Quote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 amYeah, this is something I'm concerned about. I know at 915 MHz each millimeter rotates the smith chart by a couple degrees, but I don't know of another way to verify the impedance of the matching network, except possibly measuring the output power with the amplifier transmitting.Quote from: EggertEnjoyer123 on September 19, 2024, 06:44:16 amHow would I even be able to tell if the transistor impedance was wrong?

author: AJ528
author_rank: Regular Contributor
timestamp: September 19, 2024, 05:21:09 pm
content: Quote from: selcuk on September 19, 2024, 07:46:04 amYes, these are SMD parts on a PCB.Quote from: selcuk on September 19, 2024, 07:46:04 amReplacing the RF amplifier with a 50 ohm resistor doesn't represent the source impedance of the RF amplifier. I would need to replace the amplifier with a (11 - j5)Ω component, right? I don't know how to create that.Also, the load side SMA jack also exists for test purposes. Eventually I'll be replacing that jack with an impedance-matched antenna, but I don't think that's relevant for this question.

author: radiolistener
author_rank: Super Contributor
timestamp: September 19, 2024, 07:08:03 pm
content: Quote from: AJ528 on September 19, 2024, 05:21:09 pm11 Ω resistor in series with capacitor which gives 5 Ω at specific frequency:Xc = 1 / (2*pi*f*C)C = 1 / (2*pi*f*Xc)for f=915 MHz and Xc=5Ω C=34.79 pF

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 20, 2024, 02:35:54 am
content: The best advice I can give is to build the entire design (with biasing, matching network, etc) on a board. Basically build everything as it would be in real life. Measure the S parameters and adjust the output matching network until it is at 50 ohms (basically get S22 < -15dB or so). The input matching network is highly dependent on the output matching, but not the other way around, so it is very important to adjust the output match first. Then, once your output matching network is good, you can adjust the input matching until you get -15dB S11. You will probably need to spend some time switching around components though.

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 05:10:31 am
content: Quote from: EggertEnjoyer123 on September 20, 2024, 02:35:54 amI can give that a try, but I think if I measure any S parameters from the 50 ohm side, it will give me wrong measurements. Either I measure with the device not transmitting, in which case it's not not the right source impedance, or I measure with the device transmitting, in which case it's injecting current into the VNA and messing up the measurement. I did some more research and I think this is maybe where someone might utilize a "hot S22" measurement.Additionally, my research turned up this application note from Maximhttps://pdfserv.maximintegrated.com/en/an/AN5417.pdfwhere their recommended way to verify the transmitter matching network is essentially one of my original ideas: assemble the transmitter and matching network, then measure the output and tweak stuff until you get the max output power.So I've at least found some evidence to support one of my approaches.

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 20, 2024, 05:36:27 am
content: Small signal S parameters only work when the transistor is operating linearly. The transistor's output power is linear with respect to the input power until you approach the P1dB point. In the linear region, the transistor basically has the same gain and impedances, and it doesn't matter what the input power is. It's like if you had an op amp amplifier, and you put in 1mV and got 10mV out, you know that if you put in 2mV in, then you'll get 20mV out. However, if you put in 10V, then you most likely won't get 100V out because the amplifier can't output that much voltage. The gain of the amplifier in this case would be 10 for most input voltages, but once you reach a certain point it won't be 10 anymore.Check the P1dB of the transistor. Then determine how much power you expect to get at the output. If the power output is lower than the P1dB, then you can expect the S parameters to be the same when you are transmitting, and when you are using the VNA. If the power output is the same or higher then you might need more advanced testing equipment (I'm pretty sure the cheap VNAs do not have enough dynamic range to do a hot S22 measurement).

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 05:43:49 am
content: Something I forgot to put in the original post is that my RF amplifier is actually an output from a microcontroller. So I don't think I can do any transistor-level measurements. I can turn the transmitter on, set the approximate power level, and turn it off.And I agree, I'm sure my nanoVNA can't handle a hot S22 measurement, which is why hooking it all up and measuring for max output power seems like my best bet here.

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 20, 2024, 06:15:23 am
content: Is this Lora?The maximum output power should be listed in the datasheet for the microcontroller. I guess you wrote +14dBm. Find the gain of the amplifier at 915MHz, add 14 to it, and then compare it with the P1dB.

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 06:19:49 am
content: I'm just using it to transmit generic FSK packets, but the micro can also do Lora if desired. It's the STM32WL5X series. Yes, it has a listed max output power.

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 20, 2024, 07:11:32 am
content: What's the transistor?

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 07:19:37 am
content: The microcontroller is directly driving the RF output, there is no external transistor. I didn't see any information about the internal transistor in the microcontroller datasheet.

author: EggertEnjoyer123
author_rank: Frequent Contributor
timestamp: September 20, 2024, 07:40:04 am
content: If there's no transistor, how are you amplifying it?

author: tszaboo
author_rank: Super Contributor
timestamp: September 20, 2024, 08:00:54 am
content: Well, you have 6 problems that need to be measured.S11 of the source (known)S11,S12,S22,S21 of your amplifierS11 of the antennaThese need to be matched. To keep it simple you probably want to match everything to 50 Ohm. So you need 4 matching network.You need to figure out how much gain you wish, which is the S12. Also how much return, S21, if you want to receive with the same antenna.Make the setup, so you can measure each of these scatter parameters. I would build them separately until I can measure everything, and have space at least two L matching pad for each device. As an extra point, take care about the DC coupling, and treat it separately from your matching for now.Oh and probably you want to measure S12 with an attenuator depending on your VNA.

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 03:57:53 pm
content: Quote from: EggertEnjoyer123 on September 20, 2024, 07:40:04 amThe amplifier is built in to microcontroller. So technically there is a transistor, but it's not a discrete part, it's part of the microcontroller.

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 04:21:21 pm
content: Quote from: tszaboo on September 20, 2024, 08:00:54 amThe amplifier is built in to the microcontroller, and I know the complex source impedance of the amplifier, so eventually I just need to attach the output of the amplifier to my antenna. I'm planning to match to 50 ohms in between, so I'll need 2 matching networks. My question here is "how do I verify the amplifier->50 ohm matching network is actually matched well?" And the solution I'm coming up with is "solder the microcontroller and the matching network on a PCB, have the micro transmit a continuous wave at the desired frequency, then measure the output power and make sure it's close to the theoretical output of the microcontroller." So if I set the micro to output a +14dBm output signal, I should measure something close to 14dBm on the 50 ohm side.At least I haven't heard anyone say "that's a bad idea" or "that approach won't work".... so I think that's what my approach is gonna be (unless someone knows of a better way).

author: tszaboo
author_rank: Super Contributor
timestamp: September 20, 2024, 07:43:20 pm
content: Quote from: AJ528 on September 20, 2024, 04:21:21 pmRight, so you have a micro or transceiver that has an output that's not 50 Ohm. I misunderstood you.So only 1 unknown S parameters, the antenna.If they publish matching network, you can copy the layout and the part numbers. In my experience this works well.You can measure the matching network with a VNA as well, S11 S12 S22 and S21 of those parts. Since it's passive, linear, I think it's supposed to be symmetrical, so two of those are going to be the same, but since it's connected already, why not measure it. And put the S parameters in the simulator of your choice, after the complex impedance (or S parameters) of your transmitter, and see how close it is to 50 Ohm.Take one of the prototypes, desolder the micro and place a coax in it's place. Or better, order a blank PCB. Make your calibration plane on the PCB pads of the micro.

author: AJ528
author_rank: Regular Contributor
timestamp: September 20, 2024, 10:08:16 pm
content: Quote from: tszaboo on September 20, 2024, 07:43:20 pmI could do this, but I'm trying to learn the process here. I want to do the calculations myself and then verify if I did a good job.Quote from: tszaboo on September 20, 2024, 07:43:20 pmI can measure the S parameters of the matching network, but would that be valid since my real transceiver isn't a 50 ohm source? That's why I was thinking instead to replace the transceiver with an SMA jack and just measuring the impedance. But I've since learned that measurement is super sensitive to transmission line length at 915MHz. So that's why I think the only option I'm left with is "measure the output power with the transceiver running".

author: RFDx
author_rank: Regular Contributor
timestamp: September 21, 2024, 08:23:10 am
content: Quote from: AJ528 on September 20, 2024, 10:08:16 pmOf course you can measure the matching network if you really want to. Replace the RF-µC with a VNA and measure into the network while teminating the output of the network with 50 Ohm. Calibration happens on the PCB directly at the input of the network (without the matching network attached yet) by soldering in small resistors as SOL references. If everything is going well and the matching network is doing it's job, the VNA will show you 11+j5 Ohm, the optimal load the PA wants to see to put out 14dBm.Another option would be to measure output power. All you have to do is connect the output of the RF-uC through a 50 Ohm microstrip transmission line to the 50 Ohm load (e.g. spectrum analyzer). A small shunt capacitor is placed at a certain distance from the RF-µC output, between 50 Ohm line and GND. See attachment for guidance on component values. By moving the capacitor a little forward or back on the line and/or by making small adjustments to the capacitor you maximize output power.

author: AJ528
author_rank: Regular Contributor
timestamp: September 21, 2024, 09:48:33 pm
content: Quote from: RFDx on September 21, 2024, 08:23:10 amBut measuring the impedance of the matching network is not the same as measuring the S parameters of it, right?But using small resistors as SOL references is a good idea. If I wanted to attempt that measurement, is a layout similar to the attached image the best way to handle the calibration? It's easy enough to put a short-circuit and load resistor on, but the only way to open calibration is by including the series resistor, right?Quote from: RFDx on September 21, 2024, 08:23:10 amYeah, this approach looks to be simpler and more foolproof. I'll probably lean on this, but do the impedance measurement as an academic exercise. That's good to know that all I should need to do is tweak a capacitor to tune it. Thanks for the info!