Author Topic: Equipment to testing band pass filters?  (Read 14142 times)

0 Members and 2 Guests are viewing this topic.

Offline SoftwareSamuraiTopic starter

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Equipment to testing band pass filters?
« on: September 17, 2011, 12:02:06 am »
Does anyone know of a way to accurately test a passive band pass filter that doesn't involve buying/renting expensive equipment such as the AT6011? Perhaps a DYI method involving reasonably-priced equipment?

I'm designing some passive band pass filters in the MHz range. I've got a Quakko SFG-2120 DDS and a Hantek DSO, and while I can manually scroll through the frequency range while watching the FFT on the o'scope, I'm finding it very difficult to accurately plot the filter's curve in order to verify the design. (Perhaps I'm not using them correctly?) I would love to get an AT6011, but alas I'm not flush with such disposable income at the moment. I've though about renting, but that seems like a bit of a hassle, especially since I may need to do testing several times a month in unpredictable intervals.

Any thoughts/recommendations anyone?

Thanks!
« Last Edit: September 17, 2011, 12:04:08 am by SoftwareSamurai »
 

Offline Kiriakos-GR

  • Super Contributor
  • ***
  • !
  • Posts: 3525
  • Country: gr
  • User is banned.
    • Honda AX-1 rebuild
Re: Equipment to testing band pass filters?
« Reply #1 on: September 17, 2011, 12:20:20 am »
How many Watts they will pass from it ?
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10206
  • Country: nz
Re: Equipment to testing band pass filters?
« Reply #2 on: September 17, 2011, 12:48:12 am »
What kind of mhz range?

100-500mhz is going to be more tricky than 1-10mhz :)


« Last Edit: September 17, 2011, 12:52:09 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline SoftwareSamuraiTopic starter

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #3 on: September 17, 2011, 12:51:42 am »
The BPFs I'm designing are for small signal applications. +5V, 100mA, 1-20 MHz range.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10206
  • Country: nz
Re: Equipment to testing band pass filters?
« Reply #4 on: September 17, 2011, 12:58:14 am »
It probably wouldn't be that hard to build something that can sweep from 1-20mhz and record the output amplitude.

Off the top of my head, something like a micro connected to a 1-20mhz freq generator IC.
Then use a precision rectifier to convert the BPF output to DC and measure the voltage with the micro ADC.
Could sweep the range quite slow and record lots of amplitude points.
Could even connect a graphical LCD to the micro and plot the graph.

I guess it depends how accurate you need the data.
« Last Edit: September 17, 2011, 01:05:28 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline SoftwareSamuraiTopic starter

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #5 on: September 17, 2011, 02:21:21 am »
Yeah, that could work. Any idea how I could capture the phase shift as well?
 

Offline Zad

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: gb
    • Digital Wizardry, Analogue Alchemy, Software Sorcery
Re: Equipment to testing band pass filters?
« Reply #6 on: September 17, 2011, 03:47:53 am »
Doing amplitude (scalar) response is pretty easy, you just need a sweep frequency generator (also known as a wobbulator) and a simple detector. Elektor published a design for one a few years ago. http://www.elektor.com/magazines/2008/october/rf-sweep-frequency-generator-spectrum-analyser.684208.lynkx?tab=4

If you are doing vector analysis (to obtain the phase) then things get somewhat more difficult and more expensive. Even relatively low budget amateur radio designs come in at several hundred dollars. Basically you have two programmable synchronous frequency sources. You pump the primary signal through the DUT, and then mix the output with a copy of the primary signal, and also the second source which is programmed to have a 90 degree phase shift.  Pass the outputs through low pass filters and digitise the levels to give you In-phase and Quadrature components.


Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7684
  • Country: au
Re: Equipment to testing band pass filters?
« Reply #7 on: September 17, 2011, 04:09:08 am »
Do it retro-style!

Insert a series of discrete frequencies into the BPF & look at the output on your 'scope in its normal mode.

Write the frequency & input & output levels down on paper,& after you have a collection of values,graph them(by hand,or using an
Excel app.)

With a multichannel Oscilloscope you can check phase in the same manner--compare the zero crossings at input & output to give you the delay,then calculate the phase,then graph as before.

But wait!,there's more!

Amplitude/frequency & phase/frequency graphs don't completely characterise a filter---to do it properly,you also need to determine input & output impedance-v-frequency.

You can do this retro-style too!---the oldtimers did! You only need to make up an impedance bridge & again test at discrete frequencies.

Obviously a sweeper would make it all easier,but it can be done!

