<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Essential scrap</title>
<link>http://essentialscrap.com/</link>
<description>All articles on http://essentialscrap.com/.</description>
<atom:link href="http://essentialscrap.com/rss.xml" type="application/rss+xml" rel="self" />
<image>
    <url>http://essentialscrap.com/rsslogo.png</url>
    <link>http://essentialscrap.com/</link>
    <title>Essential scrap</title>
</image>
<item>
    <title>Improved frequency reference for ELV FC-500</title>
    <link>http://essentialscrap.com/fc500_freqref/index.html</link>
    <guid>http://essentialscrap.com/fc500_freqref/index.html</guid>
    <description>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;div id="content">
    &lt;h1 id="articletitle">Improved frequency reference for ELV FC-500&lt;/h1>
    &lt;div>
&lt;p>
As one of my first electronics projects, two decades ago I built a 
        &lt;a href="https://www.radiomuseum.org/r/elv_frequency_counter_fc_500.html">ELV FC-500&lt;/a>
     frequency counter out of a kit. It has worked great and found use in several projects where I have needed to check the accuracy of oscillators. I just wished for a bit more accuracy on the meter.
&lt;/p>
&lt;h2>Original design&lt;/h2>
&lt;p>The FC-500 is based on a 24-bit ripple carry counter implemented with 74HC393 chips.
A microcontroller controls clock gating and counter reset, and reads out the final count for display.
The display has 8 digit resolution, providing display resolution of 0.1 ppm.
This far surpasses my DS1054 oscilloscope, which only provides three digits in its frequency measurement.
&lt;/p>
&lt;p>Amazingly, the original schematics and build instructions are still available from ELV journal, split into 
        &lt;a href="https://de.elv.com/13-ghz-hand-held-frequenzzaehler-fc-500-teil-12-201884">part 1 (schematics)&lt;/a>
     and 
        &lt;a href="https://de.elv.com/13-ghz-hand-held-frequenzzaehler-fc-500-teil-22-201957">part 2 (build instructions)&lt;/a>
    . For the price of 1 EUR, I decided to buy both parts as PDF instead of trying to find the original magazines from my archives.&lt;/p>
&lt;p>What I really like about this device is that it correctly implements input-synchronous sampling of counter.
This means that it is able to display accurate frequency and period down to 0.01 Hz and possibly lower.
This was very handy for calibrating a clock that gave pulse once a minute.
&lt;/p>
&lt;h2>Improving the accuracy&lt;/h2>
&lt;p>The original design uses a basic 4.096 MHz clock crystal, combined with a trimmer capacitor.
The capacitor allows adjusting the meter using a known reference source.
However there is no temperature compensation for the crystal, which has about 0.2 ppm/°C slope.
My FC-500 had a few ppm of inaccuracy in room temperature before I started this project.
&lt;/p>
&lt;p>For highest frequency stability, common choises are ovenized crystal oscillators and rubidium references.
For a portable device like FC-500, these are too large, too power hungry and require continuous power.
&lt;/p>
&lt;p>Temperature compensated crystal oscillators are a reasonable alternative.
For a device like this, you want a VCTCXO: VC for voltage controlled, TC for temperature compensated, XO for crystal oscillator.
Voltage control allows adjusting the oscillator for initial calibration.
Temperature compensation should keep it accurate after that.
&lt;/p>
&lt;p>What remains is the aging of the crystal.
Typical VCTCXOs have ± 1 ppm per year aging specification.
There are MEMS based oscillators that are much more stable than this, but also more expensive.
&lt;/p>
&lt;p>A complication is that VCTCXOs with 4.096 MHz frequency are quite rare.
Fortunately 16.384 MHz is better available, and a divide-by-four circuit can be built with two flipflops.
As possible options, I identified the following parts:&lt;/p>
&lt;ul>
&lt;li>
        &lt;a href="https://www.digikey.fi/en/products/detail/iqd-frequency-products/LFTVXO009905BULK/8633504">LFTVXO009905BULK&lt;/a>
    : 14 EUR, crystal, ±0.9 ppm stability, ±1 ppm/year typical aging.&lt;/li>
&lt;li>
        &lt;a href="https://www.digikey.fi/en/products/detail/abracon-llc/AST3TQ-V-16-384MHZ-28/5017699">AST3TQ-V-16.384MHZ-28&lt;/a>
    : 18 EUR, crystal, ±0.3 ppm stability, ±1 ppm/year max aging.&lt;/li>
&lt;li>
        &lt;a href="https://www.digikey.fi/en/products/detail/sitime/SIT5356AI-FN-30VT-16-384000/12015442">SIT5356AI-FN-30VT-16.384000&lt;/a>
    : 73 EUR, MEMS, ±0.2 ppm stability, ±0.06 ppm/year typical aging.&lt;/li>
&lt;/ul>
&lt;p>
As tempting as the MEMS accuracy is, I decided to go with the cheapest one for now.
They are all pin compatible, so an upgrade is easy to do if I ever want to.
&lt;/p>
&lt;h2>Divider circuit&lt;/h2>
&lt;p>FC-500 operates with a 5 V logic supply, so I needed a voltage regulator to provide 3.3 V for the VCTCXO.
Other than that, there are the two flipflops for dividing the output frequency and a trimmer resistor for adjusting the control voltage.&lt;/p>
        &lt;a href="http://essentialscrap.com/fc500_freqref/schematic.png">
&lt;img src="http://essentialscrap.com/fc500_freqref/schematic.png" class="centerimg" title="FC-500 improved frequency reference schematics" />
&lt;/a>
&lt;p>The PCB is a 1-layer design, suitable for DIY manufacturing by etching or milling.&lt;/p>
        &lt;a href="http://essentialscrap.com/fc500_freqref/pcb_design.png">
