Hi everybody! I thought it would be nice to introduce a project I have been working on for some time, and which may be interesting for some other members as well. Along the way, I am hoping to get to get some support at the Keysight "Test to impress" contest - more on that later on
.
Usual TDRs need expensive high-speed components to measure the pulse run time on a cable. They send a short pulse down the cable and measure the time until the reflection of that pulse comes back to the same ("near") cable end. For that, they sample the voltage on the near end of the cable with high frequency. A resolution of about 10 cm on coax cable is common for low-end devices, which corresponds to about 1 ns time resolution and 1 GHz sampling rate for the ADC. The pulses must be so short that they do not overlap with their reflection even at the shortest permitted cable length.
My approach for a super cheap, super simple TDR is different. Instead of sending a short pulse with constant duration, I send pulses with variable length, and the overlap of the reflected pulse is my indicator that the pulse length is greater than the (electrical) cable length.
The overlap of pulse and reflection can easily detected, because when that happens, the peak voltage on the cable increases significantly. A high-speed diode and a capacitor are good enough to hold the peak voltage for measurement with a DMM or the built-in ADC of a microcontroller.
I described this concept in a video for the Keysight "Test to impress" contest already, and it very easy to understand once you see the oscilloscope plots there:
Now, how to generate the pulses with variable (and well known) length? Easy! I use an ECL logic XOR gate which gets a trigger signal on both inputs. One of the two inputs is delayed by a low pass filter, so the output is only "high" for a small moment. That low pass filter consists of a fixed capacitor (actually, switcheable for range selection) and a digital 8-bit potentiometer. As the time constant of the low pass filter depends on the the resistance in a linear manner, the resulting pulse length goes also in a pretty linear fashion with the potentiometer setting.
To prove my concept, I have built a prototype. The parts cost less than 50 Euro, even in single quantities. The STM32 Nucleo board made it easy to attach the Microcontroller, and creating the firmware online with MBED worked was surprisingly convenient (even though I missed the JTAG debugging and some other features I have with the IAR compiler at work). I suppose the whole thing could be built in quantities for less than 10 Euro, and in the size of a matchbox, if somebody really wanted.
The prototype has two ranges:
- 12 - 107 ns (approx. 1 m to 110 m, depending on cable type)
- 72 - 1028 ns (approx. 6.5 m to 1100 m, depending on cable type)
The resolution is 4 cm on the short range and about 40 cm on the long range (8 bit). However, I already have an idea how I could get the full resolution (4 cm) over the full range (100+ m), without physical range switching. Accuracy has not yet been proven (would need a temperature chamber and a load of cables with well known velocity factors), but the repeatability of the measurements is very good, and when I connect some cables in series the results are fairly consistent as well. LAN cables (CAT5, CAT 6) seem to come with a wide range of velocity factors, so I get up to 10% error with some of these. RG58 and RG216 can be measured very well.
Here are image of my "prototpe":
You can see I did not care much about shielding, current return paths, crosstalk, impedance matching, or other important things which must be considered when doing a true HF design. The circuit works anyway, as the real "high speed" section is very small and the most important parasitic effects can be compensated in software. Of cause, there are still some oddities and the performance could surely be be improved by putting more effort on a line driver with a faster slew rate, but that is beyond the limits of my small lab at home, especially the 25 years old 40 MHz Kikusui scope.
Right now I am waiting for Keysight to put my video online at the contest site. My plan is to release the schematic, some additional comments on the interesting details and the firmware here in the forum a soon as the contest is over. Of cause, I would be glad to get some votes at
http://www.keysight.com/main/editorial.jspx?cc=DE&lc=ger&ckey=2677452 from the members who like my idea (without wanting to take votes away from other forum members who also take part in the contest).
Comments are welcome!