VK6ZGO
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 3876
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #8 on: September 17, 2011, 11:24:46 am »
Yeah, that could work. Any idea how I could capture the phase shift as well?

That is what the 'sync' output on your function generator is for.  Connect it to the trigger and/or second channel of your oscilloscope.  Phase is now calculated from the time delay between the sync signal rising edge and the zero crossing of the output.  This is also often necessary for measurements deep in the stop band where the signal amplitude may be too small to accurately trigger from.  You want to be looking at the time domain, not the FFT.  The FFT is useful if you want to look at non-linearities, but it is not the best way to measure linear transfer functions with a FG/scope.

Better yet is to probe the actual input to the filter right at the input: function generators, even DDS units are rarely the most accurate devices in either amplitude or phase: I have seen the output phase shift relative to the sync signal by over a degree when changing amplitude ranges.  The only tricky part here is making sure that your probe doesn't influence the signal.  Try to clip a 10X probe right to the filter input terminal.

It is fairly easy to write a computer program to sweep your FG and capture waveform data from the scope to measure the entire transfer function.  For simple characterization like just measuring the gain, 3dB points or the maximum ripple, it is just as easy to do by hand.

Whether you use a cheap scope or a fancy VNA, audio frequency or RF, it is always a good idea to measure the transfer function of a segment of coax before
 

Offline joelby

  • Frequent Contributor
  • **
  • Posts: 634
Re: Equipment to testing band pass filters?
« Reply #9 on: September 17, 2011, 01:45:26 pm »
Slightly cheaper than the Atten unit and better for testing filters might be the VNWA3 from SDR-Kits: http://sdr-kits.net/ . It's a 1.3 GHz vector network analyser, which is great for testing filters, complex impedances and more. I think mine was around $650.
 

Offline Tony R

  • Regular Contributor
  • *
  • Posts: 117
  • Country: 00
Re: Equipment to testing band pass filters?
« Reply #10 on: September 17, 2011, 02:33:07 pm »
Do it retro-style!

Insert a series of discrete frequencies into the BPF & look at the output on your 'scope in its normal mode.

Write the frequency & input & output levels down on paper,& after you have a collection of values,graph them(by hand,or using an
Excel app.)

...

VK6ZGO

That's what i was thinking, i have done it before too, in fact if the band with was not to wide or i did not need that high of resolution. just remember, go in a logarithmic scale, kind of pointless not to, and kind of a waist of time if you graph it logarithmically, which bode plots are.
Tony R.
Computer Engineering Student
Focus: Embedded Assembly Programming, Realtime Systems,  IEEE Student Member
 

Offline Flavour Flave

  • Regular Contributor
  • *
  • !
  • Posts: 76
  • Country: 00
  • Never knowingly unoffensive.
Re: Equipment to testing band pass filters?
« Reply #11 on: September 17, 2011, 02:35:32 pm »
How about this cheap and very accurate diy VNA?



From here http://www.makarov.ca/vna.htm

 

Offline sub

  • Regular Contributor
  • *
  • Posts: 107
  • Country: au
Re: Equipment to testing band pass filters?
« Reply #12 on: September 18, 2011, 12:57:37 am »
If you're keen to use an automated setup, Analog make a gain/phase detector IC, the AD8302 (AU$32.47 at Farnell).  I've not used it, but it might be something to look at if you can't afford a real VNA.

http://www.analog.com/en/rfif-components/detectors/ad8302/products/product.html
 

Offline SoftwareSamuraiTopic starter

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #13 on: September 18, 2011, 02:50:49 am »
If you're keen to use an automated setup, Analog make a gain/phase detector IC, the AD8302 (AU$32.47 at Farnell).  I've not used it, but it might be something to look at if you can't afford a real VNA.

http://www.analog.com/en/rfif-components/detectors/ad8302/products/product.html

This peaks my curiosity! If only I had time to whip up a complete board & circuit for it. (Hmmm. I wonder if I could breadboard it just to get the numbers I need...)
« Last Edit: September 18, 2011, 02:57:12 am by SoftwareSamurai »
 

Offline Zad

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: gb
    • Digital Wizardry, Analogue Alchemy, Software Sorcery
Re: Equipment to testing band pass filters?
« Reply #14 on: September 18, 2011, 04:26:21 am »
Be for you jump in at the deep end, do some Googling first. Due to the way the AD8302 calculates phase, there is inaccuracy around the 0/180deg points, and in a simple setup, it isn't possible to distinguish the sign of the phase difference. So (for example) +30deg is the same as -30deg (or 330deg if you prefer). The gain detector is just two log amps and an op-amp. Cool little chip though.

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: Equipment to testing band pass filters?
« Reply #15 on: September 18, 2011, 10:27:27 am »
I agree, I'd do it this way only because the tools to do it are usually available in your bench, a good FG + scope, and does the job if you need to do it infrequently.