&lt;img src="http://essentialscrap.com/fc500_freqref/pcb_design.png" class="centerimg" title="FC-500 improved frequency reference PCB design" />
&lt;/a>
&lt;h2>Installation&lt;/h2>
        &lt;a href="http://essentialscrap.com/fc500_freqref/mcu.jpg">
            &lt;img src="http://essentialscrap.com/fc500_freqref/mcu-thumb.jpg" class="marginimg" title="Wire to the Xin pin on the microcontroller" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/fc500_freqref/installed.jpg">
            &lt;img src="http://essentialscrap.com/fc500_freqref/installed-thumb.jpg" class="marginimg" title="Oscillator board installed" />
        &lt;/a>
&lt;p>Many microcontrollers have two pins that the crystal resonator connects between: Xin and Xout.
These are the signals of an internal inverter gate used for implementing a crystal oscillator.
&lt;/p>
&lt;p>When replacing a crystal resonator with an external crystal oscillator, the signal must be fed into Xin.
This is the pin with the variable trimmer capacitor, if the circuit has one.
You can also measure the amplitude with oscilloscope (with probe in 10x mode), where the Xout pin will show higher peak-to-peak voltage.
In this case I was able to check the pinout from the original schematic.
&lt;/p>
&lt;p>I glued my small auxiliary PCB near the battery compartment, and ran a wire to the microcontroller that is below the LCD display. The original crystal has to be desoldered, but initially I left the variable capacitor in place.&lt;/p>
&lt;p>This however caused a bit of a problem. The large capacitance at the end of a long wire, combined with high slew rate of 74LVC80 flipflops caused large spikes. Debugging this was complicated by the weird behavior of the MIC5504 regulator I originally had in the circuit. Apparently high frequency spikes can couple into its feedback circuit, causing output voltage to drop. They do mention in datasheet that &lt;em>"The MIC5501/2/3/4 is not suitable for RF transmitter systems."&lt;/em>.
&lt;/p>
&lt;p>Adding a 100 ohm series resistor on the output and cutting the trace that led to the trimmer capacitor made things a lot better.
I had already switched the regulator for XC6210, which proved stable even under the less than ideal conditions.
A final issue was that I had to cut a small groove in the LCD display holder to have space to pass the wire underneath.
&lt;/p>
&lt;h2>Calibration&lt;/h2>
        &lt;a href="http://essentialscrap.com/fc500_freqref/calibrated.jpg">
            &lt;img src="http://essentialscrap.com/fc500_freqref/calibrated-thumb.jpg" class="marginimg" title="After calibration" />
        &lt;/a>
&lt;p>I used a GPS module with pulse-per-second output as the calibration source.
Careful adjustment got me to the correct 1 Hz reading, but there seems to be a small disrepancy in the last digit between period and frequency measurement modes.
Probably this is a limitation of how accurately the firmware does mathematics.
I guess the high-accuracy MEMS oscillator would have been somewhat wasted in FC-500.
&lt;/p>
&lt;h2>Design files&lt;/h2>
&lt;p>The KiCad design files for the clock divider are available 
        &lt;a href="http://essentialscrap.com/fc500_freqref/elv_fc500_freqref.zip">here&lt;/a>
    .
&lt;/p>
&lt;/div>
    &lt;p class="signature">– Petteri Aimonen on 29.11.2023&lt;/p>
    &lt;p class="commentcount">
        &lt;a href="http://essentialscrap.com/comments/fc500_freqref/">
        Comment on this page
        &lt;!--#config errmsg="" -->
        &lt;!--#include virtual="/comments/${DOCUMENT_URI}?cmd=count" -->
        &lt;/a>
    &lt;/p>&lt;/div></description>
    <pubDate>Wed, 29 Nov 2023 00:00:00 +0000</pubDate>
</item><item>
    <title>TEM cell construction</title>
    <link>http://essentialscrap.com/tem_cell/temcell.html</link>
    <guid>http://essentialscrap.com/tem_cell/temcell.html</guid>
    <description>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;div id="content">
    &lt;h1 id="articletitle">TEM cell construction&lt;/h1>
    &lt;div>
        &lt;a href="http://essentialscrap.com/tem_cell/side_view.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/side_view-thumb.jpg" class="marginimg" title="Side view of finished TEM cell" />
        &lt;/a>
&lt;p>Building a TEM cell is easy in principle: it is just a metal box.
But it does require careful dimensioning to work well, and many of the formulas online are just plain wrong.&lt;/p>
&lt;h2>Impedance matching&lt;/h2>
&lt;p>The characteristic impedance of a TEM cell is the ratio of voltage and current at each point along its length.
Things are simplest if it matches your spectrum analyzer, which typically have 50 ohm inputs.
If needed, a transformer or a resistor circuit can adapt between different impedances.
Mismatched impedances lead to reflections at connection points, causing attenuation or amplification depending on frequency.
&lt;/p>
&lt;p>The impedance depends primarily on the ratio between the width of the middle conductor (septum) and the distance to ground planes (shield).
Wider septum and smaller distance give lower impedance.
The thickness of the material and the width of the shield affect it to a lesser extent, as does anything placed inside the TEM cell.
It is usual to aim for an impedance slightly higher than 50 ohms, as a device placed into the cell will reduce the effective distance to ground and thus the impedance.
&lt;/p>
&lt;p>The quality of matching can be characterized by 
        &lt;a href="https://en.wikipedia.org/wiki/Standing_wave_ratio">VSWR&lt;/a>
     measurement.
Ideal match would have a VSWR of 1, while a VSWR of 2 means that reflections cause up to 2x difference in amplitude along the cable.
In the context of EMC measurements, VSWR of 2 translates to 6 dB uncertainty in the measurement result.
The amplitude error caused by impedance matching is frequency dependent, and while it can theoretically be calibrated away, it is easier to just try for a good match.
&lt;/p>
&lt;p>Even a perfectly matched cell will have resonant frequencies which will limit its usefulness at high frequencies.
The first resonance peak will occur at a frequency where the width of the septum fits half a wavelength of signal.
The TEM cell can be used even beyond this frequency, but the amplitude response is uneven, increasing the uncertainty of measurements.
&lt;/p>
&lt;h2>Literature research&lt;/h2>
&lt;p>The history of TEM cells begins with the 1974 article
        &lt;a href="https://www.ieee.li/pdf/essay/generation_of_standard_em_fields_using_tem_transmission_cells.pdf">Generation of Standard EM Fields Using TEM Transmission Cells&lt;/a>
by Myron L. Crawford.
It details the basic structure of a TEM cell, its uses and the formula to calculate the impedance.
Simplified for air as the material between plates and use of thin material, the impedance is calculated as:
&lt;/p>
&lt;p>
Z&lt;sub>0&lt;/sub> = 94 ohm / (w / b + C&lt;sub>f&lt;/sub> / 0.0885)
&lt;/p>
&lt;p>Where &lt;em>w&lt;/em> is the width of the septum and &lt;em>b&lt;/em> is the height of the cell.
&lt;em>C&lt;sub>f&lt;/sub>&lt;/em> is the fringe capacitance, which Crawford determined experimentally for a few geometries using scale models.
&lt;/p>
&lt;p>Crawford's results are excellent, achieving VSWR of under 1.2 up to the resonant frequency of the cell.
In his case, the septum is 1.2 meters wide, leading to a low resonant frequency of 125 MHz.
A smaller cell will have higher resonant frequency, but there is less space to fit devices inside.
Fortunately the electronics we have in 2023 are much smaller than the electronics of 1974.
&lt;/p>
&lt;p>Skip forward to 2008. TEM cells are popular and widely used, but commercially available ones are expensive.
Sandeep M. Satav published the paper
        &lt;a href="http://eagle.chaosproject.com/sandbox/acstrial/newsletters/summer08/pp2.pdf">Do-it-Yourself Fabrication of an Open TEM Cell for EMC Pre-compliance&lt;/a>
which used PCB material for the construction of an open TEM cell.
Very good idea and easy to manufacture, and the construction method has found popularity in the DIY community.
&lt;/p>
&lt;p>Unfortunately there is a small mistake in the geometry calculations.
Satav uses the rectangular geometry described in Crawford's paper, and the value &lt;em>C&lt;sub>f&lt;/sub>&lt;/em> = 0.053 for fringe capacitance that Crawford determined experimentally.
But Crawford used closed TEM cells, which have four metal walls.
Satav's paper shows an open TEM cell with only two walls - easier to build and use, though less shielded from outside noise.
The fringe capacitance 0.053 is an incorrect value for an open TEM cell.
&lt;/p>
&lt;p>The error in the geometry yields a characteristic impedance of about 70 ohms.
While still usable, this shows up as less-than-ideal VSWR of over 2 in Satav's results.
&lt;/p>
&lt;p>Later in 2020, 
        &lt;a href="https://blog.michalhrouda.cz/2020/06/making-tem-cell-for-emc-measurements/">Michal Hrouda&lt;/a>
     built a cell using Satav's dimensions, yielding similar performance.&lt;/p>
&lt;h2>Scale models&lt;/h2>
        &lt;a href="http://essentialscrap.com/tem_cell/scale_model1.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/scale_model1-thumb.jpg" class="marginimg" title="Closed TEM cell scale model" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/scale_model2.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/scale_model2-thumb.jpg" class="marginimg" title="Open TEM cell scale model" />
        &lt;/a>
&lt;p>To verify that I was indeed correct about the mistake in dimensions, I decided to follow Crawford's example and built a scale model.
For material I used cardboard and copper tape, with a printed template to cut them accurately to size.&lt;/p>
&lt;p>For the first prototype, I chose the square cross section from Crawford's paper, scaled down to 40 mm shield width and 33 mm septum width.
At first I built it without the side walls.
With 50 ohm terminator at the other end, the S11 measurement done with NanoVNA V2 showed wildly varying impedance.
This is because the TEM cell acts as a 
        &lt;a href="https://en.wikipedia.org/wiki/Quarter-wave_impedance_transformer">quarter-wave impedance transformer&lt;/a>
    .&lt;/p>
        &lt;a href="http://essentialscrap.com/tem_cell/open_sides_33mm_40mm.png">
