Network Analysers: The Electrical Kind

Instrumentation has progressed by leaps and bounds in the last few years, however, the fundamental analysis techniques that are the foundation of modern-day equipment remain the same. A network analyzer is an instrument that allows us to characterize RF networks such as filters, mixers, antennas and even new materials for microwave electronics such as ceramic capacitors and resonators in the gigahertz range. In this write-up, I discuss network analyzers in brief and how the DIY movement has helped bring down the cost of such devices. I will also share some existing projects that may help you build your own along with some use cases where a network analyzer may be employed. Let’s dive right in.

Network Analysis Fundamentals

As a conceptual model, think of light hitting a lens and most of it going through but part of it getting reflected back.

The same applies to an electrical/RF network where the RF energy that is launched into the device may be attenuated a bit, transmitted to an extent and some of it reflected back. This analysis gives us an attenuation coefficient and a reflection coefficient which explains the behavior of the device under test (DUT).

Of course, this may not be enough and we may also require information about the phase relationship between the signals. Such instruments are termed Vector Network Analysers and are helpful in measuring the scattering parameters or S-Parameters of a DUT.

The scattering matrix links the incident waves a1, a2 to the outgoing waves b1, b2 according to the following linear equation: \begin{bmatrix} b_1 \\ b_2 \end{bmatrix} = \begin{bmatrix} S_{11} & S_{12} \\ S_{21} & S_{22} \end{bmatrix} * \begin{bmatrix} a_1 \\ a_2 \end{bmatrix} .

The equation shows that the S-parameters are expressed as the matrix S, where and denote the output and input port numbers of the DUT.

This completely characterizes a network for attenuation, reflection as well as insertion loss. S-Parameters are explained more in details in Electromagnetic Field Theory and Transmission Line Theory but suffice to say that these measurements will be used to deduce the properties of the DUT and generate a mathematical model for the same.

General Architecture

As mentioned previously, a simple network analyzer would be a signal generator connected and a spectrum analyzer combined to work together. The signal generator would be configured to output a signal of a known frequency and the spectrum analyzer would be used to detect the signal at the other end. Then the frequency would be changed to another and the process repeats such that the system sweeps a range of frequencies and the output can be tabulated or plotted on a graph. In order to get reflected power, a microwave component such as a magic-T or directional couplers, however, all of this is usually inbuilt into modern-day VNAs.

In a laboratory grade VNA, we have two or four ports where a DUT is connected and the software does everything else for you. The only downside is that these instruments are very very expensive and price varies depending upon the range of RF frequencies or RF band coverage.

A DIY Scalar Network Analyzer

Let’s simplify things a bit. Say I have a simple filter I want to characterize in which case phase may not be necessary for my particular applications. I would just like to obtain the frequency-attenuation plot for the circuit so that I can use it correctly. In such cases, the DIY approach is the best and I would like to highlight a project on Hackaday.io for beginners. The idea is simple and involves using the Analog devices AD9851 to generate the desired signals.

The received signal power levels are converted into a voltage using the AD8307 logarithmic amplifier (datasheet, PDF). This voltage is read by a microcontroller and the results, in this case, are plotted using a Python script. Another restriction to this design is the 70 MHz upper limit though it may work for a lot of people getting started with such projects.

In my quest for a simple experiment, I purchased some AD9850 modules, op-amps, and other tidbits from eBay and made a PCB in KiCAD. I built the project in the Arduino UNO shield layout because my intention was to test it on an Arduino and then move up to an STM32 Nucleo which was also bought on the cheap. My revision 1.0 had some basic bugs so it is still a work in progress but I am sure it will work the same as the above project. Feel free to explore it and make one for yourself. Mine is shown below in OshPark Purple.

I did salvage the connectors from an old DVR board I had lying around so I suggest you replace that footprint with whatever you intend to use in your build.

More serious projects

If you are more comfortable with RF circuits and want a more serious project, there is another by [Henrik Forstén] that works from 30 Mhz all the way up to 6 Ghz. The difference here is that his design uses a lot of planning as well as specific RF chips to do the job.

The AD985x is replaced by the MAX2871 and the detector is replaced by an LMH2110. All the files are available on GitHub for our experimentation pleasure though this may not be everyone’s cup of tea. Though if you are getting a little bit interested in this stuff, be sure to check out the website for all the nice info provided.

Vector Network Analysers