For phase you can quickly eyeball it with a Lissajou figure.

Do it retro-style! ........
Obviously a sweeper would make it all easier,but it can be done!
Best Wishes,

 Saturation
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11705
  • Country: my
  • reassessing directives...
Re: Equipment to testing band pass filters?
« Reply #16 on: September 18, 2011, 10:32:42 am »
For phase you can quickly eyeball it with a Lissajou figure.
complex FFTs provide you with both magnitude and phase difference. drawback... you have to code it yourself, if you are not willing to pay for a fortune.
« Last Edit: September 18, 2011, 10:34:41 am by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 3876
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #17 on: September 18, 2011, 10:55:56 am »
complex FFTs provide you with both magnitude and phase difference. drawback... you have to code it yourself, if you are not willing to pay for a fortune.
[/quote]

This only works if the detector and the function generator are synchronous.  Otherwise the phase of the FFT is meaningless.  The FFT function on most oscilloscopes only shows the magnitude for this reason.  In any case, using an FFT for network analysis is not usually a big advantage: it actually has a worse SNR than a typical swept-receiver measurement.  This is exactly because of the huge advantage FFTs have in spectrum analysis: they are recording data at every frequency at all times.  In a network analyzer with a swept source (rather than a white noise or impulse source), that signal is noise most of the time.
 

Offline SoftwareSamuraiTopic starter

  • Regular Contributor
  • *
  • Posts: 170
  • Country: us
Re: Equipment to testing band pass filters?
« Reply #18 on: September 18, 2011, 02:03:06 pm »
Be for you jump in at the deep end, do some Googling first. Due to the way the AD8302 calculates phase, there is inaccuracy around the 0/180deg points, and in a simple setup, it isn't possible to distinguish the sign of the phase difference. So (for example) +30deg is the same as -30deg (or 330deg if you prefer). The gain detector is just two log amps and an op-amp. Cool little chip though.
Yeah, I saw those limitation in the datasheet. Got me thinking that if I were to put two of them together in parallel, one with a modified reference signal that's +90deg from the original reference signal, then one of them should always be producing an "accurate" phase reference, and by comparing the output of both, the phase could be distinguished between +deg and -deg.

Theoretically, that is.

As for the gain detector, perhaps adding an amp to feed this chip (with an LC filter) could help distinguish the signal from the noise better and increase the gain detector's accuracy?

(You can see why I said this peaks my curiosity! I can see a whole lot of fun R&D-ing a board with this chip! Tons of possibilities here!)
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11705
  • Country: my
  • reassessing directives...
Re: Equipment to testing band pass filters?
« Reply #19 on: September 18, 2011, 02:08:21 pm »
This only works if the detector and the function generator are synchronous.
our dso got 2 channel right? ch1 = input (ie before the DUT, after the signal), ch2 = DUT output. to compensate for ch's phase discrepancy, replace DUT -> short. so, FFT1 = ch1, FFT2 = ch2... FFT1 - FFT2 = difference. sure my rigol cannot do FFT subtraction. :P
Otherwise the phase of the FFT is meaningless  ... The FFT function on most oscilloscopes only shows the magnitude for this reason.
its up to you to put a meaning to it or not. ;)
it actually has a worse SNR than a typical swept-receiver measurement
ignore the (other) harmonics. feed in sine as clean as you have. run FFT, get the freq with max magnitude only, thats our carrier! now look at the complex number's phases for that element (frequency) in FFT1 and FFT2, substract... we got phase difference.
In any case, using an FFT for network analysis is not usually a big advantage:
it has! you dont have to pay a fortune for it ;)
This is exactly because of the huge advantage FFTs have in spectrum analysis: they are recording data at every frequency at all times.
so thats the advantage, but you dont have to have that huge. as i said, ignore the harmonics. only thing to concern with FFT is spectral leakage, worst if it reaches the carrier frequency. i see thats the major drawback that makes FFT not suitable for all application. and you have to put the algorithm in hardware as the second.

now i'm not familiar with VNA or SA hardware design, and i know its the way to go. and i dont say FFT is the best. just giving a quick reply on another cheaper method and more accurate than eye sight and using protactor on the LCD. my 2cents, more detailed info are welcomed.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf