# Resonators

## Introduction

A resonator is a digital equivalent of a tuned circuit. There are three varieties:

• the bandpass resonator, which has a high gain at its centre frequency and low gain elsewhere;

• the bandstop resonator (or notch filter), which has zero gain (-inf dB) at its centre frequency and about unity (0 dB) elsewhere;

• the allpass resonator, which has unity gain (0 dB) everywhere, with a phase shift which varies with frequency.

The phase response of the bandpass resonator approximates to +pi/2 at frequencies below the centre and -pi/2 at frequencies above the centre, and is exactly zero at the centre. The bandstop and allpass resonators both have approximately zero phase shift except at the centre frequency, at which the phase shift is nominally ±pi; however in the case of the bandstop resonator, since the gain is zero at the centre frequency, the phase shift at that frequency is not defined.

In both respects (magnitude and phase) the resonator behaves like a ``real'' analogue tuned circuit.

If you want a narrow bandpass or bandstop filter, a resonator is often more efficient and better behaved than a traditional (e.g. Butterworth) filter.

## Design

All types of resonator are designed directly in the z-plane. The bilinear transform is not used here. A bandpass resonator is constructed first; if you asked for one of the other types, the bandpass resonator is transformed accordingly.

The number of poles is fixed at 2, initially at z = r exp ±j theta, where r is close to 1. Two zeros are added at z = ±1, to ensure zero response at d.c. and h.f.

The presence of the conjugate poles affects the response slightly: the ``correct'' pole positions are not exactly where you would expect them to be. Consequently, the initial pole positions are next refined iteratively, to place the peak as close as possible to where you said you wanted it.

If you asked for a bandstop or allpass resonator, the zeros at z = ±1 are then removed. For a bandstop design, new zeros are added on the unit circle at z = exp ±j theta, where theta is the unrefined initial value of theta. This gives a zero response at the precise centre frequency. For an allpass design, zeros are added at (1/r) exp ±j theta, where theta this time is the refined value, to balance the existing poles.

Select filter type:
•  Bandpass Bandstop Allpass

We need to know the sample rate (in samples per second).
Sample rate:

Enter centre frequency, in Hz:

Enter the Q (quality factor) of the filter. Values in the range 10 .. 1000 are typical.
Quality factor:

By default, the frequency response graph has a linear magnitude scale. If that is what you want, leave the following box blank. If you want a logarithmic magnitude scale in dB, enter the lower limit of the magnitude scale in dB here (e.g. -80).
Lower limit (dB), or blank for linear scale:

Submit form:

Reset form:

Tony Fisher / fisher@minster.york.ac.uk

Code:

 file: /Techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/res.htm, 4KB, , updated: 2006/9/3 02:23, local time: 2022/8/13 11:50, TOP NEW HELP FIND:  34.236.192.4:LOG IN

 ©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! Resonators

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant"

 PICList 2022 contributors: o List host: MIT, Site host massmind.org, Top posters @20220813 * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr.

.