&lt;img src="http://essentialscrap.com/tem_cell/open_sides_33mm_40mm.png" class="centerimg" title="Impedance measurement of first scale model with open sides." />
&lt;/a>
&lt;p>The 700 MHz peak frequency matches a quarter wave with the 100 mm length of the cell.
From the 123 ohm peak impedance, we can deduce a characteristic impedance of sqrt(50 ohm * 123 ohm) = 78 ohm.
From this, we can calculate the actual fringe capacitance value and find it to be 0.033.
&lt;/p>
&lt;p>To verify that open vs. closed TEM cell makes a difference for the geometry,
I then added side walls and got characteristic impedance of 57 ohms.
&lt;/p>
&lt;p>Finally, I calculated new dimensions for an open cell with &lt;em>C&lt;sub>f&lt;/sub>&lt;/em> = 0.033, built a scale model and got a characteristic impedance of 55 ohms. I adjusted my final estimate of &lt;em>C&lt;sub>f&lt;/sub>&lt;/em> down to 0.03.&lt;/p>
&lt;h2>Size of the box&lt;/h2>
&lt;p>The larger the TEM cell, the bigger devices you can fit into it.
The common advice is to occupy at most 1/3rd of the vertical space.
And for proper coverage, you'd want to rotate the device into all three major orientations.
For 100 mm plate separation, that would give maximum device size of just 30x30x30 mm.
&lt;/p>
&lt;p>I decided to disregard this, because I don't have the room to store a huge box.
100 mm plate separation would have to do.
With the 0.03 value I obtained earlier, I calculated 300 mm as suitable width of the septum.
I scaled the shields in same ratio to 350 mm wide.
&lt;/p>
&lt;p>Another size decision I made was to have the ends taper at an angle of 45 degrees.
Shallower angle gives better impedance match in the tapered section, but it also increases the length a lot.
&lt;/p>
&lt;p>I had already bought some PCB material in three sheets of 610x457 mm.
With the 45 degree taper angle, center section length would be 300 mm and each tapered section takes 150 mm of material, for a total of 600 mm.
This allowed me to fit each of the three parts on its own sheet, minimizing cutting and joining of the pieces.
&lt;/p>
&lt;h2>Cutting the sheets&lt;/h2>
        &lt;a href="http://essentialscrap.com/tem_cell/cnc_routing.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/cnc_routing-thumb.jpg" class="marginimg" title="Cutting PCB sheets" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/cut_pieces.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/cut_pieces-thumb.jpg" class="marginimg" title="PCB sheets after cutting, applying some spray lacquer for protection" />
        &lt;/a>
&lt;p>For me, 
        &lt;a href="http://essentialscrap.com/tem_cell/../cnc2/">CNC router&lt;/a>
     was the obvious choice for cutting the PCB sheets.
But this could equally well be done with a jigsaw or just about any saw - a few millimeters of inaccuracy doesn't make much difference.
&lt;/p>
&lt;p>The material I used was 
        &lt;a href="https://www.tme.eu/fi/en/details/lam457x610e1.5/one-layer-laminates/">1-sided PCB sheet from TME&lt;/a>
    .
Solid sheet of copper, brass or aluminum would work equally well electrically.
I have seen other projects use double-sided PCB and joining the sides by soldering wires through holes, but I don't think that is necessary for the power levels involved.
&lt;/p>
&lt;h2>Construction&lt;/h2>
        &lt;a href="http://essentialscrap.com/tem_cell/corner_detail.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/corner_detail-thumb.jpg" class="marginimg" title="Detail of bent corner" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/corner_crack.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/corner_crack-thumb.jpg" class="marginimg" title="Cracked copper layer at the bend" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/corner_fix.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/corner_fix-thumb.jpg" class="marginimg" title="Fixing with copper tape and solder" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/corner_glued.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/corner_glued-thumb.jpg" class="marginimg" title="Glued corner" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/connector.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/connector-thumb.jpg" class="marginimg" title="Connector soldering" />
        &lt;/a>
&lt;p>The shield pieces on top and bottom have a bend to them - 45 degrees in my design, 30 degrees in designs with a shallower taper.
My plan was to route a slot almost all the way through the PCB material, to bend the sheet and use epoxy glue to fix the angle.
This would avoid having to solder together multiple pieces and ensure a continuous copper surface.
&lt;/p>
&lt;p>Unfortunately the copper layer disagreed with me and ripped apart in multiple places.
To fix this I used copper tape and soldered bridges every few centimeters.
Another layer of copper tape on top, and it should bridge the pieces well enough.
&lt;/p>
&lt;p>I chose to use SMA connectors at each end.
My initial plan was to just solder the septum to the middle pin and the shields to the body of the connector.
I quickly found out that this put way too much load on the connector middle pin, and resorted to using epoxy to keep the septum in place.
&lt;/p>
&lt;p>In the center section the correct distance and alignment of the sheets is maintained by 3D printed side supports.
I printed these at lowest infill setting to reduce their effect on capacitance.
&lt;/p>
&lt;p>In retrospect the best orientation would be to have insulating sides of each PCB towards the device being tested.
This avoids any accidental contact to the conductive surfaces.
I happened to solder the septum the opposite way around, but I can always add a plastic film for insulation.
&lt;/p>
&lt;h2 class="noskip">Results&lt;/h2>
&lt;p>I used NanoVNA V2 to measure the cell parameters. I collected the previosuly published measurement results for comparison:&lt;/p>
&lt;ol>
&lt;li>
        &lt;a href="https://www.ieee.li/pdf/essay/generation_of_standard_em_fields_using_tem_transmission_cells.pdf">Generation of Standard EM Fields Using TEM Transmission Cells&lt;/a>
     by Myron L. Crawford et al, 1974. Closed 4-wall 1.5 meter wide TEM cell made of 3 mm aluminum sheet.&lt;/li>
&lt;li>
        &lt;a href="http://eagle.chaosproject.com/sandbox/acstrial/newsletters/summer08/pp2.pdf">Do-it-Yourself Fabrication of an Open TEM Cell for EMC Pre-compliance&lt;/a>
     by Sandeep M. Satav et al, 2008. Open 30 cm wide TEM cell made of double-sided FR4 PCB material.&lt;/li>
&lt;li>
        &lt;a href="https://www.tekbox.com/product/open-tem-cells-emc-compliance-testing/">Tekbox TBTC2&lt;/a>
    , first released in 2016. Open 30 cm wide TEM cell, shields made of solid aluminum and septum from PCB material. Special construction of septum reduces high-frequency resonances.&lt;/li>
&lt;li>
        &lt;a href="https://blog.michalhrouda.cz/2020/06/making-tem-cell-for-emc-measurements/">Making TEM cell for EMC measurements&lt;/a>
     by Michal Hrouda, 2020. Open 30 cm wide TEM cell made of 0.5 mm copper sheet.&lt;/li>
&lt;li>
        &lt;a href="https://scholar.archive.org/work/zoqxc73ubbb7zpqvwqf3ihqg3y/access/wayback/https://repositum.tuwien.at/bitstream/20.500.12708/139396/1/Spindelberger-2022-Increasing%20the%20Test-Volume%20of%20Open%20TEM%20Cells%20by%20Using%20...-vor.pdf">Increasing the Test-Volume of Open TEM Cells by Using an Asymmetric Design&lt;/a>
    , by Christian Spindelberger et al, 2022. Asymmetric open 30 cm wide TEM cell made of 3 mm aluminum sheet.&lt;/li>
&lt;/ol>
        &lt;a href="http://essentialscrap.com/tem_cell/tem_cell_vswr.png">
&lt;img src="http://essentialscrap.com/tem_cell/tem_cell_vswr.png" class="centerimg" title="Comparison of published VSWR measurements from TEM cell builds" />
&lt;/a>
&lt;p>The results appear to confirm that the dimensions presented in 2. and used also in 4. are suboptimal.
Tekbox TBTC2 is superior in high-frequency performance.
In frequencies less than 500 MHz all correctly dimensioned cells give VSWR under 1.5, which is perfectly fine for all EMC pretesting purposes.
&lt;/p>
&lt;h2 class="noskip">Further improvements&lt;/h2>
&lt;p>Christian Spindelberger's paper details an asymmetric TEM cell design, which has a higher lower section and thin upper section.
This makes much better use of vertical space, as in a symmetric cell the upper partition doesn't have any practical use.
I'm not entirely sure how the asymmetry would affect the sensitivity of measurements.
&lt;/p>
&lt;p>Tekbox uses slots in the septum copper, bridged by some kind of ferrite or resistive material.
This dampens any perpendicular electromagnetic fields and reduces high frequency resonances.
A similar technique is explained in &lt;em>"Expanding the Bandwidth of TEM Cells for EMC Measurements"&lt;/em> by Myron L. Crawford, 1978 (DOI: 10.1109/TEMC.1978.303664), but instead of slotting the copper it uses absorbent material near the shield.
Again I do not know if these methods will effect sensitivity of the measurements.
&lt;/p>
&lt;h2>Design files&lt;/h2>
&lt;p>I have made a parametric FreeCAD design of the TEM cell I constructed.
The main dimensions are in a spreadsheet element and can be adjusted to custom dimensions.
The 3D model dimensions will then automatically update to match.&lt;/p>
&lt;p>The design files are available 
        &lt;a href="https://github.com/PetteriAimonen/tem-cell">GitHub&lt;/a>
     and the basic dimensions also in PDF files linked below:&lt;/p>
        &lt;a href="http://essentialscrap.com/tem_cell/OpenTEMCell_DimensionDrawing.pdf">&lt;a href="http://essentialscrap.com/tem_cell/OpenTEMCell_DimensionDrawing.png">
            &lt;img src="http://essentialscrap.com/tem_cell/OpenTEMCell_DimensionDrawing-thumb.png" class="centerimg" title="Dimension drawing of my design" />
        &lt;/a>&lt;/a>
        &lt;a href="http://essentialscrap.com/tem_cell/OpenTEMCell_CutTemplate.pdf">&lt;a href="http://essentialscrap.com/tem_cell/OpenTEMCell_CutTemplate.png">
            &lt;img src="http://essentialscrap.com/tem_cell/OpenTEMCell_CutTemplate-thumb.png" class="centerimg" title="Material cutting drawing" />
        &lt;/a>&lt;/a>
&lt;/div>
    &lt;p class="signature">– Petteri Aimonen on 31.10.2023&lt;/p>
    &lt;p class="commentcount">
        &lt;a href="http://essentialscrap.com/comments/tem_cell/temcell.html">
        Comment on this page
        &lt;!--#config errmsg="" -->
        &lt;!--#include virtual="/comments/${DOCUMENT_URI}?cmd=count" -->
        &lt;/a>
    &lt;/p>&lt;/div></description>
    <pubDate>Tue, 31 Oct 2023 00:00:00 +0000</pubDate>
</item><item>
    <title>Integrated LISN</title>
    <link>http://essentialscrap.com/tem_cell/lisn.html</link>
    <guid>http://essentialscrap.com/tem_cell/lisn.html</guid>
    <description>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;div id="content">
    &lt;h1 id="articletitle">Integrated LISN&lt;/h1>
    &lt;div>
        &lt;a href="http://essentialscrap.com/tem_cell/lisn.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/lisn-thumb.jpg" class="marginimg" title="Finished LISN mounted on TEM cell" />
        &lt;/a>
&lt;p>Measurement of conducted emissions is as simple as measuring either the voltage or current at the cables going to the device.
Typically this is done for the power cables.
Most common way is to measure voltage when power is supplied through a line impedance stabilization network.
&lt;/p>
&lt;p>The purpose of a LISN is to present a consistent 50 ohm impedance towards the device.
Any noise currents then yield a predictable noise voltage that can be measured.
&lt;/p>
&lt;p>For very low power devices, a simple series resistor could be used.
But most devices draw too much power to be supplied through a 50 ohm resistor, so an inductor is used instead.
Common types are 5 µH and 50 µH LISNs, depending on the lowest frequency being measured.
For pretesting, a 50 µH LISN can be used for all standards, as it covers the widest frequency range.
Most LISNs also include a prefilter to eliminate any noise conducted from the DC power supply towards the device.
&lt;/p>
&lt;p>Traditionally LISN and TEM cells are entirely separate pieces of equipment.
I chose to integrate a LISN directly to my TEM cell.
This makes things simpler in several ways:
&lt;/p>
&lt;ol>
&lt;li>Supplying power through the LISN prevents external noise from affecting radiated emissions measurements.&lt;/li>
&lt;li>Conducted emissions measurements are performed on top of a ground plate, and the TEM cell already has a ground plate.&lt;/li>
&lt;li>Being able to quickly compare radiated and conducted emissions gives clues to where the noise originates from.&lt;/li>
&lt;/ol>
&lt;h2>Design&lt;/h2>
&lt;p>I followed the basic design of LISN described in CISPR-16.
A two wire LISN has two output ports.
Depending on model they are connected either directly to the positive and negative terminal, or through a transformer to separate the 
        &lt;a href="https://resources.system-analysis.cadence.com/blog/msa2021-emc-and-common-mode-vs-differential-mode-noise">common mode and differential mode noise&lt;/a>
    .
First type is simpler, but requires extra math on the measurement instrument.
For easy use, I decided to include a transformer.
&lt;/p>
        &lt;a href="http://essentialscrap.com/tem_cell/lisn_schematic.png">
&lt;img src="http://essentialscrap.com/tem_cell/lisn_schematic.png" class="centerimg" title="LISN schematic" />
&lt;/a>
&lt;p>The input section consists of capacitors and a common mode choke.
Their purpose is to block any noise coming from the power supply.
Next are the series inductors. I used 2x 22µH on each line, for total of 44 µH.
This is close enough to 50 µH for my purposes.
A single inductor is fine too, but make sure to stay well below the saturation current rating of the components.
&lt;/p>
&lt;p>The output of the inductors goes straight to the connectors for the device being tested.
The output is also connected through capacitors to the measurement instrument.
In the simplest form, each capacitor would go to a coaxial connector, to which the 50 ohm impedance measurement instrument would be connected.
At high frequencies, the series inductors have high impedance, while the capacitors act as shorts.
For example, at 1 MHz a 50 µH inductor has 314 ohm impedance and 1 µF capacitor has 0.1 ohms.
This arrangement directly presents the measurement instrument's 50 ohm impedance to the load.
&lt;/p>
&lt;p>But instead of measuring each wire separately, we want to know if they fluctuate together (common mode) or inversely (differential mode).
A transformer can be used to calculate both the average and the difference between the channels.
&lt;/p>
&lt;p>Finally, there is a need to protect the measurement instrument from sudden transitions.
For tinySA Ultra, the maximum input level is 6 dBm or about 0.5 volts.
Turning on a 12 volt supply would result in a spike far higher than this, as would any accidental short-circuit or disconnection.
Some voltage clamping is needed, and this will result in a bit of signal attenuation.
I aimed for 10 dB attenuation in order to not decrease the sensitivity too much.
&lt;/p>
&lt;p>I did the output clamping in two stages.
First stage consists of 25 ohm series resistance and four high-current DSS16 schottky diodes.
These will clamp even large transients to 1 volt peak voltage on each line, while giving 6 dB of attenuation.
&lt;/p>
&lt;p>This is followed by the differential/common mode transformer setup.
I selected 
        &lt;a href="https://www.coilcraft.com/en-us/products/transformers/wideband-rf-transformers/th/swb/swb2010-sm/">SWB2010&lt;/a>
RF transformer because it has the middle tap needed for common mode measurement.
The models SWB1010 and SWB3010 are equally suitable, only difference is that the middle pin is cut shorter.
A double-pole switch connects either the transformer secondary or the middle tap of the primary to the output circuit.
&lt;/p>
&lt;p>
From the transformer the signal goes through 30 ohm resistance to a pair of BAT54 diodes that form the second clamp.
These do not tolerate large current spikes, but act faster and with smaller dropout voltage.
Because there is only about a volt coming into this stage, the current that passes through the 30 ohm resistor is less than 50 mA.
&lt;/p>
&lt;p>Despite these series resistors, the impedance at the capacitors should be kept at 50 ohms.
This is accomplished by a few dummy load resistors connected between the signals and ground.
These will dissipate as heat 90% of the input signal, leaving the 10% for the 10dB attenuated output connector.
As an extra benefit, the LISN will now have a reasonably correct impedance even when no measurement instrument is connected.
&lt;/p>
&lt;h2>Circuit board and enclosure&lt;/h2>
        &lt;a href="http://essentialscrap.com/tem_cell/lisn_pcb.jpg">
            &lt;img src="http://essentialscrap.com/tem_cell/lisn_pcb-thumb.jpg" class="marginimg" title="LISN PCB and enclosure insides" />
        &lt;/a>
&lt;p>The PCB is a single-layer design, suitable for home etching or CNC routing.
SMD parts are used, but nothing excessively tiny.
The resistors are of 0603 type because that is what I commonly use, but 0805 would fit too.
&lt;/p>
&lt;p>I designed the circuit to be mounted to the TEM cell wall, with binding posts going to the device and banana jack connectors towards the power supply.
A pair of M3 mounting holes provide the ground connection to the TEM cell shield through metal standoffs that I soldered to the copper.
&lt;/p>
&lt;p>The enclosure is 3D printed. It has a slider knob on the side that will hook into the switch on the PCB.
By using shorter metal standoffs to attach the PCB, the same holes can also be used for mounting screws to hold down the lid.
&lt;/p>
&lt;h2>Results&lt;/h2>
&lt;p>An ideal LISN would present 50 ohm impedance from each output terminal to ground at all measurement frequencies.
In practice this is not feasible, so test standards specify either 5 µH or 50 µH series inductance to be used.
For a 50 µH LISN, measurement range is usually 9 kHz to 100 MHz.
&lt;/p>
&lt;p>I measured the impedance using NanoVNA V2 and made a comparison against 
        &lt;a href="https://www.tekbox.com/product/tbl5016-1-50uh-16a-line-impedance-stabilisation-network-lisn/">Tekbox TBL5016-1&lt;/a>
    .&lt;/p>
&lt;img src="http://essentialscrap.com/tem_cell/lisn_impedance.png" class="centerimg" title="Comparison of LISN impedances" />
&lt;p>The impedance on my build fluctuates quite a bit, but almost remains within the limits set by CISPR16 standard.
I'm not sure what causes higher than expected impedance at the middle frequencies.
The drop at high frequencies could be due to PCB stray capacitance.
&lt;/p>
&lt;h2>Design files&lt;/h2>
&lt;p>KiCad design files are available on 
        &lt;a href="https://github.com/PetteriAimonen/tem-cell">GitHub&lt;/a>
    .&lt;/p>&lt;/div>
    &lt;p class="signature">– Petteri Aimonen on 31.10.2023&lt;/p>
    &lt;p class="commentcount">
        &lt;a href="http://essentialscrap.com/comments/tem_cell/lisn.html">
        Comment on this page
        &lt;!--#config errmsg="" -->
        &lt;!--#include virtual="/comments/${DOCUMENT_URI}?cmd=count" -->
        &lt;/a>
    &lt;/p>&lt;/div></description>
    <pubDate>Tue, 31 Oct 2023 00:00:00 +0000</pubDate>
</item><item>
    <title>Usage experiences</title>
    <link>http://essentialscrap.com/tem_cell/usage.html</link>
    <guid>http://essentialscrap.com/tem_cell/usage.html</guid>
    <description>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;div id="content">
    &lt;h1 id="articletitle">Usage experiences&lt;/h1>
    &lt;div>
&lt;p>TEM cells are best suited for eliminating highest noise components early in prototype cycle, and for testing improvements after a failed EMC test.
So far I have only tested prototypes, but the setup has already proven useful at spotting mistakes early.
&lt;/p>
&lt;h2>Limits and background noise&lt;/h2>
&lt;p>These tests were performed without any advanced correlation to far-field measurements.
A rule-of-thumb limit for TEM cell measurements is that anything over 40 dBµV (equals -67 dBm) is significant risk of failing in EMC tests.
&lt;/p>
&lt;p>Open TEM cells will catch some radio signals, even though they are not as sensitive in outside reception as actual antennas would be.
The background noise in my office consists mainly of FM radio in 88 MHz to 108 MHz band and a nearby 
        &lt;a href="https://en.wikipedia.org/wiki/Terrestrial_Trunked_Radio">TETRA&lt;/a>
     basestation at 390 MHz. Above 500 MHz there are more noise sources, including GSM base stations.
&lt;/p>
        &lt;a href="http://essentialscrap.com/tem_cell/background_noise.png">
            &lt;img src="http://essentialscrap.com/tem_cell/background_noise-medium.png" class="centerimg" title="Background noise measurement" />
        &lt;/a>
&lt;p>To be able to take the background noise sources into account in analysis, I have added gray background to them in 
        &lt;a href="https://tinysa.org/wiki/pmwiki.php?n=Main.PCSW">TinySA-App&lt;/a>
    .&lt;/p>
&lt;h2>Case 1: High conducted noise&lt;/h2>
&lt;p>This device is early in prototype cycle.
The PCB integrates a isolated flyback DC-DC converter for power-over-ethernet operation.
It also has a microcontroller and Ethernet interface.
Early testing allows easy changes in PCB layout and component choices to eliminate EMC noise.
&lt;/p>
&lt;div class="centerimg">
        &lt;a href="http://essentialscrap.com/tem_cell/dev1_before.png">
            &lt;img src="http://essentialscrap.com/tem_cell/dev1_before-medium.png" title="Measurement before modifications." />
        &lt;/a>
&lt;p>Emissions before modifications. &lt;b>blue&lt;/b>: radiated noise, &lt;b>red&lt;/b>: differential conducted noise,
&lt;b>green&lt;/b>: common-mode conducted noise&lt;/p>
&lt;/div>
&lt;p>Zooming in on the fuzzy section below 100 MHz reveals that it is full of harmonics of the 300 kHz SMPS frequency.
This noise is also very visible in the conducted measurements, indicating insufficient filtering on the power supply input.&lt;/p>
&lt;p>To test the effect of filtering, I added a series ferrite bead and a 100 nF capacitor before that.
Together with the existing decoupling capacitors, these form a low-pass pi-filter on the input supply.
This should block especially the differential component of conducted emissions.
&lt;/p>
&lt;div class="centerimg">
        &lt;a href="http://essentialscrap.com/tem_cell/dev1_after.png">
            &lt;img src="http://essentialscrap.com/tem_cell/dev1_after-medium.png" title="Measurement after modifications." />
        &lt;/a>
&lt;p>Comparison of emissions. &lt;b>blue&lt;/b>: radiated noise before modifications, &lt;b>green&lt;/b>: radiated noise after modifications, &lt;b>red&lt;/b>: differential conducted noise&lt;/p>
&lt;/div>
&lt;p>The modification eliminated practically all conducted emissions. It also significantly reduced the broadband radiated emissions.&lt;/p>
&lt;p>There remain significant emission spikes at multiples of 50 MHz frequency.
These correspond to the ethernet interface RMII reference clock signal.
To address this, I'm adding a series termination resistor in next PCB revision.
&lt;/p>
&lt;h2>Case 2: Excessive GPIO slew rate&lt;/h2>
&lt;p>A different device is further developed and may be undergoing EMC tests in near future.
To reduce risk of failing the tests, a pretest look at any emissions is done.
&lt;/p>
&lt;div class="centerimg">
        &lt;a href="http://essentialscrap.com/tem_cell/dev2_before.png">
            &lt;img src="http://essentialscrap.com/tem_cell/dev2_before-medium.png" title="Measurement before modifications." />
        &lt;/a>
