A simplistic distortion-meter

Elvee

Member
2006-09-08 2:04 pm
Here is a very simple and easy THD meter project for beginners.

Of course, it cannot compare with commercial instruments, or even projects like Cordell's, but the investment in time, money and effort is on a completely different scale.

It only requires standard, consumer-grade parts (5% carbon resistors and 10% capacitors, common opamps), needs no component sorting or selection, and is completely adjustment-free.
It works on a single, non-regulated supply, and is easy to use, making it ideal for educational/didactic purposes.

It has three ranges: 100%, 10% and 1%. On the 1% range, the measurement floor and usable resolution is 0.01%.

The indicator is simply a digital multimeter in the 2V range, the full range voltage being 1V.

The circuit is based on a SVF (state variable filter), making it highly tolerant to components inaccuracies: they have no impact on the depth of the null, only on the exact frequencies.
Compared to a double T, it is a huge improvement, and it makes frequency variation easy with any low-cost stereo potentiometer.
With the values shown, the frequency range is 500~5000Hz, this can easily altered or augmented by changing/switching the integrator's capacitors.

The discrete precision rectifier renders operation possible from 30Hz to 30KHz (harmonics up to 150KHz).

The first version has a discrete residue amplifier.
The second schematic is annotated with DC quiescent voltages, and the third shows a fully integrated version.

Some pics of my prototype follow.
 

Attachments

  • DistoGR2.gif
    DistoGR2.gif
    30.6 KB · Views: 909
  • 100_5172.JPG
    100_5172.JPG
    275 KB · Views: 323
  • 100_5166.JPG
    100_5166.JPG
    289.3 KB · Views: 802
  • 100_5163.JPG
    100_5163.JPG
    312 KB · Views: 815
  • dist3.gif
    dist3.gif
    32 KB · Views: 841
  • distann.gif
    distann.gif
    36.2 KB · Views: 870
Last edited:

Elvee

Member
2006-09-08 2:04 pm
Doh!

What about input protection for incorrect settings. Diodes to the rails or suchlike.
With R1 and C1, it could probably survive momentarily a direct connection of the input to the 230V mains.
Not something I'd recommend, but rugged enough to survive "normal" mishaps.

Some instructions for those unfamiliar with manual THD meters:

-Connect input to the A.U.T. and output to a DVM, range 2V, select "Set level" and adjust the level to read ~50% (0.5V)
-With the main tuning pot P2, search for the maximum amplitude. When done, adjust level to read exactly 1.000V.
-Select "100%" and adjust P2 for a minimum reading
-Switch to "10%" and adjust fine tune P3 for minimum
-If necessary do the same in 1% range

The output is linear, and 1V=100%, thus a reading of 110mV in the 10% range is equivalent to 1.1% distortion.

Note that the rectifier is not a true rms, and for high levels of multiple harmonics, the reading will be slightly underestimated, but at "normal" distortion levels, this effect is negligible.

For example, a pure triangle wave reads 11.2% instead of the actual ~12% it should, but this shouldn't be a problem as this instrument is not destined to be used in metrological applications
 

Frex

Member
2009-11-22 7:39 pm
With R1 and C1, it could probably survive momentarily a direct connection of the input to the 230V mains.
Not something I'd recommend, but rugged enough to survive "normal" mishaps.

I'm not sure that your 22k input potentiometer survive on a 230V main direct connection... (it must dissipate ~2.4W).

Frex
 

Elvee

Member
2006-09-08 2:04 pm
I'm not sure that your 22k input potentiometer survive on a 230V main direct connection... (it must dissipate ~2.4W).

Frex
Certainly not for a long time, in this sentence:
With R1 and C1, it could probably survive momentarily a direct connection of the input to the 230V mains.
the important word is momentarily: the time to realize there is a funny smell around, and dive to pull the plug....
 

Frex

Member
2009-11-22 7:39 pm
Hello,

You are right Elvee, but you probably need to unplug it very faster ! ;)
So, about your design, did you have done some Bode plots to show notch depth and width in it's frequency setting range ?
Often, graphs speak more than words.
Regards.

FRex
 

Elvee

Member
2006-09-08 2:04 pm
Here you are:
First a global outlook with the frequency adjusted at 1KHz, marker at 2KHz (gain error = 0.4dB).
Then a zoom at the two frequency extremes.
And finally, the impact of random component deviations on the depth of the null.

Surprisingly, the fundamental rejection performance of the physical prototype is significantly better than predicted by the sim.
Perhaps caused by parasitic capacitance of the potentiometers, I don't know exactly
 

Attachments

  • SVF1.jpg
    SVF1.jpg
    175.7 KB · Views: 344
  • SVF2.jpg
    SVF2.jpg
    182.4 KB · Views: 269
  • SVF3.jpg
    SVF3.jpg
    187.5 KB · Views: 180
  • SVFmc.gif
    SVFmc.gif
    50.4 KB · Views: 193

Elvee

Member
2006-09-08 2:04 pm
I made some more detailed measurements.
I didn't make complete plots, since it is of little interest: the general form is that of any other second order system.
Two details have an importance, mainly the fundamental leakage and accessorily the attenuation of harmonics.

As I suspected, the actual performance is better than predicted by the sim, at least for mid-range frequencies: at 1KHz, I measured 0.0065% leakage.
This degraded to 0.14% at 300Hz and 0.36% at 3KHz (I used 2.2nF tuning capacitors to center the geometric mean on 1KHz).

These figures are somewhat surprising: one would expect a degradation at the frequency extremes, but not of that magnitude.

In fact, all has to do with the parasitic capacitances: at 1KHz, the wiring to the frequency pots creates a slight capacitive overcompensation, which is about right to compensate the phase shift of the TLO84.
But at the frequency extremes, it works in the wrong direction: at the maximum frequency, there is no compenstion at all when it would be most needed, and at the minimum, the compensation is maximal, ie too large, and in addition, the available loop gain is decreased by the potentimetric arrangement of the frequency controls.

Better performances at low frequency would be achievable by connecting the pots as variable resistors, but I opted for the potentiometric configuration to improve the stability and reduce the effect of wiper resistance.
With high quality wirewound types, the resistive method would be preferable.

It should be possible to properly compensate the filter for the whole frequency range by adding small capacitors (several pF) across R4 and R6, and between the wiper and cold terminals of the pots.

I'll test it one of these days.

One (important) thing I forgot to mention last time: the tuning capacitors must be of a low loss type to be able to achieve the advertised null depths.

Polystyrene is best, that's what I used, second best is polypropylene (foil).
Mica or good COG ceramics are a third option.
No other commonly available dielectric is suitable: even polycarbonate would degrade performances by an order of magnitude.