r/rfelectronics • u/vaughn22 • Mar 26 '22
I built a modular vector network analyzer by myself for a work experiment. All boards were designed and hand-soldered by me.
10
Mar 26 '22
What does it do?
53
u/vaughn22 Mar 26 '22
I work with particle accelerators that are RF-driven. They use ultra high-Q superconducting cavities to accelerate beams and need a ton of power. Because of this, there are circulators placed on the cavity inputs to redirect reflected power to a load, but the circulators often misbehave and drift in their resonances. Right now there's only a directional coupler that gives a snapshot of forward and reverse power, but if the circulator is drifting, then it's no longer matched well and the data is skewed pretty heavily.
So, I'm building a VNA to interface with the directional coupler and track the circulator's input impedance drift through the directional coupler. The VNA needs to work in the presence of the RF cavity drive signal, which is way higher than my perturbation signal, hence the two microstrip absorptive notch filters in the upper right of the image. Like any VNA, it just throws an interrogation signal at the DUT, captures the reflected signal, and compares it with a reference signal's amplitude and phase to back out the reflection coefficient and whatnot.
I made it modular to avoid massive costly board respins; I'm experimenting with techniques and features and there's no way I can see every challenge or design hiccup coming at the outset no matter how well I plan. There's a LOT of refinement still to come but this is my first working prototype.
21
u/battery_go Mar 26 '22
Sounds like the kind of place that could (easily?) afford a VNA or maybe just rent one? How is the time investment into this really worth it? Maybe customization (signal conditioning etc.) is a requirement eliminating COTS equipment (which would increase cost of course)?.
How are you calibrating your own designs and what's the reference?
30
u/vaughn22 Mar 26 '22
The application is pretty narrowband (<100 MHz required BW) and I should have mentioned that this is for in-situ real-time monitoring, not for routine testing, so we'd need to put a box on each RF station and I don't remember the exact number but there are like >50 easily. Something on the level of a USB VNA wouldn't cut it for the signal levels and additional factors that need to be considered, and decked-out boxes would be overkill in some respects but non-adaptable in hardware and software, so we'd be stuck if we need it to do something it wasn't designed for. In the end, I need it to be both relatively inexpensive on the backend, and feature-expandable should things change.
I'm using a precision cal kit for calibration, was that your question?
13
u/battery_go Mar 26 '22
Yes, that's exactly what I meant. This reply is the exact context that this post required.
Awesome work btw, you can definitely tell there's some thought gone into this design. How many different modular PCB's did you design in total?
Are you able to share any high-level block / functional diagrams?
11
u/vaughn22 Mar 26 '22
Thanks! Yes I plan on sharing more details in the near future. There are like 14 boards here so I’ll need some time to compile it all.
6
6
u/enigma142 Mar 26 '22 edited Mar 26 '22
Looks like you're going from coax to pretty wide microstrips, how are you avoiding the hybrid mode behavior on the microstrips? Or is the operating frequency less than 2GHz?
Edit: just noticed all the jumper wires, the operating frequency must be in the MHz range then.
8
u/vaughn22 Mar 26 '22
Freq is <1 GHz so I’m not super worried about higher order modes or hybrids. Simulated the coax transition to microstrip as well so I think I’m good to go there
10
u/watchscottgo Mar 26 '22 edited Mar 26 '22
If I understand what you're trying to do - would this be an easier solution? Vector power measurement up to 2.7GHz.
https://www.digikey.com/en/product-highlight/a/analog-devices/ad8302-rf-if-gain-phase-detector
edit: don't get me wrong, I love a fun project, but if you run out of development time and it needs to be robust...
6
u/vaughn22 Mar 26 '22
Wrong freq. my application's around 325/650 MHz
9
u/watchscottgo Mar 26 '22
No reason you have to use this part, of course - just trying to be helpful. I haven't tried the part in my application yet but the data sheet claims "low frequency," probably in the single megahertz, up to 2.7Ghz operation. Even has performance specs at 100Mhz, 900Mhz, and above.
9
u/vaughn22 Mar 26 '22
I’ll take a closer look, but I don’t think it’ll have the customizability I need. thanks for the suggestion though!
6
u/ArmstrongTREX Mar 26 '22
Have you tried X-microwave? They have a pretty neat modular microwave prototyping platform.
7
u/PhilosopherFar3847 Mar 26 '22
Yes! I support this point. It is quite likely X-Microwave platform can help the OP to shrink his solution and the development time.
3
2
13
7
u/Jehonan Mar 26 '22
Dear Lord, what a thing of beauty!
6
u/vaughn22 Mar 26 '22
Really? Looks like a hot mess to me XD
10
u/Jehonan Mar 26 '22
To me it looks like creative "mess" and in my humble opinion there is nothing more beautiful (in professional sense) than that!
5
3
u/curiouselectron Mar 26 '22
Looks awesome! Out of curiosity what is the use case for this guy / why pursue this vs purchasing a commercial unit. If this was purely a hobby project I'd understand, but you mentioned it was for work!
5
u/vaughn22 Mar 26 '22
I need very specific and potentially malleable source and IF gain requirements as well as the ability to work in the presence of a static but strong local interfering signal and full control over any DSP techniques I'll need. Commercial boxes/devices are both overkill and insufficient for my goals so going from scratch had to be it.
3
u/ilikespoilers Mar 26 '22
What’s the purpose for lots of yellow dots (vias?) on the boards?
11
u/vaughn22 Mar 26 '22
I have a motto:
Via stitch hard, via stitch fast, via stitch often.
The via stitching is exposed in case I need to splice something to ground because #prototyping
4
u/rfdave Mar 27 '22
I built one RF transceiver board at a previous employer that was ~ 4x6, 8(?) Layer, and on the order of 15k vias. Buried, blind, and through. Boards were expensive!
2
u/GimmeDatPIP Mar 26 '22
It looks like Via Fencing (two ground layers)
Electrical current usually flows around the trace not on the trace.. the via fence is like the metal shield in your microwave to keep that signal from leaking onto other traces.
I'm not any sort of expert on this, but I believe that's pretty accurate simplified version.
I do know this all gets really complicated and there are people who specialize on signal isolation within pcb design.
3
4
u/PhilosopherFar3847 Mar 26 '22
I would like to face a problem where I need to design my own VNA. Enjoy it!
1
u/Medical_Check_9703 Mar 26 '22
Dude, that's awesome, the boards looks professional, did you etch strip the PCB yourself?
5
1
u/baconsmell Mar 26 '22
How are you handling all the math behind the calibration for the error terms?
3
u/vaughn22 Mar 27 '22
3
u/baconsmell Mar 27 '22
I was afraid you reference something like this from HP. Seeing this again gives me flashback to when I was an intern.
1
u/obsa Mar 27 '22
Have you characterized its performance yet?
2
u/vaughn22 Mar 27 '22
Not really yet. I just hit the milestone where it's giving me repeatable real-time DUT impedance-dependent data. I'll share how it does as I go.
1
u/speezerton Mar 27 '22
Out of curiosity, what software did you use for your RF simulations and layout? Since you have some ICs on there I was wondering if you transferred back and forth between ADS and Altium (for instance) or if you did all of the layout and routing in your RF tool? Super cool by the way!
3
u/vaughn22 Mar 27 '22
I used CST, ADS, and MATLAB for simulation and Eagle for layout. All boards are two layer FR4 except the microstrip filters, which are Rogers. I can afford the bigger trace sizes for the lines and lossy materials since I’m running sub 1 GHz.
1
u/speezerton Mar 27 '22
Nice, did you have any issues exporting your geometry from CST/ADS into Eagle? Always curious if there’s a better method out there than exporting/importing DXF files and making footprints for all of my simulated RF stuff lol
2
u/vaughn22 Mar 27 '22
I finangled with CST to export gerber files directly, though I wouldn’t say it was super seamless, but it worked. I usually export a dxf and then create the gerber with ADS but that’s not an option for me anymore because of the ADS licensing at my workplace (can’t save files onto my computer or any other drive I have easy access to). Everything else I laid out directly in eagle.
1
u/jelleverest Mar 27 '22
What's that PCB trace magic you've got over there?
2
u/vaughn22 Mar 27 '22
You mean the microstrip filters? They’re an absorptive bandstop topology. They use the finite Q of the hairpin resonators combined with precise coupling and signal pathing to create a “trap” at certain frequencies that dissipates the power while maintaining low return loss throughout the band. There’s going to be a local interfering signal entering my device at all times that I don’t want to leave once it’s there so I’m burning it up with a notch filter that doesn’t reflect.
1
u/passive_farting Mar 27 '22
Good job.
Could you elaborate on the use of the notch filters please?
Maybe time to invest in some nice cables. Don't want to spend your time chasing a cable fault.
2
u/vaughn22 Mar 27 '22
Yeah I’ll probably use more robust cables eventually. I didn’t plan super well where each board would go so I had to improvise a bit.
So the filters are there because this device is designed to connect to an existing RF leadup. There’s a klystron or SSA that provides power in the kW range and that signal runs through two directional couplers and a circulator. If the coupler S-matrix is known, you can infer its termination impedances using network analysis by measuring its S-parameters when it’s not terminated with matched loads on the forward and reverse ports (assuming coupled ports are matched), so I’m trying to measure the impedance of the circulator ports through the directional coupler at frequencies close to the RF drive. The drive signal itself, if I probe the couplers during operation, will enter my device, so the notch filters are there to kill it so it doesn’t saturate my amps or blow my downconverter.
3
u/passive_farting Mar 27 '22
Thanks, my bad, I must have missread something and didn't realise they were a filter on the input. Thanks for the detailed response.
You did plan, because the path loss isn't an issue. No one should give a crap about neatness at this stage.
1
u/mxxl Mar 27 '22
That’s great!
What is DUT on the picture? Will this be open source? Do you know the ballpark value of dynamic range?
2
u/vaughn22 Mar 27 '22
Highest purple board on the left is a return loss bridge that has a matched termination on it in the image. Don’t think I can go open source fully since I did this for work, but it’s not classified or proprietary or anything so I can share quite a bit. Obviously my lab “owns” it but we’re not monetizing it.
Don’t know what the dynamic range is just yet as It just went live so to speak, but stay tuned, I plan on sharing more
1
u/SCWthrowaway1095 Jun 09 '22
Just seeing this- very impressive!
How long did it take to make?
1
u/vaughn22 Jun 09 '22
Thanks! I've been working on this since May of last year or so. It's been a ride to be sure.
6
3
3
2
2
2
u/sahand_n9 Mar 26 '22
Holy craaaap! I haven't seen someone do RF breadbording like this over 15 years. While this might look cool, there are far better ways to do experiments in simulations and get it right on the 1st board turn. I personally much rather become more skilled at at than making a complex mesh of proto boards.
Qucs Studio is a very capable and free simulation tool that you can simulate a whole system and understand where the trade-offs are and what components are needed in the system.
8
u/curiouselectron Mar 26 '22
Have you used Qucs on an actual design? I rarely find RF components with models Qucs can utilize. Proprietary model formats seem to be the norm.
6
u/sahand_n9 Mar 26 '22
Yes I have! For a while at my last job, we had limited number of ADS licenses and started using Qucs for just simple cascaded S-parameters simulations and de-embedding. Once I got more used to it, I kept using it for system level simulations a lot too.
It has behavioral models of many common components and you can easily import S-parameter data or even SPICE netlists. No need for a native model at all.
5
u/curiouselectron Mar 26 '22
Ahhh, okay. We have an in-house python toolset we use for cascaded s-parameter simulations. That makes sense thanks for explaining to me!
3
u/baconsmell Mar 26 '22
At my work we have several different licenses but people will grab the most extensive one just to plot measured S-parameters. Where as I need the license with EM, layout and nonlinear simulation. I’ve lost several days during chip tapeout because people used up all the licenses. We keep sending email out to tell people if they simply want to just look at S-parameters, they can open it in excel.
5
1
3
u/DrunkenSwimmer Mar 26 '22
If I had to guess, this project was done specifically to learn how to do what you're saying. Each board serves a specific function, allows easy characterization of the parameters, and overall provides a concrete goal (build a VNA) that motivates the project. You're right that there's no need to build something like this, and it introduces a significant amount of potential problems, but not everything is intended to provide perfect function.
5
u/nnsmkngsctn Mar 26 '22
RF breadbording
That photograph only shows printed circuit boards.
-2
u/sahand_n9 Mar 26 '22
You haven't heard of the term "RF breadboarding"?
0
Mar 26 '22
[deleted]
2
u/sahand_n9 Mar 26 '22
Sorry I definitely didn't mean to negatively criticize this project or the approach to the experiment. There is nothing wrong with this. I was just merely saying that there are other ways to designing and experimenting with complex RF systems through simulation softwares and it will yield very accurate result if you know how to utilize them.
I have been designing transceiver systems for many years and have come to be very comfortable with that flow through experience. My personal opinion is that it's a better method and environment to make "prototypes".
1
u/stari41m Jun 11 '24
Honestly, your job seems really cool! Reading your other responses to this post, if you don’t mind, what background did you need to get a job like this? Like did you need a PhD?
1
1
1
1
u/squasher1838 Mar 27 '22
Frankly, you exude rashes of discipline, at least to me. You must love playing chess.
1
1
u/EnigmaticHam Mar 26 '22
Can you describe how it analyzes networks? And what a vector network even is?
6
u/xraymebaby Mar 26 '22
4
u/WikiMobileLinkBot Mar 26 '22
Desktop version of /u/xraymebaby's link: https://en.wikipedia.org/wiki/Network_analyzer_(electrical)
[opt out] Beep Boop. Downvote to delete
47
u/InvincibleJellyfish Mar 26 '22
Looks like a fun project :-)
I'd love to see the schematics and some close-ups of the different modules.