&lt;p>Radiated emissions before modifications.&lt;/p>
&lt;/div>
&lt;p>Overall the spectrum looks clean, but there is a significant spike at most multiples of 25 MHz.
This corresponds to the clock rate of an external communication interface.
The microcontroller used has a configurable GPIO slew rate, which is currently set to highest speed for the GPIOs involved.
As a test, I reduced the slew rate to next slower setting:
&lt;/p>
&lt;div class="centerimg">
        &lt;a href="http://essentialscrap.com/tem_cell/dev2_after.png">
            &lt;img src="http://essentialscrap.com/tem_cell/dev2_after-medium.png" title="Measurement after software change." />
        &lt;/a>
&lt;p>Radiated emissions after software change.&lt;/p>
&lt;/div>
&lt;p>This simple software change eliminated most of the emission spikes.
Further testing and oscilloscope measurements are needed to verify that signal integrity on the communication bus is not affected.
Thanks to the advance testing in TEM cell, these software changes can now be performed at leisure before the test laboratory visit.
&lt;/p>
&lt;/div>
    &lt;p class="signature">– Petteri Aimonen on 31.10.2023&lt;/p>
    &lt;p class="commentcount">
        &lt;a href="http://essentialscrap.com/comments/tem_cell/usage.html">
        Comment on this page
        &lt;!--#config errmsg="" -->
        &lt;!--#include virtual="/comments/${DOCUMENT_URI}?cmd=count" -->
        &lt;/a>
    &lt;/p>&lt;/div></description>
    <pubDate>Tue, 31 Oct 2023 00:00:00 +0000</pubDate>
</item><item>
    <title>Alphabet LEGO bricks</title>
    <link>http://essentialscrap.com/alphabet_bricks/index.html</link>
    <guid>http://essentialscrap.com/alphabet_bricks/index.html</guid>
    <description>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;div id="content">
    &lt;h1 id="articletitle">Alphabet LEGO bricks&lt;/h1>
    &lt;div>
&lt;p>LEGO bricks with alphabet are weirdly unavailable in the 1x1 size.
There are 
        &lt;a href="https://www.lego.com/en-fi/product/alphabet-truck-10915">DUPLO bricks&lt;/a>
     and 
        &lt;a href="https://www.lego.com/en-us/kids/sets/dots/unicorn-creative-family-pack-2505d058f52c4e91860b6dd3fe36bf48">small round pieces&lt;/a>
     with letters, but each with only one letter.
Doing it that way needs a pretty big bunch of bricks to actually be able to spell something.&lt;/p>
&lt;p>Instead, I decided to make 1x1 bricks that have one letter on each side.
This way needs only one quarter the size of inventory of bricks on average.
I bought a lot of 250 pieces 1x1 white bricks from 
        &lt;a href="https://www.ebay.com/str/steinexperte">eBay seller stein-experte&lt;/a>
    .
Now I just need to add the text.
&lt;/p>
&lt;h2>Engraving&lt;/h2>
        &lt;a href="http://essentialscrap.com/alphabet_bricks/engraved.jpg">
            &lt;img src="http://essentialscrap.com/alphabet_bricks/engraved-thumb.jpg" class="marginimg" title="Bricks after laser engraving" />
        &lt;/a>
&lt;p>To engrave the bricks, I used the 
        &lt;a href="https://jyväskylä.hacklab.fi/wikipage/laser-cutter/">K40 laser cutter&lt;/a>
     at my local hackerspace.
The settings were 1000 mm/min speed and the smallest power the tube would run at.
&lt;/p>
&lt;p>
An aligment guide made it easy to place a stack of 10 bricks for engraving.
I would then incrementally rotate each stack and move it forwards to engrave each side.
&lt;/p>
&lt;video src="http://essentialscrap.com/alphabet_bricks/engraving.mp4" height="480" controls="controls" width="640">
&lt;/video>
&lt;h2 class="noskip">Inking&lt;/h2>
        &lt;a href="http://essentialscrap.com/alphabet_bricks/solvent_damage.jpg">
            &lt;img src="http://essentialscrap.com/alphabet_bricks/solvent_damage-thumb.jpg" class="marginimg" title="Solvent damage from alcohol-based pen" />
        &lt;/a>
        &lt;a href="http://essentialscrap.com/alphabet_bricks/bricks_inked.jpg">
            &lt;img src="http://essentialscrap.com/alphabet_bricks/bricks_inked-thumb.jpg" class="marginimg" title="Inked with water-based pen" />
        &lt;/a>
&lt;p>The CO2 laser just melts the ABS and does not give much contrast in the markings.
To make them more visible, I used a pen to color in the grooves.
Excess ink can then be wiped out, leaving a well-defined letter.
&lt;/p>
&lt;p>Initially I tried an alcohol-based permanent marker.
Unfortunately the alcohol caused tiny cracks in the ABS plastic, and the ink seeped into them.
A water-based gel ballpoint pen worked much better, and after drying the marking seems durable enough.
&lt;/p>
&lt;h2 class="noskip">Files&lt;/h2>
&lt;p>The Inkscape drawing of the DIY letter template is available 
        &lt;a href="http://essentialscrap.com/alphabet_bricks/template.svg">here&lt;/a>
    .&lt;/p>
&lt;/div>
    &lt;p class="signature">– Petteri Aimonen on 5.2.2023&lt;/p>
    &lt;p class="commentcount">
        &lt;a href="http://essentialscrap.com/comments/alphabet_bricks/">
        Comment on this page
        &lt;!--#config errmsg="" -->
        &lt;!--#include virtual="/comments/${DOCUMENT_URI}?cmd=count" -->
        &lt;/a>
    &lt;/p>&lt;/div></description>
    <pubDate>Sun, 05 Feb 2023 00:00:00 +0000</pubDate>
</item>
</channel>
</rss>