Author Topic: Building a 22 GHz network analyzer for under $1000  (Read 16307 times)

0 Members and 1 Guest are viewing this topic.

Online gf

  • Super Contributor
  • ***
  • Posts: 1431
  • Country: de
Re: Building a 22 GHz network analyzer for under $1000
« Reply #50 on: November 23, 2024, 09:18:28 am »
The software takes the raw S11 data, windows it, and then does an inverse FFT to get the impulse respose from the S11 data. The resulting signal is complex, while the impulse response should be real, so the developer used the absolute value function to make it real. This is the wrong way to do it (for starters, a short and open would look exactly the same, since their S11 values are just negatives of each other, so if you take the absolute value you will get the same result).

It is not "wrong". There are two modes for VNA-based TDR, bandpass mode and lowpass mode. What this software does is bandpass mode. It still enables "time to fault" measurements w/o requiring low-frequency measurements down to DC.

Quote
The correct way is to take the S11 data and append the conjugate of the measured data. Basically, for real signals, the FFT must be symmetric (in that the negative frequencies must be the complex conjugate of the positive frequencies). After adding terms to the end so that the negative frequencies and positive frequencies are conjugates of each other, if you take the inverse FFT, the signal is real, and you get the correct impulse response.

What you describe is lowpass mode. Untorfunately, it requires equally spaced frequency points from 0Hz (DC) to fmax, while many VNAs have a lower frequency limit.

From Brian and CMT, they use chirp-Z transform:
https://www.eevblog.com/forum/rf-microwave/vna-for-cable-characterization/msg5656049/#msg5656049

There is still nothing wrong with doing a IFFT in order to calculate the full time axis (possibly with zero-padding - after applying the window function - in order to get a higher (interpolated) resolution for the resulting time domain points).

Consider the ICZT rather as a tool to calculate an arbitrary "zoom-IFFT" with interpolation. For example, if you want to zoom into a small range of the full time-axis, or if you want an arbitrary spacing for the resulting time domain points (independent of the frequency points).
« Last Edit: November 23, 2024, 11:48:43 am by gf »
 
The following users thanked this post: EggertEnjoyer123

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #51 on: November 24, 2024, 06:56:32 am »
The software takes the raw S11 data, windows it, and then does an inverse FFT to get the impulse respose from the S11 data. The resulting signal is complex, while the impulse response should be real, so the developer used the absolute value function to make it real. This is the wrong way to do it (for starters, a short and open would look exactly the same, since their S11 values are just negatives of each other, so if you take the absolute value you will get the same result).

It is not "wrong". There are two modes for VNA-based TDR, bandpass mode and lowpass mode. What this software does is bandpass mode. It still enables "time to fault" measurements w/o requiring low-frequency measurements down to DC.

Quote
The correct way is to take the S11 data and append the conjugate of the measured data. Basically, for real signals, the FFT must be symmetric (in that the negative frequencies must be the complex conjugate of the positive frequencies). After adding terms to the end so that the negative frequencies and positive frequencies are conjugates of each other, if you take the inverse FFT, the signal is real, and you get the correct impulse response.

What you describe is lowpass mode. Untorfunately, it requires equally spaced frequency points from 0Hz (DC) to fmax, while many VNAs have a lower frequency limit.

From Brian and CMT, they use chirp-Z transform:
https://www.eevblog.com/forum/rf-microwave/vna-for-cable-characterization/msg5656049/#msg5656049

There is still nothing wrong with doing a IFFT in order to calculate the full time axis (possibly with zero-padding - after applying the window function - in order to get a higher (interpolated) resolution for the resulting time domain points).

Consider the ICZT rather as a tool to calculate an arbitrary "zoom-IFFT" with interpolation. For example, if you want to zoom into a small range of the full time-axis, or if you want an arbitrary spacing for the resulting time domain points (independent of the frequency points).

It seems like you are right, but their previous implementation was still wrong, because they convolved the absolute value of the impulse response with the step function to try to get the step response, which doesn't work (you just get a stairstep up).

I modified the nanovna-saver code again so you can select between bandpass and lowpass modes. I think the chirp Z transform is probably going to be too hard for me to implement, plus all the processing is done on a computer anyways which can easily do million point IFFTs in microseconds so there is no advantage to using it. (I'll have to admit that this is the exact kind of thinking that makes software slow nowadays)
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1431
  • Country: de
Re: Building a 22 GHz network analyzer for under $1000
« Reply #52 on: November 24, 2024, 08:00:37 am »
It seems like you are right, but their previous implementation was still wrong, because they convolved the absolute value of the impulse response with the step function to try to get the step response, which doesn't work (you just get a stairstep up).

IMO, only impulse response (magnitude) makes sense in conjunction with bandpass mode, and step response should not be offered in the GUI. I think other VNAs don't offer bandpass step response either.

EDIT:

So basically I see the following three choices:

- bandpass impulse response (magnitude)
- lowpass impulse response (real)
- lowpass step response (real)
« Last Edit: November 24, 2024, 08:53:47 am by gf »
 

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #53 on: November 29, 2024, 01:23:32 am »
I implemented bandpass TDR and importing S1P files for calibration in software. (Unfortunately, I don't have the loads that I sent my friend yet, so I can't get any accurate measurements)

I also built a resistive splitter out of standard 18 ohm 0201 resistors. They are all soldered upside down to reduce parasitics. The S parameters look good up to 21 GHz (I need to get better amplifiers so I can go higher in frequency).

After swapping out the old splitter with the new resistive splitter, I have 60dB of isolation for S21. I think I can improve it even more by fixing my DSP. I also measured a Beatty standard and a through, which were made by JLCPCB. I think I need to make the 25 ohm section longer on the Beatty. Also, it seems like my soldering is bad for one of the connectors on the through. (The reversed measurements were taken by flipping the board and measuring again). The theoretical reflection for the Beatty is 0.33.
 

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #54 on: December 06, 2024, 01:59:20 am »
I found another source of calibration loads.

The loads here seem to be good up to 26.5 GHz at least (my friend can test them up to 40 GHz but it will take a while): https://www.aliexpress.us/item/3256807233299645.html
I bought two of the <1.15 VSWR ones, and I got the following response (looks like the seller might be honest).

The seller also offers 18GHz loads with VSWR <1.06 here: https://www.aliexpress.us/item/3256807162155931.html. I suspect someone is getting paid to measure and bin these. I haven't tested them yet, but I might buy a few once I get my loads back from my friends (so I can finally have a NIST traceable calibration set of dubious quality).

The S88 load is from a calibration set that my friend has at his lab.
« Last Edit: December 06, 2024, 02:21:35 am by EggertEnjoyer123 »
 
The following users thanked this post: croma641, joeqsmith, uer166

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 12379
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #55 on: December 06, 2024, 02:59:52 pm »
...
The seller also offers 18GHz loads with VSWR <1.06 here: https://www.aliexpress.us/item/3256807162155931.html. I suspect someone is getting paid to measure and bin these. I haven't tested them yet, but I might buy a few once I get my loads back from my friends (so I can finally have a NIST traceable calibration set of dubious quality).
...

If that is true (and would not surprise me), this is a very good deal.  Owners of the low cost VNAs looking for a better load while not spending some major cash should be very interested in your find.

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #56 on: December 10, 2024, 04:31:56 am »
I got the measurements and it seems like the seller is honest. The measurement is different because a different cal kit was used (my friend said that someone else calibrated the VNA in the previous measurement so maybe they did it wrong)

This is better than the last loads I got, where someone just shoved a 50 ohm resistor into a SMA.
« Last Edit: December 10, 2024, 04:37:54 am by EggertEnjoyer123 »
 

Offline prutser

  • Regular Contributor
  • *
  • Posts: 79
  • Country: nl
Re: Building a 22 GHz network analyzer for under $1000
« Reply #57 on: December 10, 2024, 07:18:25 pm »
From which of the loads you mentioned is this last plot ?
 

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #58 on: December 11, 2024, 04:25:18 am »
From which of the loads you mentioned is this last plot ?

https://www.aliexpress.us/item/3256807233299645.html

This one

My friend says they're good to 40 GHz as claimed.
 

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #59 on: January 22, 2025, 08:04:38 am »
I implemented windowing in my software. My code now uses a Hanning window on the ADC data before correlating it with the -1, 0, 1, 0, 1, ... sequence (to basically filter out signals at fs/4). This helps eliminate all the DC frequencies (the DC level changes every time the frequency of the oscillators changes, and as a result there is a lot of unwanted signals at low frequencies). According to my Python simulation, with the original filter there are some frequencies near DC which only experience -60dB attenuation, but with the Hanning window all frequencies near DC are basically eliminated. (The cost is obviously that the 12kHz "passband" is slightly wider, but it's not that big of an issue).

Doing this seems to have eliminated a lot of the randomness with S21 measurements, and my isolation is now about -75dB with calibration (compared to my old results in post #53). Without calibration, it is still around -60dB (I probably need better shielding than aluminum foil). As you can see from the filter measurements, I am now able to measure a lower S21 (around -70 instead of -60dB). I'll probably have to redesign everything with better shielding to do better (there's only so much you can do with calibration).
« Last Edit: January 22, 2025, 08:23:07 am by EggertEnjoyer123 »
 

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #60 on: January 22, 2025, 08:46:43 am »
I also spent the last month looking at how to make a good resistive bridge, which should let me go down to 10 MHz. The balun seems to be the hardest part.

I took apart a 10 MHz to 20 GHz mixer module to see how it worked. (To be fair it was already broken when I got it). They are using twisted pair instead of coaxial cable, along with a very small ferrite. The wire is 0.08mm diameter. I bought wire of the same diameter, but I got 50 ohms impedance with only 3 wires instead of 4. I tried making a balun using my twisted pair (more like triple) but I wasn't able to get it to work at all, so I'm probably doing something wrong. Maybe they are using special ferrite or something? I'm going to try again with 0.35mm microcoax from Aliexpress, which should hopefully be easier to work with. Also, twisted pair isn't TEM so I'm not sure how it would work in place of coaxial cable (which is normally used in these baluns). Hopefully someone else can explain (I suspect that the ferrite is probably special).

From the image you can see the baluns, and the white objects are two diode rings and two resistors (there is one hiding behind the rings). The mixer is triple balanced, and the part number is T3-20GLCTG. The four wire "twisted pair" goes to the IF, and the other two are the LO and RF. There are five baluns: the two ferrites on top of the diodes have a twisted pair going through each hole (the LO and RF each connect to two baluns), and the IF balun has two wires connected to ground, and two wires connected to the IF output.
« Last Edit: January 22, 2025, 08:53:43 am by EggertEnjoyer123 »
 
The following users thanked this post: croma641

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #61 on: January 25, 2025, 04:42:23 am »
I'm doing some measurements while I wait for parts to try to make a lower frequency directional bridge.

Here are the measurements of a bias tee made with some random chinese 100nF 0201 capacitor and a BLM15GG471 0402 ferrite bead from Murata. The loss seems to be at most 2dB up to 23 GHz. I measured a through and the bias tee and I got the results attached. This ferrite is recommended in the ADL9005 and MAAM-011100 datasheets.

I wanted to see if there were any resonances (which could be the reason why my output power drops by a lot after 21 GHz). It seems like there are no resonances, so the issue is probably with the connectors I used after the amplifiers. Hopefully fixing that issue in a later revision will stop the VNA from drifting while the temperature stabilizes (measurements past 21 GHz only become stable if you wait for the PLL and amplifiers to heat up because the power going to the mixer changes, which affects the conversion loss when the power is low).
« Last Edit: January 25, 2025, 04:45:20 am by EggertEnjoyer123 »
 
The following users thanked this post: croma641

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #62 on: February 06, 2025, 07:31:35 am »
I made some clones of the original mixer, and I am getting decent results up to 19 GHz. However, it seems like there is a huge resonance of some sort above that frequency which completely ruins my results. I am using 4 BAT24-02LS diodes (the cheapest I found was about $50 for 255 on winsource).

I accidentally broke the PCB, so I don't have any good pictures of it. But I have the gerber files for the board, as well as an image I took of the back side of the board before I broke it. The capacitors are 22pF 01005.

To test the conversion loss, I replaced a mixer in my VNA setup with my design. The VNA is uncalibrated, and the difference between the brown and blue line is the difference in conversion loss between the commercial mixer and my mixer. As you can see, my mixer is slightly lossier up to 19 GHz (which is partially explained by the fact that it is twice as large as the commercial design). However, after 19 GHz there is a huge drop in the mixer conversion loss, and I'm not exactly sure what is causing it. Changing the capacitors seems to have no effect. Touching the board also has no noticeable effect unless I touch the small wires connecting the diodes to the IF output. If I touch that, then the conversion loss drops even more after 19 GHz, so I suspect that I might have an unintended antenna somewhere with the pickoff for the IF. The wire which biases one end of the diode ring to ground seems to have no effect, and nothing happens when I touch it. In the commercial mixer, the wires are 5 mm long, but in my mixer, the wires are 8 mm long (so that could be a factor). Also I have no microwave absorber other than my finger.

Also please do not order the gerber files without modifying the design! The copper gap between the vias is too small and it will bridge if you try to get it manufactured. I had to cut the bridges open with a knife. I'm using 0.6 mm FR4 from JLCPCB.

In a later revision I'm going to add ferrites so the balun can work down to DC. My IF is 12 kHz (while the commercial mixer has to support up to 1 GHz IF) so I can get away with it.

« Last Edit: February 06, 2025, 08:45:44 am by EggertEnjoyer123 »
 
The following users thanked this post: croma641

Offline EggertEnjoyer123Topic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Building a 22 GHz network analyzer for under $1000
« Reply #63 on: Yesterday at 07:50:21 am »
Here's the commercial mixers for comparison.

Adding some copper tape to make the IF pickup lines shorter did nothing. It seems like the issue might actually be with the capacitors, because swapping the LO and RF results in a much higher insertion loss (~5dB) at all frequencies, and the only difference between the LO and RF baluns is that one has capacitors and the other doesn't. Maybe SMD capacitors are just bad relative to the beam lead capacitors used in their design.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf