Search This Blog

Sunday 28 December 2014

Food and Science

Bad coffee

I like science and measurement  -- a theme that underpins this blog. Let's take a major source of pleasure for all of us (food!) and think about it in the scientific context.

Remember when fat was vilified? Now it's wheat. What's next, water?  -- oops, sorry, that's been done; most people I work with drink bottled water. At home, I guzzle from the tap, but drink bottled water in foreign lands based on analysis from biologists and recommendations from public and population health professionals.

Less than ~1% have gluten allergy. Now, scores say they are gluten sensitive and a myriad of so-called experts and opinions run amuck. We've got 3 friends with biopsy-proven celiac disease and I know how to cook to keep them happy and healthy.

I think most of my other gluten sensitive friends and colleagues are caught up in the latest food fad. But they all retort -- it says so on the web and TV; so it must be true! Why can't people just avoid the foods they don't tolerate and get on with life -- I see no need to buy the related magazines/cookbooks, watch quacks on TV, tell everyone they've discovered a life changing truth and turn it into a theology. Back to science:

Time for a primer on the best available food evidence set to parody of a nice pop song:




Video link : https://www.youtube.com/watch?v=tfH6qSSTa90&feature=em-subs

I changed the blog background format for better reading and to eliminate the dark feel.
Happy New Year from the cats and us!

Thursday 25 December 2014

Books

Best to you in 2015!

I got 2 new books this holiday season. I read them lying down — for low back and hip pain kept me off a chair for several weeks until I regained the needed core muscle strength plus re-established hip flexion and extension. I now appreciate that quality of life and back health lie directly related. Perhaps you might relate? I better go stretch; back in a moment...

Small Signal Audio Design: 2nd edition by Douglas Self.

Above — Small Signal Audio Design: 2nd edition by Douglas Self. With its content boosted by about 50%, Self took his great first edition into the stratosphere with this follow-on. I wish someone with his writing skills (epic clarity, practical insight and warmth) would write about RF topics. This book could serve as your the AF design bible for a long time.


Handbook of Microwave Component Measures by Joel Dunsmore.

Above — Handbook of Microwave Component Measures by Joel Dunsmore. Dr. Joel (a staffer who comments on the Agilent (now Keysite) Network Analyzer forums) wrote this book as a follow-on to his original and it's not a book for people who dislike math, theory and equations. I love this book for opening my eyes into the ways modern engineers measure Scattering parameters, consider the DUT, + calibration and also how an exciting "VNA design evolution" is exploding big-time.

My dad told me "if you hang out with and/or read stuff  by smart people you just might get smarter; so choose friends and authors wisely".  This book serves as a case in point. Although, I don't understand every chapter, equation or concept, I've got a new appreciation for and direction to go in home lab measurement know-how.

In short, modern microwave measures get done on VNAs, not 'scopes nor spectrum analyzers. New VNAs, although very expensive, may feature multiple signal sources and receivers with advanced calibration techniques to deliver amazing accuracy.

Each month, I hope to read that someone has released a fast but relatively cheap 3 GHz network analyzer with a dynamic range of  >= 120 dB (with at least 10 Hz minimum resolution) across its bandwidth. I'm not alone (see this thread for example), I've read many opinions and only 1 thing is certain, I want small gear and not bloated boat anchors from the past. At this point, getting a VNA for my desired minimum 3 GHz bench BW is not affordable.

No question homebrew or commercial hobbyist VNAs are a real option for some — just not me. The aforementioned book, an EE friend, and my experiences show a big source of bench error in network analysis is mismatch between the source and the DUT. All manner of mismatch may occur because of DUT reflections, crosstalk, receiver to source leakage etc.. It can take serious VNA design, added hardware and bench effort to isolate the source and receiver plus establish the proper 50 Ω test environment — even down at VHF - UHF.


Further, the calibration sets may cost ++ ; especially as you go into microwave. Consider this link by Kirkby Microwave Ltd. Modern commercial network analyzers allow you to input your particular calibration test set (or perhaps calibration connector parameters) to boost accuracy. Up-to-date, 2-port, professional grade network measurement costs $1500-2500 per GHz it seems.

All things considered, as amateur radiophiles, we live in exciting times and I'm sure you have your own thoughts and opinions on VNAs for 2015 and on.

Photography with cats proves difficult.

Photography with cats proves difficult.

Photography with cats proves difficult.


Above — Photography with cats in the house proves difficult. It never fails — depress the shutter and 1 cat or the other comes from nowhere and jumps in front of my intended subject. So here they are (hamming it up) with the lights set up for a dark colored book  — fairly strong + directional lighting at 5500 degrees Kelvin color temperature. I love experimenting with lighting and strive for different looks: some good, some harsh.

Blogger further processes photos so they look about 1/2 stop brighter than actual and this bothers me.

I run a calibrated monitor so the color and brightness of my local commercial lab color prints look like just my onscreen jpegs.

Email

I get much less email with the blog. Some people are still quite upset I shut down the old website, even though I had no alternative. The pops.net traffic trouble continues and at least for me, vindicates my decision. That's fine — I respect your opinion to a point. 1 guy called me a f***head for stopping the site in October and then later in December bluntly asked for substantial design help. Sorry, I'm a f***head and can't help you.


Sweeps

An emailer shared respectful concern about my use of #43 material for broadband transformers at VHF ( ~100 MHz ). He strongly felt that #61 material was better suited at VHF.


So glad I made these experiments, here's an excerpt of my email reply:

10 turns on a FT37-43 ferrite toroid were placed in-series between 2 SMA connectors.

Above —10 turns on a FT37-43 ferrite toroid were placed in-series between 2 SMA connectors, padded at input and output and then swept from 0 to 500 MHz in a TG-SA.

10 turns on a FT37-61 ferrite toroid

Above —10 turns on a FT37-61 ferrite toroid swept as above. You see little clinical difference and if anything, the 43 mix ferrite looks a tad better down lower. Somewhere above ~20 MHz, the ferrite "disappears" and the results of both mixes look similar. Both are lossy and work about the same. More windings on the #61 toroid does not boost the attenuation and actually may drop the SRF due to extra interwinding capacitance. I normally use a small 43 mix binocular or FT23-43 bifilar wound ferrite at lower VHF in my feedback amps.

Again, all the very best in 2015!

Tuesday 9 December 2014

Mixer IIP3 Notes

Greets###

As a measuring experimenter with a homebrew POV, I like to add new test equipment and procedures to my lab each year. With digitally processed spectrum analyzers getting more able and relatively cheaper over time, I think a spectrum analyzer (with a built in tracking generator) might prove one of the best toys to consider buying. As ever, a homebrew SA remains a valid option for more advanced builders.

A bench experiment challenges us at many levels: we'll often combine equations + calculations, intuitive analysis and quality measures to advance our understanding of what's going on inside these little silicon parts. Best of all, we gain the experience, confidence and know-how that may allow us to interpret phenomena outside our comfort zone.

Over time — applying curiosity and effort, we acquire and get to enjoy a small arsenal of analytic methods at both AC and DC: For example, measuring drain current, or transistor beta — or perhaps learning small signal analysis using hybrid parameters, or making return loss measures, inferring resonator Q, or measuring magnitude and phase (vector analysis). 3 other measures rank highly important to me: 2 tone intercept techniques to assess IMD, noise figure and phase noise. The latter 2 may take awhile, but I'm sure I'll get there.

IIP3 in Mixers

Pretty much everything about IMD measures we need to know lays in the pages of EMRFD Chapters 2 and 7. Further; many have written web sites or tutorials to help us. 1 great example is Rob, KD6OZH's Mixer IMD Page

As a new builder, I initially felt surprised that we needed to learn about both non-linear and linear behavior in AC circuits. Now I know better. Non-linear conditions like saturation, compression, crossover, intermodulation, plus other species of non-linear phenoms such as IMD in higher level (passive) LC circuits can lead to distortion and/or noise that may be quantified or inferred to aid design and understanding.

Much of this flies over my head. I measured the IIP3 of an ADE-1 mixer to learn the ropes.


I won't go into IIP3 definition and theory — it's been done by those much smarter than I.
In the mixer IIP3 context, this MCL file really helped me.

Let's explore the needed parts and set up for mixer IIP3 measures:

 Test Equipment
  1. 3 low noise signal generators
  2. A combiner such as a 6 dB hybrid (your HF-VHF return loss bridge)
  3. Attenuators
  4. Cables and 50 Ω connectors
  5. A 50 Ω detector -- I'll use a spectrum analyzer
  6. A device to test: ADE-1 mixer or....
Please know, I'm showing these experiments to foster discovery and discussion — and to document some early experiences. I don't go into a comprehensive diatribe or even show the best way to go : just 1 method to get it done. Our test equipment varies widely and you'll have to determine what works best for you in your lab.

I'm going to insert 2 tones into the RF port of an ADE-1 mixer: 9.00 MHz and 9.050 MHz. I tried a 20KHz, 50 KHz and 100 KHz tone spacing and when the mixer was assessed wideband (without a xtal filter after it), I found the exact tone spacing made little difference to the IIP3 within reason.





Above: My bench setup. The first order of business in IIP3 measurement is to assess the input intercept of your basic measurement apparatus. You should not see distortion on your spectrum analyzer screen — if so, eliminating this distortion is job #1. I learned that if you drive the SA too hard, you just might measure the IIP3 of your SA! 

To clarify. Your injected tones can create IMD products on your SA screen and we need eliminate these so we only measure the intercept of the device under test. Correspondence with an EE who measured intercepts with a very excellent Agilent SA that sells for many 10's of thousand dollars yielded insight. He found input intercept products may show up when driving that SA input with signals hotter than -20 dBm. This could also happen with a much cheaper SA. Judicious use of input attenuators will solve these woes and I'll show some experiments that demonstrate this.

The 9.050 MHz signal generator = a very low phase noise device [ tested by an engineer at -140 dBc @ a 20 KHz offset ]. The 9 MHz signal came from a homebrew LC signal generator ( EMRFD Figure 7.27) assumed to also exhibit low phase noise.  The 6 dB hybrid combiner is Figure 7.41 from EMRFD.

I tested my basic setup with a variety of powers from the signal generators. For example: -10 dBm, 0 dBm or 10 dBm. With the various signal generator powers, I got the most consistent measures with a 6 dB pad connected to each SG output. 

This in theory assures that 1 signal generator would be 18 dB down in output of the opposing signal generator and prevent them "talking to" or modulating each other during measures with higher signal generator power. I've since standardized these 6 dB pads in my personal intercept procedure. I typically run the 2 generators at 0 or - 10 dBm and insert at least 20-25 dB of  attenuation on the spectrum analyzer input.  Setups may vary and your experiments will guide you.
 
    Above — My 2 injected tones and "grass".

Above — My 2 injected tones and "grass". Love this. I saved this spectrogram to file with 20 dB SA attenuation switched in plus an external SMA 5 dB pad threaded on the SA input. Compare this to the transfer function below. I’m trying to keep the 2 tones around -20 dBm.



pectrogram with 25 dB SA attenuation switched in and no external 5 dB pad.


Above —  Spectrogram with 25 dB SA attenuation switched in and no external 5 dB pad. Look 3rd order products emerged from the noise @ 50 KHz out.  Same input attenuation as above: but why the difference?


Above — ADE-1 mixer and 70 MHz LO added.  The available power at the mixer RF port = -12.21 dBm and was used for all IIP3 measures shown. My 70 MHz LO signal came for a 3rd overtone Butler oscillator with serious buffering, a low-pass filter and a 6 dB pad to help ensure measurement fidelity.
 


Above — The mixer IIP3 measure. Wes shares the calculation as Equation 7.2 in EMRFD: IIP3 (in dBm) = Input power (dBm) + IMDR (dB) / 2 . My IMD ratio from above =  62.09 dB so IIP3 = -12.21 dBm + (62.1 dB/2) = 18.8 dBm. Now let's try with that external 5 dB pad connected and 20 dB of SA attenuation switched in:


Above — 5 dB external padded and SA internal attenuator set to 20 dB.

 IIP3 = -12.21 dBm + (60 dB/2) = 17.8 dBm.

Above — IIP3 = -12.21 dBm + (60 dB/2) = 17.8 dBm. The 1 dB power difference between this and the previous measure is about the power resolution of many spectrum analyzers.

 External 5 dB pad removed and SA attenuation switched to 30 dB.

Above — External 5 dB pad removed and SA attenuation switched to 30 dB.  IIP3 = -12.21 dBm + (58.95 dB/2) = 17.3 dBm.  Switching the internal attenuator to only 10 dB caused all manner of noise and products to emerge and IIP3 results were inconsistent when testing various devices.

I'll stop here since more than anything these experiments show you'll need to experiment to find a consistent technique for your measures. The real beauty of IIP3 or its cousin OIP measurement comes from the math. We can input intercepts into equations or programs to determine the performance of a system  — i.e. you measure individual stages and then design a complete receiver or a transmitter and enjoy the fruit.

At the very least, intercepts serve as figures of merit that allow us to compare, or to meet or beat our design goals. In the case of beloved amplifiers, we can measure stuff like gain, return loss, OIP3, gain compression and really get a handle on what we're stuffing onto a circuit board.

Thanks to my mentors and to Jason, NT7S for his measure comparisons and thoughts on mixer IIP3 measurement. 

More

During these experiments, I also advanced my wide band FM receiver design and made a few new bench modules. Here's a dash of pictures:

1 version of my ADE-1 mixer under test.

Above — 1 version of my ADE-1 mixer under test. This build features a diplexer on the IF port. On my first version I ran inductors wound on FT37-10 toroids for the diplexer, but the resonator Qu was only 85.7 so I substituted air wound coils. The diplexer boosted IIP3 by about 2 dB.

I bolted the SMA connectors onto the mixer circuit board. The green breakout board is well soldered to the copper ground plane at 6 points.

I built a bench module low-pass filter for 50 MHz using an ARRL handbook and Ladbuild and GPLA from the EMRFD CD

Above — I built a bench module low-pass filter for 50 MHz using an ARRL handbook + Ladbuild and GPLA from the EMRFD CD. The cursor is ~set at the 3 dB frequency

A TG + SA sweep of the filter breadboard

Above — A TG + SA sweep of the filter breadboard showed that the "2nd harmonic": 100 MHz lies ~ 61 dB down. OK, it's a keeper.
  
The boxed up and mislabeled LP filter.

Above — The boxed up and mislabeled LP filter. The 3 dB or half-power frequency is actually 51 MHz — still the ladpac software simulated pretty close considering 5% capacitors, inadvertent coil mounting changes and stray reactance. I soldered the parts right onto a solid copper ground plane.

A 88 --108 MHz double-tuned filter with green coupling wire.

Above — An 88 --108 MHz double-tuned filter with green coupling wire. I later changed the coupling, but in all cases double humped the response and then lightened the coupling while watching the 3 dB or half-power bandwidth, insertion loss and S11-S22. With the TG and SA plus a return loss bridge, you can sweep the input/output return loss and gain valuable insight.

I simply love frequency domain measures — and I'm a 'scope guy!

Best!