The Vector Network Analyzer is able to generate phase relationships in addition to the magnitude measurements. This allows us to generate complex math models for the components under test and helps identify the capacitive and inductive properties as well. In addition to the above-mentioned applications in the DIY field, VNAs are important tools for analysis of dielectric properties of materials as well. When working with materials such as ceramics in a research environment, a simple method is to apply the silver paste to opposite faces and then use a network analyzer to measure the various parameters. This method is commonly known as capacitance method for measuring complex permittivity.

For higher frequencies where the EM wave needs a waveguide, transmission/reflection methods are preferred. In this method, the material under test is placed inside a waveguide and there is no electrical contact between the terminals and the DUT. This method is commonly called the transmission/reflection line method and is usually employed in the laboratory.

It’s also possible to extend this to make free space measurements, where horn antennas are employed and the DUT is suspended in free space. This allows for the material to be heated or cooled without affecting the instrument or the antennas and is commonly used for temperature analysis of materials.

Measurement Methods for Materials

Once S-parameters are obtained from experiment, this data can then be converted into dielectric properties. Some conversion methods (PDF) are:

  • Nicolson-Ross-Weir method,
  • NIST iterative method,
  • New non-iterative method,
  • Short circuit line method.

The most common parameter evaluated is permittivity or more specifically complex relative permeability (mu-r). The real part is the dielectric constant which is a measure of the amount of energy from an external electrical field stored in the material. The imaginary part is the loss factor and is the amount of energy lost due to external fields. The dielectric constant usually varies with the frequency which means that the same electrolytic capacitor won’t behave the same at all frequencies.

There has been a lot of research invested in creating new materials that will behave favorably at higher frequencies. Today there is a variety of materials being employed to create these devices and research involves characterization of the materials involved.

Another important term is loss tangent (tan delta) and is the ratio of the two. If you are interested in the subject, then I recommend reading the Rhode and Schwarz application note linked just above, as well as papers here and here.

Note: I have not tried to discuss methods like cavity perturbation though it may be of interest to some and can be explored on its own. Take a look at this application note from Keysight (PDF) for more information on the subject.

A short note on VSWR

To complete this write-up, I am going to talk a bit about VSWR which is more associated with antenna and radio setups than materials and VNA. A scalar network analyzer used in HAM radio setups is used to measure a number of things including the Voltage Standing Wave Ratio or VSWR. This parameter is a ratio of energy that was put into an antenna or RF line and the amount of energy that bounced back out of it due to imperfect matching. So essentially, the standing wave ratio (SWR) is a measure of how efficiently RF power is transmitted from the power source, through the transmission line, and into the load. It is ideal to have all the signal converted into RF energy or EM waves at the antenna, however, practically if the impedance of the amplifier and antenna are mismatched, some part will be reflected back just like we discussed in the initial sections. A scalar network analyzer can measure these as well as impedance at various frequencies. RF couplers assist in reducing the mismatch and improving performance in these cases.

What next?

The idea was to explain network analyzers and their applications in brief. You can extend this article by diving into radios and antennas, RF instrumentation, or get into microwave materials for high-frequency applications. For someone working with such materials, a VNA is indispensable as it does the heavy lifting of analysis and presents results in a very straightforward manner.

Image Source

We are moving into ceramics that have a low-temperature coefficient i.e. the dielectric constant remains constant over temperature and LTCC or Low-Temperature Co-fired Ceramics. LTCC allow us to layer components together enabling high-density electronics manufacturing. All that requires analysis which is possible thanks to a combination of advanced instrumentation as well as mathematical algorithms.

Steampunk-Inspired Art Clock!

Getting paid to do what you enjoy is a special treat. A machinist and fabricator by trade — hobbyist hacker by design — [spdltd] was commissioned to build a mechanical art installation with a steampunk twist. Having complete creative control, he convinced his client to let him make something useful: a giant electro-mechanical clock.

Pieced together from copper, brass, steel, aluminium, and stainless steel, this outlandish design uses an Arduino Yun — a combination Linux and Arduino microcontroller board — to control the stepper motor and query the internet for the local time. Upon boot, the clock auto-calibrates by rotating the clock face until a sensor detects an extra peg and uses that to zero on twelve o’clock; the Yun then grabs the local time over the WiFi and sends the stepper motor a-spinning ’till the correct time is displayed.

At first glance, you may find it hard to get an accurate read of what time it is, but an accent piece’s pegs denote the quarter hour once it lines up with the notch above each hour. At least this one doesn’t require you to match colours or do much math to check the time.

Continue reading “Steampunk-Inspired Art Clock!”

Have Chainsaw, Will Travel

What’s the worst thing that could happen if you strapped a chainsaw motor to a tricycle? Turns out the worst that happened to [ThisDustin] and his friends is that it turned out hilariously awesome.

This aptly-named ‘chainsawtrike’ isn’t much in the way of comfort, so a pair of foot pegs had to be welded onto the front forks, along with a mount for the chainsaw motor. The rear axle had to be replaced with 5/8″ keyed stock, trimmed to fit the trike wheel and secured with keyed hubs. [ThisDustin] and crew also needed an intermediate sprocket to act as a reduction gear.

After a test that saw the chain jump off the sprockets and working out a few kinks — like the ability to turn — the chainsawtrike  can haul around its rider at a pretty decent clip. Check out the video of it in action after the break.

Continue reading “Have Chainsaw, Will Travel”

Path To Craftsmanship: Don’t Buy Awful Safety Gear

A while back I tried to make a case for good safety disciple as a habit that, when proactively pursued, can actually increase the quality of your work as a side effect. In those comments and in other comments since then I’ve noticed that some people really hate safety gear. Now some of them hated them for a philosophical reason, “Ma granpap didn’t need ’em, an’ I don’t neither”, or ,”Safety gear be contributin’ to the wuss’ness of the modern personage an’ the decline o’ society.” However, others really just found them terribly uncomfortable and restricting.

In this regard I can help a little. I’ve spent thousands of terrible long hours in safety gear working in the chemical industry. I was also fortunate to have a company who frequently searched for the best safety equipment as part of their regular program. I got to try out a lot.

Continue reading “Path To Craftsmanship: Don’t Buy Awful Safety Gear”

Improving 3D Printed Gears with… Hot Water

Being able to print out custom gears is one area where 3D printing can really shine, and [Karl Lew] has been busy doing exactly that with pinion gears printed in PLA and mounted to stepper motor shafts, but there are tradeoffs. Pinion gears need to grip a motor shaft tightly – normally done with a screw through the gear and onto the motor shaft. But a motor and its shaft can get quite warm when doing a lot of work, and a tight screw on a hot motor’s shaft will transmit that heat into the PLA, which can then deform.

[Karl Lew] managed to improve things in an unusual way: using a hot water bath to anneal the gear while it is attached to the stepper shaft. Annealing PLA has the effect of increasing the crystallinity of the material, which – according to an article going into some detail about the process of annealing PLA – increases stiffness, strength, and heat deflection. The annealing process also shrinks the part slightly, which happens to result in a very tight joint made between the gear and the slotted stepper shaft if the gear is annealed while connected to the motor.

Continue reading “Improving 3D Printed Gears with… Hot Water”

Laser-cut Cardboard Planetary Gearset is Pretty, but Useless

[Shane] made a project that speaks directly to our heart — combining laser cutting, cardboard, and gears. How could it be any better? Well, it could do anything. But that’s quibbling. It’s fun enough just to watch the laser-cut cardboard planetary gears turn. (Video after the break.)

It was made on a laser cutter using the gear extensions for generating gears in Inkscape, everybody’s favorite free SVG editor.

In his writeup, [Shane] touches on all of the relevant details: all of the gear pitches need to be the same, and the number of teeth in the sun gear (in the center) needs to equal the number of teeth in the ring (outside) divided by the number of planets (orbiting, in the middle). So far so good.

Continue reading “Laser-cut Cardboard Planetary Gearset is Pretty, but Useless”

3D Printed lens Gears for Pro-grade Focus Pulling

Key Grip, Gaffer, Best Boy – any of us who’ve sat through every last minute of a Marvel movie to get to the post-credits scene – mmm, schawarma! – have seen the obscure titles of folks involved in movie making. But “Focus Puller”? How hard can it be to focus a camera?

Turns out there’s a lot to the job, and in a many cases it makes sense to mechanize the task. Pro cinematic cameras have geared rings for just that reason, and now your DSLR lens can have them too with customized, 3D printed follow-focus gears.

Gear_Selection_01_full_render_preview_featuredUnwilling to permanently modify his DSLR camera lens and dissatisfied with after-market lens gearing solutions, [Jaymis Loveday] learned enough OpenSCAD to generate gears from 50mm to 100mm in diameter in 0.5mm increments for a snug friction fit. Teamed up with commercially available focus pulling equipment, these lens gears should really help [Jaymis] get professional results from consumer lenses. 

Unfortunately, [Jaymis] doesn’t include any video of the gears in action, but the demo footage shown below presumably has some shots that were enabled by his custom gears. And even if it doesn’t, there are some really cool shots in it worth watching.

And for the budding cinematographers out there without access to a 3D printer, there’s always this hardware store solution to focus pulling.

Continue reading “3D Printed lens Gears for Pro-grade Focus Pulling”